summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/div.rb
blob: f9741e307059cdfdef61e559c2d41e92ef861543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module CodeRay
module Encoders

  load :html
  
  # Wraps HTML output into a DIV element, using inline styles by default.
  # 
  # See Encoders::HTML for available options.
  class Div < HTML

    FILE_EXTENSION = 'div.html'

    register_for :div

    DEFAULT_OPTIONS = HTML::DEFAULT_OPTIONS.merge \
      :css => :style,
      :wrap => :div

  end

end
end