Indentation marks for Python with Pygments TeX formatter

160 Views Asked by At

This is a followup of a question of mine at tex.se that got an answer at TeX level.

I use pygments to typeset in TeX my Python code listings. I'd like to have some kind of L-shaped lines, like the ones I added in the image below to clearly exhibit the indentation level of every line of code.

Any ideas at pygments level? I guess I have to hack the TeX formatter but I have no idea how to do it (and, to be honest, I'm running out of time for a book).

enter image description here

0

There are 0 best solutions below