[texhax] colored verbatim

E. Krishnan ekmath at asianetindia.com
Tue Oct 2 03:25:37 CEST 2007


On Sun, 30 Sep 2007, sarah yasseen wrote:

> hi all,
> how can I keep the colors of the verbatim inserted code?
> sarah

Is this what you have in mind?

\usepackage{fancyvrb,xcolor}

\begin{Verbatim}[formatcom=\color{red}]
   First verbatim line.
   Second verbatim line.
\end{Verbatim}




-- 
Krishnan


More information about the texhax mailing list