https://github.com/ipython/ipython-pygments-lexers
Pygments lexers for syntax-highlighting IPython code & sessions
https://github.com/ipython/ipython-pygments-lexers
Last synced: 2 months ago
JSON representation
Pygments lexers for syntax-highlighting IPython code & sessions
- Host: GitHub
- URL: https://github.com/ipython/ipython-pygments-lexers
- Owner: ipython
- License: bsd-3-clause
- Created: 2025-01-13T17:10:12.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-17T11:23:40.000Z (11 months ago)
- Last Synced: 2025-03-01T22:27:45.596Z (10 months ago)
- Language: Python
- Size: 106 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A [Pygments](https://pygments.org/) plugin for IPython code & console sessions
[IPython](https://ipython.org/) is an interactive Python shell. Among other features,
it adds some special convenience syntax, including `%magics`, `!shell commands`
and `help?`. This package contains lexers for these, to use with the Pygments syntax
highlighting package.
- The `ipython` lexer should be used where only input code is highlighted
- The `ipythonconsole` lexer works for an IPython session, including code,
prompts, output and tracebacks.
These lexers were previously part of IPython itself (in `IPython.lib.lexers`),
but have now been moved to a separate package.