mode-plain_text.js 976 B

123456789101112131415161718192021222324252627282930313233
  1. ace.define("ace/mode/plain_text",[], 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. });
  21. (function() {
  22. ace.require(["ace/mode/plain_text"], function(m) {
  23. if (typeof module == "object" && typeof exports == "object" && module) {
  24. module.exports = m;
  25. }
  26. });
  27. })();