Skip to content
Snippets Groups Projects
Commit 98ded8d1 authored by Tom Needham's avatar Tom Needham
Browse files

Added support for more file types

parent bc7289bb
Branches
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment