I have got some lines of code inserted by lstlisting:
Code: Select all
\begin{lstlisting}
public class MyRunnable implements Runnable{
String name;
public MyRunnable(String name){
this.name = name;
}
\end{lstlisting}
Code: Select all
\begin{lstlisting}
public §\colorbox{yellow}{class MyRunnable}§ implements Runnable{
String name;
public MyRunnable(String name){
this.name = name;
}
\end{lstlisting}
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???
best regards,
Gadgetto