On 08/17/2017 12:00 AM, Aditya Mahajan wrote:
> On Wed, 16 Aug 2017, Pablo Rodriguez wrote:
> 
>> sorry for insisting, but I need to solve this.
> 
> I don't know how to answer your questions with the default syntax 
> highlighting in ConTeXt, but are you willing to consider t-vim module for 
> typesetting code. The output for your example is attached.
Many thanks for your reply, Aditya,

your t-vim module is really useful, but I’m afraid it isn’t what I needed.

I have to use \xmlprettyprinttext (input sources for most of my
documents in ConTeXt are XML files).

Besides, I think that the code highlighting in ConTeXt is clearer than
the one that vim provides.

Many thanks for your help,

Pablo


> All you need to do is add the following in the document preamble:
> 
> \usemodule[vim]
> \definevimtyping[TEX][syntax=context]
> \definevimtyping[XML][syntax=xml]
> \definevimtyping[LUA][syntax=lua]
> 
> If you have lot of code snippets, you may want to create a directory to 
> store temporary files. You can do this using
> 
> \setupvimtyping[directory=output]
> 
> and then create a directory called "output" in the folder from which you 
> run ConTeXt.
> 
> Aditya


-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to