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";