Chris@909: module CodeRay Chris@909: module Encoders Chris@909: Chris@909: load :html Chris@909: Chris@909: # Wraps the output into a HTML page, using CSS classes and Chris@909: # line numbers in the table format by default. Chris@909: # Chris@909: # See Encoders::HTML for available options. Chris@909: class Page < HTML Chris@909: Chris@909: FILE_EXTENSION = 'html' Chris@909: Chris@909: register_for :page Chris@909: Chris@909: DEFAULT_OPTIONS = HTML::DEFAULT_OPTIONS.merge \ Chris@909: :css => :class, Chris@909: :wrap => :page, Chris@909: :line_numbers => :table Chris@909: Chris@909: end Chris@909: Chris@909: end Chris@909: end