Harsh: Another Rails Syntax Highlighter
Harsh (or Github repository) is "another Rails syntax highlighter" that comes in plugin form and makes it easy to perform syntax highlighting on code in your Rails views. Harsh works in both Erb and Haml views, adopting a rather interesting configuration syntax for the latter.
Harsh relies on Oniguruma (the regex library) and Ultraviolet (the highlighting library) to do its thing, so you might have some extra installation work to do. This is all covered here.
Harsh is MIT licensed and was created by Michael J. Edgar.
August 19th, 2009 at 4:55 am
Good stuff. I did a write-up on tm_syntax_highlighting, harsh, and other rails syntax highlighting solutions here:
http://doblock.com/articles/a-whistle-stop-tour-of-syntax-highlighting-and-markdown-solutions-for-rails
Thought it might be useful to your readers. Thanks again.