[NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Marco Patzer
Hi, I need different settings for code in inline and block mode. See the following example: \usemodule [vim] \definetextbackground [C] [location=text] \definevimtyping [C] [syntax=c, before={\starttextbackground[C]}, after=\stoptextbackground, margin=2em] \starttext This is C:

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Wolfgang Schuster
Am 16.01.2013 um 15:51 schrieb Marco Patzer home...@lavabit.com: Hi, I need different settings for code in inline and block mode. See the following example: \usemodule [vim] \definetextbackground [C] [location=text] \definevimtyping [C] [syntax=c, before={\starttextbackground[C]},

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Marco Patzer
On 2013–01–16 Wolfgang Schuster wrote: \definevimytping [C] […, before={\ifhmode\startInlineBackground\else\startDisplayBackground\fi}, after={\ifhmode\stopInlineBackground\else\stopDisplayBackground\fi}, …] That's a good idea and it seems to work. You could also ask Aditya

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Aditya Mahajan
On Wed, 16 Jan 2013, Wolfgang Schuster wrote: You could also ask Aditya to use different keys for display (e.g. before/aftter) and inline (e.g. left/right) code blocks. That's a nice suggestion. I have implemented it in the dev version of the filter module:

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Wolfgang Schuster
Am 16.01.2013 um 16:39 schrieb Marco Patzer home...@lavabit.com: On 2013–01–16 Wolfgang Schuster wrote: \definevimytping [C] […, before={\ifhmode\startInlineBackground\else\startDisplayBackground\fi}, after={\ifhmode\stopInlineBackground\else\stopDisplayBackground\fi}, …]