I am trying to insert code in a ConTeXt document, so I tryed to use the vimtyping module. It works well for text blocks, but not for inline text, since it makes a new line. Here is my MWE:
\setuppapersize[A5][A5]
\usemodule[vim]
\definevimtyping[python][
syntax=python,
strip=yes,
tab=4,
margin=2em,
before={\blank[samepage,line]},
after={\blank[line]},
]
\starttext
The block works
\startpython
def function(foo): # test
a = foo
return(foo**a)
\stoppython
But the inline writing of \inlinepython{def function} makes new lines.
\stoptext
Is there an option I need to activate to use this module inline macro ?
before
andafter
options. – Henri Menke Jul 16 '16 at 10:50