Re: Listings e direttive C++

#16129
DMW
    Up
    0
    Down
    ::


    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é.

    Go to top