class CodeRay::Encoders::Encoder

def encode code, lang, options = {}

Encode the given +code+ using the Scanner for +lang+.
def encode code, lang, options = {}
  options = @options.merge options
  @scanner = Scanners[lang].new code, CodeRay.get_scanner_options(options).update(:tokens => self)
  setup options
  @scanner.tokenize
  finish options
end