I am using the
lstlisting environment to display code and it works great, however for my current application I need something like:
3.1: line 2;
3.1.5: line 4;
e.g. I want numbers on some lines and I have to decide the numbers. I know that I can just type them in like in the above box but it will look very bad as the lines don't match up anymore. I read the lstlisting documentation and it didn't bring anything like this up. Is there some workaround here only more experienced users know?