diff options
Diffstat (limited to 'application/models')
-rw-r--r-- | application/models/mfile.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php index e862f1930..e70b5c812 100644 --- a/application/models/mfile.php +++ b/application/models/mfile.php @@ -476,11 +476,29 @@ class Mfile extends CI_Model { $extension = substr($name, strrpos($name, ".") + 1); $extensionarray = array( + 'awk' => 'awk', + 'c' => 'c', 'coffee' => 'coffee-script', + 'cpp' => 'cpp', + 'diff' => 'diff', + 'h' => 'c', + 'hs' => 'haskell', + 'html' => 'xml', + 'java' => 'java', + 'js' => 'js', + 'lua' => 'lua', 'mli' => 'ocaml', 'mll' => 'ocaml', 'ml' => 'ocaml', 'mly' => 'ocaml', + 'patch' => 'diff', + 'php' => 'php', + 'pl' => 'perl', + 'py' => 'python', + 'rb' => 'ruby', + 's' => 'asm', + 'sh' => 'bash', + 'svg' => 'xml', 'tcl' => 'tcl', 'tex' => 'tex', ); |