This is a simple online pygmentizer — a supporting project for WpPygments Wordpress plugin. Based on an excellent Pygments library, it performs a single task — accepts a code snippet, passes it through Pygments and returns the result. Created by Eugene Mirotin.
To use this service, issue POST request to http://pygmentizer.appspot.com/.
The request body can contain 2 parameters:
code (mandatory) —
the code snippet, normally the text you put inside <pre><code>...</code></pre>,
lang (otpional, though highly recommended) —
the language code. If ommitted, the langage will be guessed by Pygments, though guess is normally bad.
See the list of supported languages. Important: language code is case-sensitive.
The response would be:
text/html response (the pygmentized code) with status 200 in a normal case,text/plain error with status 500 if the lang code is invalid,text/plain error with status 500 if Pygments encountered internal error.You can try it yourself here.