\starttyping font changes when option=color
![](https://secure.gravatar.com/avatar/cf5ffea5f3d994ac0d9fab3b71e0d96a.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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