Pygments is a syntax highlighting package written in Python

Edit Package python-Pygments

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!

Refresh
Refresh
Source Files
Filename Size Changed
pygments-2.18.0.tar.gz 0004891905 4.67 MB
python-Pygments.changes 0000047949 46.8 KB
python-Pygments.spec 0000003458 3.38 KB
skip-wcag-contrast-ratio.patch 0000000804 804 Bytes
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1172327 from Markéta Machová's avatar Markéta Machová (mcalabkova) (revision 46)
- update to version 2.18.0:
  * New lexers:
    + Janet (#2557)
    + Lean 4 (#2618, #2626)
    + Luau (#2605)
    + Mojo (#2691, #2515)
    + org-mode (#2628, #2636)
    + Promela (#2620)
    + Soong / ``Android.bp`` (#2659)
    + Tact (#2571)
    + Typst (#2596)
  * Updated lexers:
    + Awk: recognize ternary operator (#2687)
    + Bash: add ``openrc`` alias (#2599, #2371)
    + Coq: add keywords, lex more vernacular command arguments,
      produce fewer tokens on heading comments (#2678)
    + DNS zone files: Fix comment parsing (#2595)
    + Hy: Support unicode literals (#1126)
    + Inform6: Update to Inform 6.42 (#2644)
    + lean: Fix name handling (#2614)
    + Logtalk: add ``uninstantiation`` keyword and recognize escape
      sequences (#2619)
    + Macaulay2: Update to 1.23 (#2655)
    + Python: fix highlighting of soft keywords before ``None``/
      ``True``/``False``
    + reStructuredText: use ``Token.Comment`` for comments instead
      of ``Comment.Preproc`` (#2598)
    + Rust: highlight ``:``, ``::`` and ``->`` as ``Punctuation``
      and whitespace as ``Whitespace``, instead of ``Text`` in both
      cases (#2631)
Comments 0
openSUSE Build Service is sponsored by