[NTG-context] return a labeltext with color...

Hans Hagen j.hagen at xs4all.nl
Fri Jun 24 19:19:48 CEST 2022


On 6/24/2022 4:34 PM, Willi Egger via ntg-context wrote:
> Hi all,
> 
> 
> Sorry for bothering you again.
> 
> I would like that lua is returning a colored string, which is a label-text.
> 
> The following does not work, the labeltext remains black, there is no error though:
> 
> return context.color({"red"},context.labeltext(s))

context.color({"red"},function() context.labeltext(s) end)

> 
> What is the correct approach?
> 
> Thanks for enlighten me :-)
> 
> Willi
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list