如何在pygmentize中添加ipython语法高亮?

can*_*sin 7 python syntax-highlighting colors ipython pygments

我需要在乳胶项目中使用语法突出显示,使用minted包我可以使用pygments lexers,这里有一个ipython的词法分析器.

如何将其添加到pygments?(Windows或OSX)

Leo*_*mps 2

看看这个github项目:

https://github.com/sanguineturtle/pygments-ipython-console

该软件包为 IPython 控制台文件提供了 Pygments_ lexer。词法分析器作为入口点发布,安装后,Pygments 将自动选择它。