I have this basic question. How can use arguments with listings
? I tried this and it doesn't work:
\lstnewenvironment{cor}[2][]
{\linerange{#1-#2},\lstset{language=[Sharp]C,,basicstyle=\scriptsize,
showspaces=false,showtabs=false,,breaklines=true,showstringspaces=false,
breakatwhitespace=true }}
{}
and then I used it in the following way:
\begin{cor}{2}{3}
\end{cor}