require 'rouge' # (1)
html = Rouge::Formatters::HTML.format(Rouge::Lexers::Ruby.lex('puts "Hello, world!"')) # (2)
puts html # (3) (4)
exit 0 # (5)(6)
require 'rouge' # (1)
html = Rouge::Formatters::HTML.format(Rouge::Lexers::Ruby.lex('puts "Hello, world!"')) # (2)
puts html # (3) (4)
exit 0 # (5)(6)
Load library
Highlight source
Print to stdout
Redirect to a file to capture output
Exit program
Reports success