You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
762 B

10 months ago
  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(acequire, exports, module) {
  2. "use strict";
  3. var oop = acequire("../lib/oop");
  4. var TextMode = acequire("./text").Mode;
  5. var TextHighlightRules = acequire("./text_highlight_rules").TextHighlightRules;
  6. var Behaviour = acequire("./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. });