module CodeRay
def encode_file filename, format, options = {}
require 'coderay'
Example:
Notice that the second argument is the output +format+, not the input language.
See CodeRay.scan_file.
Encodes +filename+ (a path to a code file) with the Scanner for +lang+.
def encode_file filename, format, options = {} tokens = scan_file filename, :auto, get_scanner_options(options) encode_tokens tokens, format, options end