ace.provide("ace.mode.Text"); ace.mode.Text = function() { this.$tokenizer = new ace.Tokenizer(new ace.mode.TextHighlightRules().getRules()); }; (function() { this.getTokenizer = function() { return this.$tokenizer; }; this.toggleCommentLines = function(state, doc, range) { return 0; }; this.getNextLineIndent = function(state, line, tab) { return ""; }; this.checkOutdent = function(state, line, input) { return false; }; this.autoOutdent = function(state, doc, row) { }; this.$getIndent = function(line) { var match = line.match(/^(\s+)/); if (match) { return match[1]; } return ""; }; }).call(ace.mode.Text.prototype);