\starttyping font changes when option=color
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] %\setuptyping[typing][option=color] \starttext Normal text \starttyping Typing text \stoptyping \stoptext
Am 09.04.2015 um 14:02 schrieb Robin.Kirkham@csiro.au:
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?
You select syntax highlighting for a language which doesn’t exist.
My intent was to use syntax colourisation for code snippets.
When you want to highlight TeX code use “option=TEX” and for Lua code use “option=LUA”. Wolfgang
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Robin.Kirkham@csiro.au
-
Wolfgang Schuster