New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast.

A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click here to learn more.

Harsh: Another Rails Syntax Highlighter

In Plugins

harsh1.pngHarsh (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.

Post to Twitter Tweet This Post

Vaguely Related Posts (Usually)

One Comment Response to “Harsh: Another Rails Syntax Highlighter”

  1. #1
    Mike Zazaian Says:

    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.

Leave a Reply