Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rack middleware to pygmentize your code blocks

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples initial commit March 14, 2011
Octocat-spinner-32 lib indent private keyword June 27, 2011
Octocat-spinner-32 test push lib into load path and remove require_relative June 27, 2011
Octocat-spinner-32 .gemtest initial commit March 14, 2011
Octocat-spinner-32 .gitignore initial commit March 14, 2011
Octocat-spinner-32 Gemfile initial commit March 14, 2011
Octocat-spinner-32 LICENSE initial commit March 14, 2011
Octocat-spinner-32 README.md middleware? pffft, check out albeano yo March 14, 2011
Octocat-spinner-32 Rakefile run test task by default June 27, 2011
Octocat-spinner-32 rack-pygmentize.gemspec bump version June 27, 2011
README.md

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.

Something went wrong with that request. Please try again.