This post originated from an RSS feed registered with Ruby Buzz
by Jake Scruggs.
Original Post: Syntax Highlighting for Ruby Made Very Easy
Feed Title: Jake Scruggs
Feed URL: http://jakescruggs.blogspot.com/feeds/posts/default
Feed Description: Ruby, Rails, Metrics, Testing, and pursuit of clean code.
So I've been making do with lame-o 'pre' tags for my code snippets and my blog looks, well, lame. But the various alternatives for highlighting ruby either didn't work for Blogger or smacked of effort (and you know how I feel about effort).
Well, recently I joined Obtiva and I was being all nosy looking at my new co-worker's blogs, when I found Tyler Jenningspost about creating Spotlight. Take some ruby code, paste it into the text box, press a button, and you get some html which you copy and past into your blog. You'll have to include the default css in your css file the first time, but that's not too hard. Output looks like this: