From 18066ba8bf68da4b00b7e740e6c67f8d8b1e0093 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 16 Jan 2008 20:45:13 +0000 Subject: Added a couple of mime types so that corresponding files can be viewed in the browser. Added a simple (and not perfect) CodeRay scanner for php. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1070 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/mime_type.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redmine/mime_type.rb b/lib/redmine/mime_type.rb index e041c731f..c9db93956 100644 --- a/lib/redmine/mime_type.rb +++ b/lib/redmine/mime_type.rb @@ -19,13 +19,18 @@ module Redmine module MimeType MIME_TYPES = { - 'text/plain' => 'txt', + 'text/plain' => 'txt,tpl,properties', 'text/css' => 'css', 'text/html' => 'html,htm,xhtml', 'text/x-c' => 'c,cpp,h', + 'text/x-java' => 'java', 'text/x-javascript' => 'js', 'text/x-html-template' => 'rhtml', + 'text/x-perl' => 'pl,pm', + 'text/x-php' => 'php,php3,php4,php5', + 'text/x-python' => 'py', 'text/x-ruby' => 'rb,rbw,ruby,rake', + 'text/x-sh' => 'sh', 'text/xml' => 'xml', 'text/yaml' => 'yml,yaml', 'image/gif' => 'gif', -- cgit v1.2.3