I often use the command
pygmentize filename.py to show color source files with code formatting. This works like a charm. I now also want to show line numbers like
cat -n filename.py does.
I read around and found some suggestions like adding
-O linenos=1 or
-O linenos=True. None of this seems to work though.
Does anybody have any idea how I can show line numbers when viewing source files on the command line with pygments? All tips are welcome!