Added support for more file types
This commit is contained in:
parent
4eb7487e61
commit
ad9a81bf41
|
@ -14,25 +14,32 @@ function setSyntaxMode(ext){
|
||||||
// Todo finish these
|
// Todo finish these
|
||||||
filetype["h"] = "c_cpp";
|
filetype["h"] = "c_cpp";
|
||||||
filetype["c"] = "c_cpp";
|
filetype["c"] = "c_cpp";
|
||||||
filetype["cpp"] = "c_cpp";
|
|
||||||
filetype["clj"] = "clojure";
|
filetype["clj"] = "clojure";
|
||||||
filetype["coffee"] = "coffee"; // coffescript can be compiled to javascript
|
filetype["coffee"] = "coffee"; // coffescript can be compiled to javascript
|
||||||
|
filetype["coldfusion"] = "cfc";
|
||||||
|
filetype["cpp"] = "c_cpp";
|
||||||
filetype["cs"] = "csharp";
|
filetype["cs"] = "csharp";
|
||||||
filetype["css"] = "css";
|
filetype["css"] = "css";
|
||||||
filetype["groovy"] = "groovy";
|
filetype["groovy"] = "groovy";
|
||||||
|
filetype["haxe"] = "hx";
|
||||||
filetype["html"] = "html";
|
filetype["html"] = "html";
|
||||||
filetype["java"] = "java";
|
filetype["java"] = "java";
|
||||||
filetype["js"] = "javascript";
|
filetype["js"] = "javascript";
|
||||||
filetype["json"] = "json";
|
filetype["json"] = "json";
|
||||||
|
filetype["latex"] = "latex";
|
||||||
|
filetype["lua"] = "lua";
|
||||||
|
filetype["markdown"] = "markdown"; // also: .md .markdown .mdown .mdwn
|
||||||
filetype["ml"] = "ocaml";
|
filetype["ml"] = "ocaml";
|
||||||
filetype["mli"] = "ocaml";
|
filetype["mli"] = "ocaml";
|
||||||
filetype["pl"] = "perl";
|
filetype["pl"] = "perl";
|
||||||
filetype["php"] = "php";
|
filetype["php"] = "php";
|
||||||
|
filetype["powershell"] = "ps1";
|
||||||
filetype["py"] = "python";
|
filetype["py"] = "python";
|
||||||
filetype["rb"] = "ruby";
|
filetype["rb"] = "ruby";
|
||||||
filetype["scad"] = "scad"; // seems to be something like 3d model files printed with e.g. reprap
|
filetype["scad"] = "scad"; // seems to be something like 3d model files printed with e.g. reprap
|
||||||
filetype["scala"] = "scala";
|
filetype["scala"] = "scala";
|
||||||
filetype["scss"] = "scss"; // "sassy css"
|
filetype["scss"] = "scss"; // "sassy css"
|
||||||
|
filetype["sql"] = "sql";
|
||||||
filetype["svg"] = "svg";
|
filetype["svg"] = "svg";
|
||||||
filetype["textile"] = "textile"; // related to markdown
|
filetype["textile"] = "textile"; // related to markdown
|
||||||
filetype["xml"] = "xml";
|
filetype["xml"] = "xml";
|
||||||
|
|
Loading…
Reference in New Issue