I've to use the yellow background for data values in the following code.
\usepackage
\begin{Verbatim}[commandchars=\\\{\}]
\color{blue}DATA \color{black}Heart;
\color{blue}INPUT \color{black}X Y @@;
\color{blue}DATALINES\color{black};
28 70 23 68 52 90 42 75 27 68
29 80 43 78 34 70 40 80 28 72
;
\color{blue}RUN\color{black};
\color{blue}PROC REG DATA\color{black}=Heart;
\color{blue}MODEL \color{black}Y=X;
\color{blue}RUN\color{black};
\end{Verbatim}
Any help will be highly appreciated.
Best Answer
Your question do not state that you are using the fancyvrb package? I do not see a background color option in the package, but for short snipits, use the
SaveVerbatim
environment and save it to box. Put the contents then in a colorboxAlternative you can use the framed package to get mutipage stuff
For the data lines only put it in a
\colorbox