HTTP interface for pygments is an unofficial HTTP API for the Pygments syntax highlighting library. It's designed to provide syntax highlighting for web applications that cynnot execute the Python script directly.


POST to with "lang" and "code" parameters in the body. You'll receive pygmentized HTML back, which you can store for later display on your site. You can style the pygmentized HTML using CSS like this: default.css

Ruby Example

More Information

Visit for more information about Pygments.

Visit for more example CSS files for use with Pygments.

Visit for more information about this site, and to see the source code.

See also: for a similar application with more options.

Copyright/ Acknowledgement

This was originally implemented by Trevor Turk and published at and later changed by Marco Otte-Witte and moved to