From ceed015b2d5a237a6f3dfc0f2272f13c9f758771 Mon Sep 17 00:00:00 2001 From: murphy Date: Mon, 20 Oct 2008 14:18:18 +0000 Subject: New: *YAML* (#53). Preparing for version 0.8.1. * Based on the YAML scanner from Jamis Buck's Syntax lib. * Some YAML examples from Ruby gems. * Doesn't handle string yet; alpha state. More changes: * coderay_suite: new parameter "fast" makes testing faster (for development). * Changed the title of HTML page output (Page Encoder). * FileType: Added new file types. * cYcnus style: simplified some token group styles. * Cleanup in CSS and HTML Scanners. --- lib/coderay/helpers/file_type.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/coderay/helpers') diff --git a/lib/coderay/helpers/file_type.rb b/lib/coderay/helpers/file_type.rb index e955b9d..fbc95ec 100644 --- a/lib/coderay/helpers/file_type.rb +++ b/lib/coderay/helpers/file_type.rb @@ -88,7 +88,12 @@ module FileType 'cpp' => :c, 'c' => :c, 'h' => :c, + 'java' => :java, 'js' => :java_script, + 'json' => :json, + 'diff' => :diff, + 'patch' => :diff, + 'css' => :css, 'xml' => :xml, 'htm' => :html, 'html' => :html, -- cgit v1.2.1