Skip to content

Instantly share code, notes, and snippets.

View scoop's full-sized avatar

Patrick Lenz scoop

View GitHub Profile
Quick code highlighting via Pygments - all thanks to the wonderfully simple
pygments.appspot.com web service, made by Trevor Turk. Perfect for writing
documentation hosted on Heroku.
The only catch (if you're using HAML) is you'll need to start a block that
includes indented lines with :plain to stop HAML complaining about non-HAML
syntax. If anyone can figure out a way around this, I'd love to hear it!
With thanks to Chris Lloyd and Jason Weathered for showing me the light on
whitespace-preserved output (use ~ instead of = when invoking code_snippet).