Rack::Pygmoku is a middleware for generating code syntax highlighting using the
Pygments library in an environment where you cannot
install Pygments directly.
In other words, it's ideal for use on Heroku.
First, of course, install the gem.
rack-pygmoku only support Markdown-style code blocks, like
<pre data-lang='ruby'> <code> def greeting 'Hello World!' end </code> </pre>
Note: Put the short name of the
Pygments lexer that you want to use in the
data-lexer attribute on the
This is mainly a toy project that I put together for my Nesta-powered blog, and is likely to be maintained as such unless others find it useful.
Copyright (c) 2011 Kevin Rohrbaugh.
See LICENSE.txt for further details.