\usepackage{listings}
\lstset{ % general style for listings
numbers=left
, tabsize=2
, frame=single
, breaklines=true
, basicstyle=\ttfamily
, numberstyle=\tiny\ttfamily
, framexleftmargin=13mm
, backgroundcolor=\color{grey}
, xleftmargin=12mm
%, frameround={tttt}
, captionpos=b
}
\lstdefinestyle{xslt}
{
emph={xsl,template,variable,param,for,each,apply,templates,with,param}
, emphstyle=\color{magenta}
, emph={[2]match, select, name, mode}
, emphstyle={[2]\color{cyan}}
} |