On 4/9/2015 2:02 PM, Robin.Kirkham@csiro.au wrote:
Folks,
Switching the option to “color” in \setuptyping has the effect of resetting the font from typewriter (constant width) to paragraph font (if you uncomment it in the following MWE).
I don’t see why that should be. Is it a bug or can someone explain?
My intent was to use syntax colourisation for code snippets.
Thanks, Robin
\setupcolors[state=start]
colors are already on in mkiv
%\setuptyping[typing][option=color]
\starttext Normal text \starttyping Typing text \stoptyping \stoptext
\starttext Normal text \starttyping[option=tex] Typing some \text \stoptyping \starttyping[color=red] Typing some \text \stoptyping \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------