diff options
author | Philipp Imhof <52650214+PhilippImhof@users.noreply.github.com> | 2021-03-05 08:32:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 08:32:49 +0100 |
commit | fea3b53b834610e6004e65cb803a66feb512e906 (patch) | |
tree | d8ea338ae0a8cbe12e0765e2d0dbdb916780de0d /pygments/formatters/_mapping.py | |
parent | ffac8bde66a1060a255334ff4fb0aaf42b825eff (diff) | |
download | pygments-git-fea3b53b834610e6004e65cb803a66feb512e906.tar.gz |
Add formatter for Pango Markup (#1727)
* Add formatter for Pango Markup
* Code style improvement
* Code improvement + test case
* Changed test
* retrigger checks
* Make test independent of color style
Diffstat (limited to 'pygments/formatters/_mapping.py')
-rwxr-xr-x | pygments/formatters/_mapping.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/formatters/_mapping.py b/pygments/formatters/_mapping.py index 2592ef82..9a8ab84a 100755 --- a/pygments/formatters/_mapping.py +++ b/pygments/formatters/_mapping.py @@ -22,6 +22,7 @@ FORMATTERS = { 'JpgImageFormatter': ('pygments.formatters.img', 'img_jpg', ('jpg', 'jpeg'), ('*.jpg',), 'Create a JPEG image from source code. This uses the Python Imaging Library to generate a pixmap from the source code.'), 'LatexFormatter': ('pygments.formatters.latex', 'LaTeX', ('latex', 'tex'), ('*.tex',), 'Format tokens as LaTeX code. This needs the `fancyvrb` and `color` standard packages.'), 'NullFormatter': ('pygments.formatters.other', 'Text only', ('text', 'null'), ('*.txt',), 'Output the text unchanged without any formatting.'), + 'PangoMarkupFormatter': ('pygments.formatters.pangomarkup', 'Pango Markup', ('pango', 'pangomarkup'), (), 'Format tokens as Pango Markup code. It can then be rendered to an SVG.'), 'RawTokenFormatter': ('pygments.formatters.other', 'Raw tokens', ('raw', 'tokens'), ('*.raw',), 'Format tokens as a raw representation for storing token streams.'), 'RtfFormatter': ('pygments.formatters.rtf', 'RTF', ('rtf',), ('*.rtf',), 'Format tokens as RTF markup. This formatter automatically outputs full RTF documents with color information and other useful stuff. Perfect for Copy and Paste into Microsoft(R) Word(R) documents.'), 'SvgFormatter': ('pygments.formatters.svg', 'SVG', ('svg',), ('*.svg',), 'Format tokens as an SVG graphics file. This formatter is still experimental. Each line of code is a ``<text>`` element with explicit ``x`` and ``y`` coordinates containing ``<tspan>`` elements with the individual token styles.'), |