Debian Codegraph @

doc/docs/integrate.rst

raw
1 .. -*- mode: rst -*-
2
3 ===================================
4 Using Pygments in various scenarios
5 ===================================
6
7 Markdown
8 --------
9
10 Since Pygments 0.9, the distribution ships Markdown_ preprocessor sample code
11 that uses Pygments to render source code in
12 :file:`external/markdown-processor.py`. You can copy and adapt it to your
13 liking.
14
15 .. _Markdown: https://pypi.org/project/Markdown/
16
17 TextMate
18 --------
19
20 Antonio Cangiano has created a Pygments bundle for TextMate that allows to
21 colorize code via a simple menu option. It can be found here_.
22
23 .. _here: https://programmingzen.com/pygments-textmate-bundle/
24
25 Bash completion
26 ---------------
27
28 The source distribution contains a file ``external/pygments.bashcomp`` that
29 sets up completion for the ``pygmentize`` command in bash.
30
31 wxPython
32 --------
33 The `pygments-gui <https://github.com/TEParsons/pygments-gui>`_ plugin adds
34 Pygments functionality to the wxPython package, making it easy to create a
35 wx text control with Pygments highlighting.
36
37 Wrappers for other languages
38 ----------------------------
39
40 These libraries provide Pygments highlighting for users of other languages
41 than Python:
42
43 * `pygments.rb <https://github.com/pygments/pygments.rb>`_, a pygments wrapper for Ruby
44 * `Clygments <https://github.com/bfontaine/clygments>`_, a pygments wrapper for
45 Clojure
46 * `PHPygments <https://github.com/capynet/PHPygments>`_, a pygments wrapper for PHP