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:
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]},
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
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:
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},
…]