Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-06-05 13:20:15 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-06-05 13:20:15 +0300
commitce7bb76ef0114b05d6e237eac11491a1b40221a6 (patch)
tree20874b56465a6776bca88043dce149085abdb4f3 /js
parentd0f279f14b2bcee8116987b67d6126bfb51f362a (diff)
parent1b2f4b797593b29d94a2ad01565427a2b26db050 (diff)
Merge pull request #63 from owncloud/more-text-types
yml, yaml, cnf, conf
Diffstat (limited to 'js')
-rw-r--r--js/editor.js4
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