Python pygmentize忽略样式选项

时间:2019-03-05 20:54:00

标签: python-3.7 pygmentize

我正在尝试使用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

0 个答案:

没有答案