On Tue, 21 Jul 2009, Peter Münster wrote:

> I need it for something like this:
> 
> \usemodule[vim]
> \definevimtyping[C][syntax=c]
> \starttext
> \startC
> for(expr₁; expr₂; expr₃)
>       instruction
> \stopC
> \stoptext

Finally I've found a simple solution:

\usemodule[vim]
\definevimtyping[C][syntax=c]
\defineactivecharacter ₁ {\low{\tx1}}
\defineactivecharacter ₂ {\low{\tx2}}
\defineactivecharacter ₃ {\low{\tx3}}
\starttext
\startC
for(expr₁; expr₂; expr₃)
    instruction
\stopC
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to