Added support for more file types

This commit is contained in:
Tom Needham 2011-09-28 21:31:13 +01:00
parent bc7289bb28
commit 98ded8d168
1 changed files with 7 additions and 1 deletions

View 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);
}