summaryrefslogtreecommitdiffstats
path: root/vendor/gems/coderay-1.0.0/lib/coderay/encoders/span.rb
blob: da705bdc070c98c1e33478a7a1c69c897dff4eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,
      :line_numbers => false
    
  end
  
end
end