aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2011-09-28 21:31:13 +0100
committerTom Needham <needham.thomas@gmail.com>2011-09-28 21:31:13 +0100
commit98ded8d16871be75c821bfc1b20891818a8a955c (patch)
treeb889b9919aeaed2a1d3d72adb47ae5e812869c48
parentbc7289bb284db0fe100be9e354fb4bcbc2d5b5b3 (diff)
downloadnextcloud-server-98ded8d16871be75c821bfc1b20891818a8a955c.tar.gz
nextcloud-server-98ded8d16871be75c821bfc1b20891818a8a955c.zip
Added support for more file types
-rw-r--r--apps/editor/index.php8
1 files changed, 7 insertions, 1 deletions
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);
}