How do I emphasize parts of an lstlisting?

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-04-24T10:17:03Z Indexed on 2010/04/24 10:23 UTC
Read the original article Hit count: 348

Filed under:
|

How can I set certain parts of an lstlisting in boldface?

\begin{lstlisting}[escapechar=@]
fun(foo, bar, @\textbf{baz}@ );
\end{lstlisting}

This compiles, but baz isn't set in boldface :( What am I missing?

© Stack Overflow or respective owner

Related posts about latex

Related posts about listings