![](https://secure.gravatar.com/avatar/d39338246f50cca667c8256c313d7cfd.jpg?s=120&d=mm&r=g)
16 Jan
2013
16 Jan
'13
8:39 a.m.
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 to use different keys for display (e.g. before/aftter) and inline (e.g. left/right) code blocks.
That's not necessary. I think your solution is clean enough. Thanks Wolfgang. Marco