mode-plain_text.js 757 B

12345678910111213141516171819202122232425
  1. 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) {
  2. "use strict";
  3. var oop = require("../lib/oop");
  4. var TextMode = require("./text").Mode;
  5. var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
  6. var Behaviour = require("./behaviour").Behaviour;
  7. var Mode = function() {
  8. this.HighlightRules = TextHighlightRules;
  9. this.$behaviour = new Behaviour();
  10. };
  11. oop.inherits(Mode, TextMode);
  12. (function() {
  13. this.type = "text";
  14. this.getNextLineIndent = function(state, line, tab) {
  15. return '';
  16. };
  17. this.$id = "ace/mode/plain_text";
  18. }).call(Mode.prototype);
  19. exports.Mode = Mode;
  20. });