class Rouge::CLI::Highlight
def initialize(opts={})
def initialize(opts={}) @input_file = opts[:input_file] if opts[:lexer] @lexer_class = Lexer.find(opts[:lexer]) \ or error! "unkown lexer #{opts[:lexer].inspect}" else @lexer_name = opts[:lexer] @mimetype = opts[:mimetype] end @lexer_opts = opts[:lexer_opts] formatter_class = Formatter.find(opts[:formatter]) \ or error! "unknown formatter #{opts[:formatter]}" @formatter = formatter_class.new(opts[:formatter_opts]) end