3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 2165
/ 2 Years ago, tue, july 27, 2021, 10:05:27
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!
More From » command-line