No commit activity in last 3 years
No release in over 3 years
Rack middleware used to automagically format your code blocks using pygmentize
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies

Runtime

~> 1.3.2
~> 1.4.4
~> 1.0.0
 Project Readme

Rack::Pygmentize

Get colorful with Rack::Pygmentize! Rack::Pygmentize uses the awesome Pygments library to make your code look pretty! Thanks to Albino the Pygmentizing process is super awesome and made of win.

Installation

Ensure you have Pygments installed and the pygmentize executable is available in your PATH. Then run

gem install rack-pygmentize

Usage

Just add use Rack::Pygmentize to your config.ru. See the example in the /examples directory.

Middleware?

Yes, middleware. If you don't want to use middleware, but still want the awesomeness that is Pygments, check out Albeano for adding BBCode style [code=lang] blocks to your values.