16 Luglio 2007 alle 11:04
#16129
::
non è keywordsprefix={\#}, ma alsoletter:
`
\lstset{language=C++,
alsolanguage=[ANSI]C,
backgroundcolor=\color{veryLightGrey},
keywordstyle=\color{RoyalBlue},
directivestyle=\color{Red}\tiny,
alsoletter={\#},
morekeywords={\#include},
%moredirectives={\#include},
numbersep=8pt,
basicstyle=\small\sffamily,
commentstyle=\color{Green}\small\sffamily,
stringstyle=\sffamily,
showstringspaces=false,
breaklines=true,
frame=none}
`
Il problema è che l’opzione directivestyle non ha effetto e non so perché.