code source avec couleur, copiable

This commit is contained in:
random-toto@localhost 2016-06-13 14:42:31 +02:00
parent ee6c998099
commit e32eca2ca0
1 changed files with 13 additions and 0 deletions

View File

@ -51,6 +51,19 @@
% listings : \begin,end : lstlisting in blue % listings : \begin,end : lstlisting in blue
\lstset{basicstyle=\ttfamily\color{blue}} \lstset{basicstyle=\ttfamily\color{blue}}
% lstlistings pour du code :
%\lstset{language=C++,
% basicstyle=\ttfamily\small,
% keywordstyle=\color{blue}\ttfamily,
% stringstyle=\color{red}\ttfamily,
% commentstyle=\color{green}\ttfamily,
% morecomment=[l][\color{magenta}]{\#},
% showstringspaces=false
% inputencoding=utf8,
% extendedchars=true,
% literate={á}{{\'a}}1 {ã}{{\~a}}1 {é}{{\'e}}1 {è}{{\`e}}1,
% columns=fullflexible
%}
% save footnotes % save footnotes
\makesavenoteenv{tabular} \makesavenoteenv{tabular}