I want to create a custom inset for the listings package.

The LaTeX command for displayed code should be as follows:

\lstinline$code goes here$
\lstinline!code goes here!

( Sometimes it is better to type the code inside $$ or !! instead of {} )

How can I tell lyx that ! or $ should be the command delimiters?
What I have at the moment is this:

InsetLayout Flex:listing
    LyXType        custom
    LabelString    "lstlisting"
    LatexType      Command
    LatexName      lstlisting
    Decoration     classic
    NeedProtect    0
lyx-users mailing list

Reply via email to