Class: CodeRay::Encoders::Page

Inherits:
HTML show all
Defined in:
lib/coderay/encoders/page.rb

Overview

Wraps the output into a HTML page, using CSS classes and line numbers in the table format by default.

See Encoders::HTML for available options.

Constant Summary collapse

FILE_EXTENSION =
'html'
DEFAULT_OPTIONS =
HTML::DEFAULT_OPTIONS.merge \
:css          => :class,
:wrap         => :page,
:line_numbers => :table

Instance Attribute Summary

Attributes inherited from HTML

#css

Attributes inherited from Encoder

#options, #scanner

Attributes included from Plugin

#plugin_id

Method Summary

Methods inherited from HTML

#begin_group, #begin_line, #end_group, #end_line, #text_token

Methods inherited from Encoder

#<<, #begin_group, #begin_line, const_missing, #encode, #encode_tokens, #end_group, #end_line, #file_extension, file_extension, #initialize, #text_token, #token

Methods included from Plugin

#aliases, #plugin_host, #register_for, #title

Constructor Details

This class inherits a constructor from CodeRay::Encoders::Encoder