From b4a4f4148a1627aed63c602f43bd4b5ef5093c4f Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 11 May 2006 23:32:49 +0000 Subject: new version: 0.7.1 improved bin/coderay and included it into package added gem:install task added Duo#highlight (alias for encode) fixed a Plugin bug --- lib/coderay/encoders/page.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/coderay/encoders/page.rb (limited to 'lib/coderay/encoders') diff --git a/lib/coderay/encoders/page.rb b/lib/coderay/encoders/page.rb new file mode 100644 index 0000000..74bdc55 --- /dev/null +++ b/lib/coderay/encoders/page.rb @@ -0,0 +1,21 @@ +module CodeRay +module Encoders + + load :html + + class Page < HTML + + FILE_EXTENSION = 'html' + + register_for :page + + DEFAULT_OPTIONS = HTML::DEFAULT_OPTIONS.merge({ + :css => :class, + :wrap => :page, + :line_numbers => :table + }) + + end + +end +end -- cgit v1.2.1