Welcome to Pygmentizr!
Pygmentizr provides a web service for syntax highlighting your code.
How to use Pygmentizr?
It's really simple. Just send a HTTP POST request to
http://pygmentizr.herokuapp.com/ with the following parameters:
code: Your source code.
language: The programming language of your source code.
nowrap: Set to
1if you don't want the wrap the highlighted code in a div and pre element.
In response Pygmentizr sends the highlighted source code as HTML to your client.
Pygmentizr supports many, many programming languages, template languages and markup languages.
You can find a complete list on the Pygments home page.
Pygmentizr will respond with an error message if you attempt to use an unsupported language.
The technology of Pygmentizr
Pygmentizr is written in Python and is build on top the micro framework Flask. As the name implies Pygmentizr uses the Python library Pygments for syntax highlighting.
You can browse the source code of Pygmentizr on GitHub.
Feel free to fork Pygmentizr!