]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added support for more file types
authorTom Needham <needham.thomas@gmail.com>
Wed, 28 Sep 2011 20:31:13 +0000 (21:31 +0100)
committerTom Needham <needham.thomas@gmail.com>
Wed, 28 Sep 2011 20:31:13 +0000 (21:31 +0100)
apps/editor/index.php

index b4a15c5d2088b4dff6d492a5002abf441dee3c2d..e8fd36828b6c6dcb88f131dcc5827c2e65fbee28 100644 (file)
@@ -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);               
        }