Is it possible to leave out some code and mark this, instead of including only parts of the code (which is almost the same)?
I would like to have an output almost like the second and third listing in combination. The vertical lines (between the two listings) might be dotted or dashed or be crossed out by two short lines. Also instead of ... there might be an other "replacement text/symbol"
Does the package contain something like this? Or can it be achieved (easily)?
\documentclass{article}
\usepackage{listings}
\begin{document}
whole code in \texttt{filepath}:
\begin{lstlisting}[numbers=left,frame=single,language=pascal]
for i:=maxint to 0 do
begin
very
much
code
end;
Write(Case insensitive);
WritE(Pascal keywords.);
\end{lstlisting}
%real usage:
%\lstinputlisting[firstnumber=1,linerange={1-2,6-9}]{filepath}
\vspace{5cm}
%almost desired output
\begin{lstlisting}[numbers=left,frame=tlr,language=pascal]
for i:=maxint to 0 do
begin
\end{lstlisting}...
\begin{lstlisting}[firstnumber=6,numbers=left,frame=blr,language=pascal]
end;
Write(Case insensitive);
WritE(Pascal keywords.);
\end{lstlisting}
\end{document}
