Documentation

Overview

Important: the docs on this page always describe the development version of Pygments. If you want to view the docs for a specific released version, download the tarball from the Cheese Shop.

Welcome to the Pygments documentation.


If you find bugs or have suggestions for the documentation, please look here for info on how to contact the team.

You can download an offline version of this documentation from the download page.

Did you like the documentation? Do you have suggestions? Leave your comment here!

sdf wrote on March 29, 2012:

dsf

sdf wrote on March 29, 2012:

dsf

DroidIn.net/droid@droidin.net wrote on Nov. 30, 2010:

If you are interested on how to use Pygments in your Java app I just wrote a tutorial that can be accessed here: http://goo.gl/2Phd1

Felix wrote on April 16, 2009:

I just made my first Python web application using WSGI + Werkzeug. The application is pretty much entirely based on Pygments and can be found at http://pygmentool.mine.nu/ . I also wrote about the experience of making it and published the source code over at my blog: http://it-ride.blogspot.com/2009/04/pygmentool.html
You can see examples of Pygments-highlighted code on my blog in other posts.

Thanks! :)

Kevin Holzer wrote on Jan. 27, 2009:

Sagi S: Use the HTML output, the MS Office Suite usually can keep HTML formatting.

Sagi S wrote on Dec. 5, 2008:

I'm trying to use pygments to generate formatted python powerpoint slides.

I have tried using the rtf formatter but when I paste the contents into powerpoint I lose the colors.

Any ideas on how to get around this without having to resort to taking a screenshot?

 

Note: comments may be edited or deleted if they are of an offensive or inappropriate nature.