-
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. Highlights are:
a wide range...
-
Pygments FAQ — Pygments
rst2pdf, a reStructuredText to PDF converter
Codecov, a code coverage CI service
Trac, the universal project management tool
AsciiDoc, a text-based documentation generator
ViewVC, a web-based version ...
-
Languages — Pygments
… that’s all?¶
Well, why not write your own? Contributing to Pygments is easy and fun. Take a
look at the docs on lexer development. Pull
requests are welcome on GitHub.
Note
The languages listed here...
-
Builtin Tokens — Pygments
Token
that is used to create token types.
You can create a new token type by accessing an attribute of
Token:
Note that tokens are singletons so you can use the
is operator for comparing
token types...
-
Command Line Interface — Pygments
pygmentize script:
$ pygmentize test.py
print "Hello World"
will print the file test.py to standard output, using the Python lexer
(inferred from the file name extension) and the terminal formatter (...
-
Pygments documentation — Pygments
© Copyright 2006-2022, Georg Brandl and Pygments contributors.
Created using Sphinx 7.0.1.
Pygments logo created by Joel Unger.
Backgrounds from subtlepatterns.com.