About 50 results
Open links in new tab
  1. Welcome! — Pygments

    This is the home of Pygments. It is a generic syntax highlighter suitable for use in code hosting, forums, wikis or other applications that need to prettify source code.

  2. Introduction and Quickstart — Pygments

    There is a lexer for every language or markup format that Pygments supports. The token stream can be piped through filters, which usually modify the token types or text fragments, e.g. uppercasing all …

  3. Download and installation — Pygments

    Under Linux, most distributions include a package for Pygments, usually called pygments or python-pygments. You can install it with the package manager as usual.

  4. Pygments documentation

    Quick search Pygments documentation ¶ Starting with Pygments Download and installation Introduction and Quickstart Command Line Interface Builtin components Available lexers Filters Available …

  5. Demo — Pygments

    The highlighting here is performed in-browser using a WebAssembly translation of the latest Pygments master branch, courtesy of Pyodide. Your content is neither sent over the web nor stored anywhere.

  6. Command Line Interface — Pygments

    You can make sure Pygments is installed with Windows console coloring support by installing Pygments with the windows-terminal extra (e.g., pip install pygments[windows-terminal]).

  7. Available formatters — Pygments

    When using Pygments from the command line, any encoding option given is passed to the lexer and the formatter. This is sometimes not desirable, for example if you want to set the input encoding to "guess".

  8. Pygments FAQ — Pygments

    Pygments is a syntax highlighting engine written in Python. That means, it will take source code (or other markup) in a supported language and output a processed version (in different formats) containing …

  9. The full Pygments API

    The pygments.util module has some utility functions usable for processing command line options. All of the following functions get values from a dictionary of options.

  10. Styles — Pygments

    Quick search Styles Pygments comes with the following builtin styles. For more information about styles refer to the documentation.