summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/span.rb
blob: 15960446128ffef1c0e6667d5592c67d7dc2a98e (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 SPAN element, using inline styles by default.
  # 
  # See Encoders::HTML for available options.
  class Span < HTML

    FILE_EXTENSION = 'span.html'

    register_for :span

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

  end

end
end