diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/CodeEditor/modules/ace/mode-plain_text.js |
first commit
Diffstat (limited to 'www/wiki/extensions/CodeEditor/modules/ace/mode-plain_text.js')
-rw-r--r-- | www/wiki/extensions/CodeEditor/modules/ace/mode-plain_text.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/wiki/extensions/CodeEditor/modules/ace/mode-plain_text.js b/www/wiki/extensions/CodeEditor/modules/ace/mode-plain_text.js new file mode 100644 index 00000000..0f0c9380 --- /dev/null +++ b/www/wiki/extensions/CodeEditor/modules/ace/mode-plain_text.js @@ -0,0 +1,25 @@ +ace.define("ace/mode/plain_text",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/behaviour"], function(require, exports, module) { +"use strict"; + +var oop = require("../lib/oop"); +var TextMode = require("./text").Mode; +var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; +var Behaviour = require("./behaviour").Behaviour; + +var Mode = function() { + this.HighlightRules = TextHighlightRules; + this.$behaviour = new Behaviour(); +}; + +oop.inherits(Mode, TextMode); + +(function() { + this.type = "text"; + this.getNextLineIndent = function(state, line, tab) { + return ''; + }; + this.$id = "ace/mode/plain_text"; +}).call(Mode.prototype); + +exports.Mode = Mode; +}); |