summaryrefslogtreecommitdiff
path: root/doc/docs/integrate.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-18 21:16:32 +0100
committerGeorg Brandl <georg@python.org>2014-01-18 21:16:32 +0100
commitff3a8dea781fb0492de4abbd4da48a5b1c110974 (patch)
tree5aaf665818ca148242ba821fc95940b396009f17 /doc/docs/integrate.rst
parent97703d63f39e6086d497a6a749c9eee3293dcbeb (diff)
downloadpygments-ff3a8dea781fb0492de4abbd4da48a5b1c110974.tar.gz
New docs + website using Sphinx.
Diffstat (limited to 'doc/docs/integrate.rst')
-rw-r--r--doc/docs/integrate.rst44
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/docs/integrate.rst b/doc/docs/integrate.rst
new file mode 100644
index 00000000..03fc268f
--- /dev/null
+++ b/doc/docs/integrate.rst
@@ -0,0 +1,44 @@
+.. -*- mode: rst -*-
+
+===================================
+Using Pygments in various scenarios
+===================================
+
+PyGtk
+-----
+
+Armin has written a piece of sample code that shows how to create a Gtk
+`TextBuffer` object containing Pygments-highlighted text.
+
+See the article here: http://lucumr.pocoo.org/cogitations/2007/05/30/pygments-gtk-rendering/
+
+Wordpress
+---------
+
+He also has a snippet that shows how to use Pygments in WordPress:
+
+http://lucumr.pocoo.org/cogitations/2007/05/30/pygments-in-wordpress/
+
+Markdown
+--------
+
+Since Pygments 0.9, the distribution ships Markdown_ preprocessor sample code
+that uses Pygments to render source code in
+:file:`external/markdown-processor.py`. You can copy and adapt it to your
+liking.
+
+.. _Markdown: http://www.freewisdom.org/projects/python-markdown/
+
+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_.
+
+.. _here: http://antoniocangiano.com/2008/10/28/pygments-textmate-bundle/
+
+Bash completion
+---------------
+
+The source distribution contains a file ``external/pygments.bashcomp`` that
+sets up completion for the ``pygmentize`` command in bash.