Syntax coloring for IPython Console (Same as Sphinx)
Project description
======================== pygments-ipython-console
Syntax coloring for IPython Console Files
Overview
This package provides a Pygments_ lexer for IPython Console Files. The lexer is published as an entry point and, once installed, Pygments will pick it up automatically.
You can then use the ipython
language with Pygments::
$ pygmentize -l ipython test.ipy
[Or use the standard sphinx import of ipython_console_highlight.py]
In Sphinx_ documents the lexer is selected with the highlight
directive::
.. highlight:: ipython
.. _Pygments: http://pygments.org/ .. _Sphinx: http://sphinx-doc.org/
Thanks to pygments-openssl project for providing a template [https://github.com/stefanholek/pygments-openssl]
Requirements
This needs IPython 1.0+ for sphinxext module
Installation
Use your favorite installer to install pygments-ipython into the same Python you have installed Pygments. Constructing an egg from repository::
$ git clone https://sanguineturtle@bitbucket.org/sanguineturtle/pygments-ipython-console.git
$ cd pygments-ipython-console
$ python setup.py bdist_egg
For example [change directory to dist/ folder to locate egg file]::
$ easy_install pygments-ipython-console.egg
To verify the installation run::
$ pygmentize -L lexer | grep -i ipy
* ipy:
IPy session (filenames *.ipy)
Changelog
-
Changed IPython lexer class name. [hplgit]
-
Initial release. [sanguineturtle]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pygments-ipython-console-1.0.1.tar.gz
.
File metadata
- Download URL: pygments-ipython-console-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a785b3ec4117151aa0c87ec99fd319b0411a4dddd44a64ca6983efc4454ffa |
|
MD5 | 81b0d9f4b3de0f090158270a80d83aa5 |
|
BLAKE2b-256 | 068aacd60c65ac71ac46f685a1a86d90439b7949f54e1e54dae3a94e331068ae |
File details
Details for the file pygments_ipython_console-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pygments_ipython_console-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fddc4119154bd9823d793a4a31988d903650466cac4e22325aefebab223d0775 |
|
MD5 | c83110edeb261804644078694700bada |
|
BLAKE2b-256 | b2e1810bf235b286f4c11f1e70c46896c1dc989a77e7ed4882ba0e5010976b73 |