class Rouge::Formatters::HTML

def initialize(opts={})

Options Hash: (**opts)
  • :wrap (true/false) --
  • :inline_theme (Rouge::CSSTheme) --
  • :line_numbers (true/false) --
  • :css_class (String) --
def initialize(opts={})
  @css_class = opts.fetch(:css_class, 'highlight')
  @css_class = " class=#{@css_class.inspect}" if @css_class
  @line_numbers = opts.fetch(:line_numbers, false)
  @start_line = opts.fetch(:start_line, 1)
  @inline_theme = opts.fetch(:inline_theme, nil)
  @inline_theme = Theme.find(@inline_theme).new if @inline_theme.is_a? String
  @wrap = opts.fetch(:wrap, true)
end