Is there a way to highlight a single backslash (\
) within LaTeX code with listings
or showexpl
?
In the following example, \LaTeX
is correctly highlighted, but not the following backslash.
\documentclass{article}
\usepackage{xcolor,showexpl}
\lstset{language=[LaTeX]Tex,
basicstyle=\ttfamily,
keywordstyle=\color{red},
texcsstyle=*\color{blue}
}
\begin{document}
\begin{LTXexample}
Test \LaTeX\ test
\end{LTXexample}
\end{document}