Using Pygments in various scenarios¶
Markdown¶
Since Pygments 0.9, the distribution ships Markdown preprocessor sample code
that uses Pygments to render source code in
external/markdown-processor.py
. You can copy and adapt it to your
liking.
TextMate¶
Antonio Cangiano has created a Pygments bundle for TextMate that allows to colorize code via a simple menu option. It can be found here.
Bash completion¶
The source distribution contains a file external/pygments.bashcomp
that
sets up completion for the pygmentize
command in bash.
wxPython¶
The pygments-gui plugin adds Pygments functionality to the wxPython package, making it easy to create a wx text control with Pygments highlighting.
Wrappers for other languages¶
These libraries provide Pygments highlighting for users of other languages than Python:
pygments.rb, a pygments wrapper for Ruby
Clygments, a pygments wrapper for Clojure
PHPygments, a pygments wrapper for PHP