我正在尝试使用pygments
pygmentize
命令行程序来突出显示Python 3代码的语法,但是它只是忽略了所有样式选项。我尝试了以下方法:
pygmentize -S colorful -l python3 e:\work\Python\repl.py
pygmentize -O style=colorful -l python3 e:\work\Python\repl.py
它要么返回帮助文本,要么返回默认样式。这是在Windows 10上。有人知道我在做什么错吗?
当尝试使用以下方法写出html文件时,它还会返回帮助:
pygmentize -f html -S colorful -l python3 -o a.html e:\work\Python\repl.py