summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-06-25 18:23:07 +0000
committermurphy <murphy@rubychan.de>2011-06-25 18:23:07 +0000
commit498df2b7654c210c8f47e2757efc33cd94689b57 (patch)
treebda6e10d3eadbf22f1a1a1a2d4e8d0cf7844a3b0 /lib/coderay/encoders
parentd6fe4e777a4f543c8828dbf77e955ab38e6c2803 (diff)
downloadcoderay-498df2b7654c210c8f47e2757efc33cd94689b57.tar.gz
coderay list subcommand and cleanups/fixes in Plugin helper (issue #45)
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r--lib/coderay/encoders/_map.rb3
-rw-r--r--lib/coderay/encoders/page.rb12
2 files changed, 7 insertions, 8 deletions
diff --git a/lib/coderay/encoders/_map.rb b/lib/coderay/encoders/_map.rb
index b4b766a..c9a20cc 100644
--- a/lib/coderay/encoders/_map.rb
+++ b/lib/coderay/encoders/_map.rb
@@ -8,8 +8,7 @@ module Encoders
:plain => :text,
:plaintext => :text,
:remove_comments => :comment_filter,
- :stats => :statistic,
- :tex => :latex
+ :stats => :statistic
# No default because Tokens#nonsense would not raise NoMethodError.
diff --git a/lib/coderay/encoders/page.rb b/lib/coderay/encoders/page.rb
index 9f3538e..8db45cd 100644
--- a/lib/coderay/encoders/page.rb
+++ b/lib/coderay/encoders/page.rb
@@ -1,6 +1,6 @@
module CodeRay
module Encoders
-
+
load :html
# Wraps the output into a HTML page, using CSS classes and
@@ -8,17 +8,17 @@ module Encoders
#
# See Encoders::HTML for available options.
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