[NTG-context] Custom color schemes in t-vim

Aditya Mahajan adityam at umich.edu
Thu May 14 17:44:01 CEST 2020


On Thu, 14 May 2020, Nicola wrote:

> Quick question: Is \startcolorscheme... \stopcolorscheme (still)
> supported by t-vim?
>
> In a template I wrote long time ago to typeset code, I have:
>
>    \usemodule[vim]
>    \unprotect
>    \startcolorscheme[oceansunset]
>      \definesyntaxgroup[Comment][\c!color={colortwo},\c!style=italic]
>      % etc.
>    \stopcolorscheme
>    \protect
>
> which I use as described in the wiki:
>
>    \definevimtyping
>         [...]
>         [...
>          alternative=oceansunset,
>          ...]
>
> But that does not seem to have any effect (if I change the colors, the
> syntax highlighting does not change). I can use pscolor and
> blackandwhite, though. I see that \startcolorscheme is not documented,
> so maybe there is another mechanism?

It is supposed to work. If it doesn't, then it is a bug. Could you provide a complete MWE.

Aditya


More information about the ntg-context mailing list