[NTG-context] [t-vim] Line numbers

Marco netuse at lavabit.com
Tue Feb 22 10:15:50 CET 2011


On 2011-02-21 Aditya Mahajan <adityam at umich.edu> wrote:

> > 1) You have »Add line numbers« on your TODO list. What's the progress?
> 
> No. I will look into them. I think that I should just be able to plug in 
> ConTeXt's line numbering mechanism.

I like the »just« in your sentence :)  That would be awesome.

> > 2) To set the font size I do the following, is there a better solution
> > like bodyfont=xyz for definetyping or is it just fine like this?
> >
> > \definevimtyping [PHP] [
> >  syntax=php,
> >  before={\switchtobodyfont[small]},
> > ]
> 
> I think that the best idea is to add a style=..., and color=..., key. 

ACK

> In fact, I have added these keys to t-filter module. If you get the latest 
> version of the module from github[1],

done

> then you should be able to say:
> 
> \definevimtyping
>     [PHP]
>     [syntax=php,
>      style={\switchtobodyfont[small]\setupinterlinespace},
>     ]

That works/looks nice.


> PS: The style=.. and color=... attributes only work with MkIV.

That's fine for me.


Regards
Marco




More information about the ntg-context mailing list