From 5efcf487985e7348ed3d39f33b7185028a6e3716 Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 21 May 2011 03:03:31 +0000 Subject: various fixes and cleanups in CodeRay's helpers --- lib/coderay.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay.rb') diff --git a/lib/coderay.rb b/lib/coderay.rb index 8b9ad41..60dcfd0 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -168,7 +168,7 @@ module CodeRay # # If +lang+ is :auto or omitted, the CodeRay::FileType module is used to # determine it. If it cannot find out what type it is, it uses - # CodeRay::Scanners::Plaintext. + # CodeRay::Scanners::Text. # # Calls CodeRay.scan. # @@ -179,7 +179,7 @@ module CodeRay file = IO.read filename if lang == :auto require 'coderay/helpers/file_type' - lang = FileType.fetch filename, :plaintext, true + lang = FileType.fetch filename, :text, true end scan file, lang, options = {}, &block end -- cgit v1.2.1