summaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-11 12:03:41 +0000
committerTom Needham <needham.thomas@gmail.com>2012-03-11 12:03:41 +0000
commit92221e98de38fe26a3aa2b2b722ebc218664ab7d (patch)
treebac2ba1564d032571c9b73e89cfbafa96ee8a9b4 /apps/files_texteditor
parentdc3dd272f7bbe779fd3aceedc10bd213752d3f7f (diff)
downloadnextcloud-server-92221e98de38fe26a3aa2b2b722ebc218664ab7d.tar.gz
nextcloud-server-92221e98de38fe26a3aa2b2b722ebc218664ab7d.zip
spaces to tabs
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r--apps/files_texteditor/js/editor.js50
1 files changed, 25 insertions, 25 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index 73f7ee2cf6a..02d39b98430 100644
--- a/apps/files_texteditor/js/editor.js
+++ b/apps/files_texteditor/js/editor.js
@@ -12,42 +12,42 @@ function setSyntaxMode(ext){
// Loads the syntax mode files and tells the editor
var filetype = new Array();
// 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["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["groovy"] = "groovy";
+ filetype["haxe"] = "hx";
filetype["html"] = "html";
- filetype["java"] = "java";
+ filetype["java"] = "java";
filetype["js"] = "javascript";
- filetype["json"] = "json";
- filetype["latex"] = "latex";
+ filetype["json"] = "json";
+ filetype["latex"] = "latex";
filetype["ly"] = "latex";
filetype["ily"] = "latex";
- filetype["lua"] = "lua";
- filetype["markdown"] = "markdown";
- filetype["md"] = "markdown";
- filetype["mdown"] = "markdown";
- filetype["mdwn"] = "markdown";
+ 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["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["sql"] = "sql";
- filetype["svg"] = "svg";
- filetype["textile"] = "textile"; // related to markdown
+ 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["sql"] = "sql";
+ filetype["svg"] = "svg";
+ filetype["textile"] = "textile"; // related to markdown
filetype["xml"] = "xml";
if(filetype[ext]!=null){