lib/pygmentize_options.js
function PygmentizeOptions (options) {
  if(!(this instanceof PygmentizeOptions))
    return new PygmentizeOptions(options);

  if(options.lexer && validate.lexer.test(options.lexer))
    this.lexer = options.lexer;

  if(options.guess && !this.lexer)
    this.guess = true;

  if(options.formatter && validate.formatter.test(options.formatter))
    this.formatter = options.formatter;
  else
    this.formatter = 'html'

}
function PygmentizeOptions (options) {
  if(!(this instanceof PygmentizeOptions))
    return new PygmentizeOptions(options);

  if(options.lexer && validate.lexer.test(options.lexer))
    this.lexer = options.lexer;

  if(options.guess && !this.lexer)
    this.guess = true;

  if(options.formatter && validate.formatter.test(options.formatter))
    this.formatter = options.formatter;
  else
    this.formatter = 'html'

}
function PygmentizeOptions ( options ) { if ( ! ( this instanceof PygmentizeOptions ) ) return new PygmentizeOptions ( options ) ; if ( options . lexer && validate . lexer . test ( options . lexer ) ) this . lexer = options . lexer ; if ( options . guess && ! this . lexer ) this . guess = true ; if ( options . formatter && validate . formatter . test ( options . formatter ) ) this . formatter = options . formatter ; else this . formatter = 'html' }
Wrap an options object with convenience methods
for working with pygmentize

@param {Object} options
Wrap an options object with convenience methods for working with pygmentize