File: README.md

package info (click to toggle)
ipython-pygments-lexers 1.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 104 kB
  • sloc: python: 480; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 664 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
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.