I am having a problem formatting the text in a listing. The purpose is to distinguish between parentheses with two different meanings. I have tried to format them in this way:
Code: Select all
\lstset{%
identifierstyle=\ttfamily,
basicstyle=\scriptsize,
aboveskip=\bigskipamount,
moredelim=**[is][\bfseries]{£}{£}
}
Code: Select all
\begin{lstlisting}
£(£ ( ) £)£
\end{lstlisting}