diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-06-05 13:20:15 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-06-05 13:20:15 +0300 |
commit | ce7bb76ef0114b05d6e237eac11491a1b40221a6 (patch) | |
tree | 20874b56465a6776bca88043dce149085abdb4f3 /js | |
parent | d0f279f14b2bcee8116987b67d6126bfb51f362a (diff) | |
parent | 1b2f4b797593b29d94a2ad01565427a2b26db050 (diff) |
Merge pull request #63 from owncloud/more-text-types
yml, yaml, cnf, conf
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/editor.js b/js/editor.js index b40ca15..2fc83c4 100644 --- a/js/editor.js +++ b/js/editor.js @@ -12,6 +12,8 @@ function setSyntaxMode(ext) { filetype["clj"] = "clojure"; filetype["coffee"] = "coffee"; // coffescript can be compiled to javascript filetype["coldfusion"] = "cfc"; + filetype["cnf"] = "text"; + filetype["conf"] = "text"; filetype["cpp"] = "c_cpp"; filetype["cs"] = "csharp"; filetype["css"] = "css"; @@ -50,6 +52,8 @@ function setSyntaxMode(ext) { filetype["svg"] = "svg"; filetype["textile"] = "textile"; // related to markdown filetype["xml"] = "xml"; + filetype["yaml"] = "yaml"; + filetype["yml"] = "yaml"; if (filetype[ext] != null) { // Then it must be in the array, so load the custom syntax mode |