2

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

Community
  • 1
  • 1
cjorssen
  • 877
  • 2
  • 7
  • 22

0 Answers0