From 052399c510acf6bb5ae374b7270acbdf9b861b71 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 9 Jun 2009 10:41:06 +0000 Subject: New: Plugin.title (closes #96) The title saves the real name for a language, like "C++"...something that can't be deduced from the class name. And a version fix in the README. --- lib/coderay/scanners/debug.rb | 1 + lib/coderay/scanners/diff.rb | 1 + lib/coderay/scanners/nitro_xhtml.rb | 1 + lib/coderay/scanners/plaintext.rb | 1 + lib/coderay/scanners/rhtml.rb | 1 + 5 files changed, 5 insertions(+) (limited to 'lib/coderay/scanners') diff --git a/lib/coderay/scanners/debug.rb b/lib/coderay/scanners/debug.rb index ec594c1..f43564e 100644 --- a/lib/coderay/scanners/debug.rb +++ b/lib/coderay/scanners/debug.rb @@ -7,6 +7,7 @@ module Scanners include Streamable register_for :debug file_extension 'raydebug' + title 'CodeRay Token Dump' protected def scan_tokens tokens, options diff --git a/lib/coderay/scanners/diff.rb b/lib/coderay/scanners/diff.rb index d52458c..bfb400b 100644 --- a/lib/coderay/scanners/diff.rb +++ b/lib/coderay/scanners/diff.rb @@ -4,6 +4,7 @@ module Scanners class Diff < Scanner register_for :diff + title 'diff output' def scan_tokens tokens, options diff --git a/lib/coderay/scanners/nitro_xhtml.rb b/lib/coderay/scanners/nitro_xhtml.rb index 871ce17..7087ffa 100644 --- a/lib/coderay/scanners/nitro_xhtml.rb +++ b/lib/coderay/scanners/nitro_xhtml.rb @@ -10,6 +10,7 @@ module Scanners include Streamable register_for :nitro_xhtml file_extension :xhtml + title 'Nitro XHTML' NITRO_RUBY_BLOCK = / <\?r diff --git a/lib/coderay/scanners/plaintext.rb b/lib/coderay/scanners/plaintext.rb index 7a08c3a..a362f0b 100644 --- a/lib/coderay/scanners/plaintext.rb +++ b/lib/coderay/scanners/plaintext.rb @@ -4,6 +4,7 @@ module Scanners class Plaintext < Scanner register_for :plaintext, :plain + title 'Plain text' include Streamable diff --git a/lib/coderay/scanners/rhtml.rb b/lib/coderay/scanners/rhtml.rb index ca8196a..75790d8 100644 --- a/lib/coderay/scanners/rhtml.rb +++ b/lib/coderay/scanners/rhtml.rb @@ -9,6 +9,7 @@ module Scanners include Streamable register_for :rhtml + title 'HTML.ERB' ERB_RUBY_BLOCK = / <%(?!%)[=-]? -- cgit v1.2.1