Mercurial > hg > soundsoftware-site
annotate .svn/pristine/70/70fcc81fd15a480f7d8ac6f47bf3e67d8c9739ca.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +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 |