annotate vendor/gems/coderay-1.0.0/lib/coderay/encoders/span.rb @ 1171:b4558bc5837f bug_505

Close obsolete branch bug_505
author Chris Cannam
date Fri, 03 Aug 2012 19:40:23 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 module CodeRay
Chris@909 2 module Encoders
Chris@909 3
Chris@909 4 load :html
Chris@909 5
Chris@909 6 # Wraps HTML output into a SPAN element, using inline styles by default.
Chris@909 7 #
Chris@909 8 # See Encoders::HTML for available options.
Chris@909 9 class Span < HTML
Chris@909 10
Chris@909 11 FILE_EXTENSION = 'span.html'
Chris@909 12
Chris@909 13 register_for :span
Chris@909 14
Chris@909 15 DEFAULT_OPTIONS = HTML::DEFAULT_OPTIONS.merge \
Chris@909 16 :css => :style,
Chris@909 17 :wrap => :span,
Chris@909 18 :line_numbers => false
Chris@909 19
Chris@909 20 end
Chris@909 21
Chris@909 22 end
Chris@909 23 end