Closed Garonenur closed 10 years ago
I have to correct myself, \lstinline
has not the correct syntax if other chars than {}
are used, which would be better.
Ok, so if I understand correctly: \lstinline
now has the same syntax highlighting as \verb
, even though the command only works with {}
. This is acceptable, I guess.
I assume you have tested this and that you are sure it is an improvement?
I changed it for me, because of the brokenness of lstinputlisting
and than realized, that lstinline
should be like verbatim and lstinputlisting
like any other file input.
I am using this right now and it looks fine, if you want I can check some more files if the syntax is broken anywhere.
This is a follow up to #124.
This changes the behaviour as follows:
\lstinline
behaves like\verb
and\lstinputlisting
behaves as any other file input would. I think this makes much more sense and also thelstinputlisting
was broken if any macro was used within the argument of it, like\lstinputlisting{\MyPath/foo.bar}
. Which would result in "verbatim" syntax until the next normal latex-macro.Edit: Fixed typos.