【问题标题】:How to add ipython syntax highlighting to pygmentize?如何将 ipython 语法高亮添加到 pygmentize?
【发布时间】:2014-02-04 07:42:31
【问题描述】:

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

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

【问题讨论】:

    标签: python colors syntax-highlighting ipython pygments


    【解决方案1】:

    看看这个github项目:

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

    这个包为 IPython 控制台文件提供了一个 Pygments_词法分析器。词法分析器作为入口点发布,一旦安装,Pygments 将自动获取它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多