coderay

Ruby code posted by coderay
created at 18 Jan 00:37, updated at 22 Mar 22:17

Edit | Back
1
2
3
4
5
6
7
require 'rubygems'
require 'coderay'
tokens = CodeRay.scan <<-'CODE', :ruby
  puts %[Hello, world!]
  puts "Here\'s some #@@weird #{ { :code => "for you" } }"
CODE
print tokens.div(:line_numbers => :table, :css => :class)
227 Bytes in 4 ms with coderay