lstinputlisting excluse lines code example
Example 1: lstinputlisting line range
\lstinputlisting[firstline=300,lastline=500]{file.cc}
Example 2: lstinputlisting excluse lines
\lstinputlisting[linerange={1-4,7-9}]{file.cc}
\lstinputlisting[firstline=300,lastline=500]{file.cc}
\lstinputlisting[linerange={1-4,7-9}]{file.cc}