\ProvidesFile{listings.cfg}% [2009/08/23 v1.0 listings configuration of listings-ext] \RequirePackage{xcolor} \def\lstlanguagefiles{lstlang1.sty,lstlang2.sty,lstlang3.sty} \lstset{defaultdialect=[ANSI]C, defaultdialect=[ISO]C++, defaultdialect=[95]Fortran, defaultdialect=Java, defaultdialect=[LaTeX]TeX, frame=tlb, resetmargins=false, } \lstdefinestyle{colored-code}{ backgroundcolor=\color{yellow!10},% basicstyle=\footnotesize\ttfamily,% identifierstyle=\color{black},% keywordstyle=\color{blue},% stringstyle=\color{teal},% commentstyle=\itshape\color{orange},% } \lstdefinestyle{bw-code}{ basicstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{n}\selectfont, % instead of lmtt one should use ul9 (luximono) for boldface characters keywordstyle=\small\fontfamily{lmtt}\fontseries{b}\fontshape{n}\selectfont, commentstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{sl}\selectfont, stringstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{it}\selectfont, }