I have read through the listings
documentation and couldn't find an answer to the following question:
How do I insert some sort of visual feedback in a listings listing when using the linerange
option. It works fine on my source code files, but the only visible feedback that there is a gap in the listed code is the change in numbering. I would like some more visual feedback, e.g. a line or maybe some sort of waves that I come across in some books on programming.
Any idea on how to achieve this?
[Tex/LaTex] Visual separation when using linerange in listings
listings
Best Answer
One way to do this is to split the listings for each line range, and place an ornament in between them. There are many options as to what to use as a separator. To illustrate, I have used an ornament from this question in between the listings and another from this question on how to insert a border at the end of the listings.
Here is the code: