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
The request body can contain 2 parameters:
code(mandatory) — the code snippet, normally the text you put inside
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/htmlresponse (the pygmentized code) with status 200 in a normal case,
text/plainerror with status 500 if the
langcode is invalid,
text/plainerror with status 500 if Pygments encountered internal error.
You can try it yourself here.