1 2
diff = "puts 'Hello, world!'\nputs 'Goodbye, world!'" html = CodeRay.scan(diff, :diff).div(:line_numbers => :table, :css => :style)