I'm trying to syntax highlight Python 3 code with the pygments
pygmentize
command line program, but it just ignores all the style options. I have tried the following:
pygmentize -S colorful -l python3 e:\work\Python\repl.py
pygmentize -O style=colorful -l python3 e:\work\Python\repl.py
It either gives back the help text or the default styling. This is on Windows 10. Anybody know what I'm doing wrong?
It also returns the help when trying to write out an html file using:
pygmentize -f html -S colorful -l python3 -o a.html e:\work\Python\repl.py
Using Pygments version 2.11,
pygmentize --help
states the following:It was not obvious to me, but I've used
style
as an option and it worked with both-O
and-P
:Reminder : to list available styles, run
pygmentize -L styles