We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Up to now Syntax Highlighting is offered only for some programming languages.
It would be great if the list of programming language is extendable or configurable.
Before doing that it would be great to add to the defaults the few missing languages in the upper right corner of the graph here
As far as I managed to understand the list of languages is defined in files_texteditor/js/editor.js
/** Sets the syntax highlighting for the editor based on the file extension */ setEditorSyntaxMode: function(extension) { // Loads the syntax mode files and tells the editor var filetype = []; // add file extensions like this: filetype["extension"] = "filetype": filetype["h"] = "c_cpp"; filetype["c"] = "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["htm"] = "html"; filetype["html"] = "html"; filetype["tt"] = "html"; filetype["java"] = "java"; filetype["js"] = "javascript"; filetype["jsm"] = "javascript"; filetype["json"] = "json"; filetype["latex"] = "latex"; filetype["tex"] = "latex"; filetype["less"] = "less"; filetype["ly"] = "latex"; filetype["ily"] = "latex"; filetype["lua"] = "lua"; filetype["markdown"] = "markdown"; filetype["md"] = "markdown"; filetype["mdown"] = "markdown"; filetype["mdwn"] = "markdown"; filetype["mkd"] = "markdown"; 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["sh"] = "sh"; filetype["sql"] = "sql"; filetype["svg"] = "svg"; filetype["textile"] = "textile"; // related to markdown filetype["xml"] = "xml";
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Up to now Syntax Highlighting is offered only for some programming languages.
It would be great if the list of programming language is extendable or configurable.
Before doing that it would be great to add to the defaults the few missing languages in the upper right corner of the graph here
As far as I managed to understand the list of languages is defined in files_texteditor/js/editor.js
The text was updated successfully, but these errors were encountered: