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
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-02-10 16:27:15 +0300
committerJoas Schilling <coding@schilljs.com>2017-02-10 16:27:15 +0300
commit39ea0d5055173ba59ab671652af7baf42ddf312d (patch)
treeeded19875ba411a644d6fe4f144b378c9de10d43 /js/editor.js
parenteb18fa43fbc113f6d1f81048b01c570acf500490 (diff)
Support .bat and .cmd files
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'js/editor.js')
-rw-r--r--js/editor.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/editor.js b/js/editor.js
index 59b7fc4..2735e47 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -240,10 +240,12 @@ var Files_Texteditor = {
getSupportedMimetypes: function() {
return [
'text',
+ 'application/cmd',
'application/javascript',
'application/json',
'application/xml',
'application/x-empty',
+ 'application/x-msdos-program',
'application/x-php',
'application/x-pearl',
'application/x-text',
@@ -429,6 +431,8 @@ var Files_Texteditor = {
// Loads the syntax mode files and tells the editor
var filetype = [];
// add file extensions like this: filetype["extension"] = "filetype":
+ filetype["bat"] = "batchfile";
+ filetype["cmd"] = "batchfile";
filetype["h"] = "c_cpp";
filetype["c"] = "c_cpp";
filetype["clj"] = "clojure";
@@ -461,7 +465,7 @@ var Files_Texteditor = {
filetype["mli"] = "ocaml";
filetype["pl"] = "perl";
filetype["php"] = "php";
- filetype["powershell"] = "ps1";
+ filetype["ps1"] = "powershell";
filetype["py"] = "python";
filetype["rb"] = "ruby";
filetype["scad"] = "scad"; // seems to be something like 3d model files printed with e.g. reprap