annotate vendor/gems/coderay-1.0.0/lib/coderay/encoders/span.rb @ 1169:492ff72268e3 bug_521

Close obsolete branch bug_521
author Chris Cannam
date Thu, 18 Oct 2012 10:42:48 +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