[NTG-context] verb-c

wwl at musensturm.de wwl at musensturm.de
Fri Aug 18 10:01:41 CEST 2006


> > I have a little problem with the module 'verb-c'.
> >
> > Backslashes in verbatim text seem to disturb colors.
> > ----------------------------------------------------
> > \usemodule[verb-c]
> > \setupcolors[state=start]
> > \setuptyping[C][color=blue,palet=colorpretty,
> > numbering=line]
> > \starttext
> > Davor
> > \startC
> > #include <stdio.h>
> >
> > int main()
> > {
> >   printf("Hallo\n");
> > }
> > \stopC
> > Danach
> > \stoptext
> > ----------------------------------------------------
> > Problem:
> >
> > 'Danach' is blue!
> > Last line number has the same color as the
> > quotet String "Hallo ConTeXt\n".
> >
> > Delete the newline char and all is ok!
> >
> > How can this be fixed?
> 
>   puts("Hallo");
> 
>   nikolai

You can't be serious!

Escape-Sequences like \n,\r,\t,\123 or \xef are integral part of the 
C-language and I have this in many different places in a lot of 
C-source files.

Is there no solution? Why does this happen?


Wolfgang



More information about the ntg-context mailing list