module CodeRay

def scan code, lang, options = {}, &block

See also demo/demo_simple.

page = CodeRay.scan("puts 'Hello, world!'", :ruby).html
require 'coderay'
This is a simple way to use CodeRay. Example:

Scans the given +code+ (a String) with the Scanner for +lang+.
def scan code, lang, options = {}, &block
  # FIXME: return a proxy for direct-stream encoding
  TokensProxy.new code, lang, options, block
end