Quantcast
Channel: How can I avoid the use of default styles when no listings language is set? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 3

How can I avoid the use of default styles when no listings language is set?

$
0
0

When global listings styles have been defined identifiers are coloured differently from numbers even if no language is in effect. How can this be avoided?

\documentclass{minimal}\usepackage{listings}\usepackage{xcolor}\lstset{identifierstyle=\color{purple}}\begin{document}\lstset{language=}\begin{lstlisting}123 hello world 456\end{lstlisting}\end{document}
enter image description here

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>