IPython控制台(与Sphinx相同)的语法高亮
项目描述
======================== pygments-ipython-console
IPython控制台文件的高亮语法
概述
此包提供用于IPython控制台文件的Pygments_ 语法分析器。语法分析器作为入口点发布,安装后,Pygments将自动选择它。
然后您可以使用Pygments与ipython
语言:
$ pygmentize -l ipython test.ipy
(或者在Sphinx_ 文档中使用ipython_console_highlight.py的标准sphinx导入)在Sphinx_ 文档中,使用highlight
指令选择语法分析器:
.. highlight:: ipython
.. _Pygments: https://pygments.pythonlang.cn/ .. _Sphinx: https://sphinx-doc.cn/
感谢pygments-openssl项目提供模板 [https://github.com/stefanholek/pygments-openssl]
要求
这需要IPython 1.0+用于sphinxext模块
安装
使用您喜欢的安装程序将pygments-ipython安装到已安装Pygments的同一Python环境中。从存储库构建egg:
$ git clone https://sanguineturtle@bitbucket.org/sanguineturtle/pygments-ipython-console.git
$ cd pygments-ipython-console
$ python setup.py bdist_egg
例如 [更改目录到dist/文件夹以定位egg文件]:
$ easy_install pygments-ipython-console.egg
运行以下命令以验证安装:
$ pygmentize -L lexer | grep -i ipy
* ipy:
IPy session (filenames *.ipy)
变更日志
-
更改了IPython语法分析器类的名称。[hplgit]
-
首次发布。[sanguineturtle]
项目详情
关闭
pygments-ipython-console-1.0.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 92a785b3ec4117151aa0c87ec99fd319b0411a4dddd44a64ca6983efc4454ffa |
|
MD5 | 81b0d9f4b3de0f090158270a80d83aa5 |
|
BLAKE2b-256 | 068aacd60c65ac71ac46f685a1a86d90439b7949f54e1e54dae3a94e331068ae |
关闭
pygments_ipython_console-1.0.1-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | fddc4119154bd9823d793a4a31988d903650466cac4e22325aefebab223d0775 |
|
MD5 | c83110edeb261804644078694700bada |
|
BLAKE2b-256 | b2e1810bf235b286f4c11f1e70c46896c1dc989a77e7ed4882ba0e5010976b73 |