Pygments is a syntax highlighting package written in Python
Pygments is a syntax highlighting package written in Python.
It is a generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to prettify
source code. Highlights are:
* a wide range of common languages and markup formats is supported
* special attention is paid to details, increasing quality by a fair amount
* support for new languages and formats are added easily
* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image
formats that PIL supports and ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainfuck!
- Developed at devel:languages:python
-
12
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory/python-Pygments && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
pygments-2.17.2.tar.gz | 0004827772 4.6 MB | |
python-Pygments.changes | 0000044616 43.6 KB | |
python-Pygments.spec | 0000003495 3.41 KB | |
skip-wcag-contrast-ratio.patch | 0000000804 804 Bytes |
Revision 45 (latest revision is 46)
Ana Guerrero (anag+factory)
accepted
request 1129077
from
Dirk Mueller (dirkmueller)
(revision 45)
- update to 2.17.2: * Fix a packaging issue on macOS * Updated lexers: * TOML: Fix bug making lexing of single-quoted strings too eager * Cypher: fix comment matching, add missing keywords * Fortran: add ``elseif`` keyword * Lean: make it available as ``lean3``, in preparation for * a possible switch to ``lean`` highlighting as Lean 4 * JSON: add MIME types and file extensions for several line- delimited JSON formats * Nix: many improvements * OCaml: Add ``and`` keyword, remove ``value`` from keywords * Python: add ``starlark`` and ``bazel`` aliases * Snowball: Treat ``len`` like ``size`` * Spice: add ``panic`` keyword and ``->`` operator * squid.conf: fix catastrophic backtracking * TOML: rewritten, with many fixes * Turtle: support blank nodes * Wikitext: fix erroneous highlighting of LanguageConverter markup * CMake: support ``[=[ bracketed arguments ]=]``` * Fix ctags support and tests * Include ``Lexer.add_filter`` in the documentation * Add a ``Lean3Lexer`` alias * The ``pygments.styles`` module contains a new ``STYLES`` variable with a dictionary of built-in styles. The old ``STYLE_MAP`` variable, which uses a different format, is kept for backwards compatibility. * On Windows, add a new installation extra (``windows-
Comments 0