see: http://code.google.com/p/syntaxhighlighter/
You could format ruby like this.
describe RSpec do before(:each) do @rspec = RSpec.new end describe "at release 1.0.8" do before(:each) do @rspec.version = "1.0.8" end it "should not support nested example groups" do @rspec.should_not support_nested_example_groups end end describe "at release 1.1.0" do before(:each) do @rspec.version = "1.1.0" end it "should support nested example groups" do @rspec.should support_nested_example_groups end end end