16 Jan
2013
16 Jan
'13
3:51 p.m.
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: \inlineC{int foo();}. \blank \startC int foo(){ return 0; } \stopC \stoptext Inline code needs “location=text”, block code on the other hand needs “location=paragraph” as text background setting. Sure, I can create two environments “Cinline” and “Cblock”, but that feels clumsy. What's the proper way to set up different backgrounds for inline and block code? Marco