I have got some lines of code inserted by lstlisting:
Now I want to hightlight for example >>class MyRunnable<<. An easy way is to use colorbox:
It works fine, but you are losing the syntax highlighting inside a colorbox.
Is there a way to save the syntax highlighting???
I tested to insert a "\lstinline" in the "lstlisting", but I had no success
Has anyone an idea how to solve my problem???
LaTeX forum ⇒ Text Formatting ⇒ Highlighting a Chunk of Code within a lstlisting
Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests