I would like to have the solution of highlighting a line in listings-package as a command or environment. To bad I cannot get it working. I tried:
- a simple
newenvironment: compile errors \newcommand: also compile errorsthe
environ-package, see below\NewEnviron{listingh}{ \vspace{-\baselineskip} \begin{lstlisting}[backgroundcolor=\color{yellow}] \BODY \end{lstlisting} \vspace{-\baselineskip} }
Also, same kind of errors. missing {, missing number, threaded a zero etc.
I try to use it with the beamer-package and pdflatex.