Search found 1 match

by mirlaine
Fri May 27, 2011 5:01 am
Forum: General
Topic: add color to verbatim environments
Replies: 7
Views: 22550

add color to verbatim environments

Hi,

I am using a command like

\renewcommand{\FancyVerbFormatLine}[1]{%
\ifnum\value{FancyVerbLine}=5\color{red}#1%
\else%
\ifnum\value{FancyVerbLine}=7\color{red}#1%
\else #1\fi\fi}

however, only line 7 is red colored. I am using beamer in order to produce a presentation. Any explanation ...