From 98ded8d16871be75c821bfc1b20891818a8a955c Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Wed, 28 Sep 2011 21:31:13 +0100 Subject: [PATCH] Added support for more file types --- apps/editor/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/editor/index.php b/apps/editor/index.php index b4a15c5d208..e8fd36828b6 100644 --- a/apps/editor/index.php +++ b/apps/editor/index.php @@ -48,7 +48,13 @@ if(substr_count($file,'.')!=0){ // TODO ADD THESE $types = array('php' => 'php', 'js' => 'javascript', - 'html' => 'html'); + 'html' => 'html', + 'css' => 'css', + 'pl' => 'perl', + 'py' => 'python', + 'rb' => 'ruby', + 'xml' => 'xml', + 'svg' => 'svg'); $filetype = $types[$parts[1]]; OC_UTIL::addScript('editor','aceeditor/mode-'.$filetype); } -- 2.39.5