ace-code-editor
Version:
Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE
22 lines (19 loc) • 628 B
JavaScript
define(function(require, exports, module) {
;
var oop = require("../lib/oop");
// defines the parent mode
var TextMode = require("./text").Mode;
var FoldMode = require("./folding/coffee").FoldMode;
// defines the language specific highlighters and folding rules
var SpaceHighlightRules = require("./space_highlight_rules").SpaceHighlightRules;
var Mode = function() {
// set everything up
this.HighlightRules = SpaceHighlightRules;
this.foldingRules = new FoldMode();
};
oop.inherits(Mode, TextMode);
(function() {
this.$id = "ace/mode/space";
}).call(Mode.prototype);
exports.Mode = Mode;
});