On 8/28/2019 8:14 PM, Fabrice L wrote:
Dear list,
I’m using colored verbatim code (for course notes). In the past, I modified verb-mp.mkii for the langage I need (SAS). This code works fine with MKII:
%—————— \setupcolors[state=start] \definetyping [MP] [option=MP]
\starttext A example: \startMP draw (0,0) withpen pencircle 1in withcolor red ; \stopMP \stoptext %——————
I obtain a color syntax output (« draw » in red, « within » in green for example). This code does not work anymore in MKIV (every word is the same color, green). There should be a solution ? Hard to say without your sas code as this just works:
\setupcolors[state=start] \definetyping [MP] [option=MP] \starttext A example: \startMP draw (0,0) withpen pencircle 1in withcolor red ; \stopMP \usemodule[scite] \startMP draw (0,0) withpen pencircle 1in withcolor red ; \stopMP \stoptext (I suppose that sas is abit like sql so pretty easy to write a lexer for it .. do you hav ean overview of the syntax that you use?) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------