Mercurial > hg > soundsoftware-site
annotate vendor/gems/coderay-1.0.0/lib/coderay/encoders/page.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 the output into a HTML page, using CSS classes and |
Chris@909 | 7 # line numbers in the table format by default. |
Chris@909 | 8 # |
Chris@909 | 9 # See Encoders::HTML for available options. |
Chris@909 | 10 class Page < HTML |
Chris@909 | 11 |
Chris@909 | 12 FILE_EXTENSION = 'html' |
Chris@909 | 13 |
Chris@909 | 14 register_for :page |
Chris@909 | 15 |
Chris@909 | 16 DEFAULT_OPTIONS = HTML::DEFAULT_OPTIONS.merge \ |
Chris@909 | 17 :css => :class, |
Chris@909 | 18 :wrap => :page, |
Chris@909 | 19 :line_numbers => :table |
Chris@909 | 20 |
Chris@909 | 21 end |
Chris@909 | 22 |
Chris@909 | 23 end |
Chris@909 | 24 end |