From ad9a81bf41fa83eb66c9be574d2981a0756f303b Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Sun, 1 Jan 2012 20:04:46 +0000 Subject: [PATCH] Added support for more file types --- apps/files_texteditor/js/editor.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index dce3a359d8..63e67460a3 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -14,25 +14,32 @@ function setSyntaxMode(ext){ // Todo finish these filetype["h"] = "c_cpp"; filetype["c"] = "c_cpp"; - filetype["cpp"] = "c_cpp"; filetype["clj"] = "clojure"; filetype["coffee"] = "coffee"; // coffescript can be compiled to javascript + filetype["coldfusion"] = "cfc"; + filetype["cpp"] = "c_cpp"; filetype["cs"] = "csharp"; filetype["css"] = "css"; filetype["groovy"] = "groovy"; + filetype["haxe"] = "hx"; filetype["html"] = "html"; filetype["java"] = "java"; filetype["js"] = "javascript"; filetype["json"] = "json"; + filetype["latex"] = "latex"; + filetype["lua"] = "lua"; + filetype["markdown"] = "markdown"; // also: .md .markdown .mdown .mdwn filetype["ml"] = "ocaml"; filetype["mli"] = "ocaml"; filetype["pl"] = "perl"; filetype["php"] = "php"; + filetype["powershell"] = "ps1"; filetype["py"] = "python"; filetype["rb"] = "ruby"; filetype["scad"] = "scad"; // seems to be something like 3d model files printed with e.g. reprap filetype["scala"] = "scala"; filetype["scss"] = "scss"; // "sassy css" + filetype["sql"] = "sql"; filetype["svg"] = "svg"; filetype["textile"] = "textile"; // related to markdown filetype["xml"] = "xml";