mirror of
https://github.com/neocities/neocities.git
synced 2025-06-04 19:47:25 +02:00
updated ace editor with new settings
settings for tab width, font size, keyboard mode, and autocomplete
This commit is contained in:
parent
d11e951fe6
commit
811b956a4b
1998 changed files with 1585 additions and 1527684 deletions
|
@ -1,53 +1,5 @@
|
|||
define("ace/mode/cuttlefish_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
||||
var oop = require("../lib/oop");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
var CuttlefishHighlightRules = function () {
|
||||
this.$rules = {
|
||||
start: [{
|
||||
token: ['text', 'comment'],
|
||||
regex: /^([ \t]*)(#.*)$/
|
||||
}, {
|
||||
token: ['text', 'keyword', 'text', 'string', 'text', 'comment'],
|
||||
regex: /^([ \t]*)(include)([ \t]*)([A-Za-z0-9-\_\.\*\/]+)([ \t]*)(#.*)?$/
|
||||
}, {
|
||||
token: ['text', 'keyword', 'text', 'operator', 'text', 'string', 'text', 'comment'],
|
||||
regex: /^([ \t]*)([A-Za-z0-9-_]+(?:\.[A-Za-z0-9-_]+)*)([ \t]*)(=)([ \t]*)([^ \t#][^#]*?)([ \t]*)(#.*)?$/
|
||||
}, {
|
||||
defaultToken: 'invalid'
|
||||
}]
|
||||
};
|
||||
this.normalizeRules();
|
||||
};
|
||||
CuttlefishHighlightRules.metaData = {
|
||||
fileTypes: ['conf'],
|
||||
keyEquivalent: '^~C',
|
||||
name: 'Cuttlefish',
|
||||
scopeName: 'source.conf'
|
||||
};
|
||||
oop.inherits(CuttlefishHighlightRules, TextHighlightRules);
|
||||
exports.CuttlefishHighlightRules = CuttlefishHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
define("ace/mode/cuttlefish",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/cuttlefish_highlight_rules"], function(require, exports, module){"use strict";
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var CuttlefishHighlightRules = require("./cuttlefish_highlight_rules").CuttlefishHighlightRules;
|
||||
var Mode = function () {
|
||||
this.HighlightRules = CuttlefishHighlightRules;
|
||||
this.foldingRules = null;
|
||||
this.$behaviour = this.$defaultBehaviour;
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
(function () {
|
||||
this.lineCommentStart = "#";
|
||||
this.blockComment = null;
|
||||
this.$id = "ace/mode/cuttlefish";
|
||||
}).call(Mode.prototype);
|
||||
exports.Mode = Mode;
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/mode/cuttlefish"], function(m) {
|
||||
ace.define("ace/mode/cuttlefish_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:["text","comment"],regex:/^([ \t]*)(#.*)$/},{token:["text","keyword","text","string","text","comment"],regex:/^([ \t]*)(include)([ \t]*)([A-Za-z0-9-\_\.\*\/]+)([ \t]*)(#.*)?$/},{token:["text","keyword","text","operator","text","string","text","comment"],regex:/^([ \t]*)([A-Za-z0-9-_]+(?:\.[A-Za-z0-9-_]+)*)([ \t]*)(=)([ \t]*)([^ \t#][^#]*?)([ \t]*)(#.*)?$/},{defaultToken:"invalid"}]},this.normalizeRules()};s.metaData={fileTypes:["conf"],keyEquivalent:"^~C",name:"Cuttlefish",scopeName:"source.conf"},r.inherits(s,i),t.CuttlefishHighlightRules=s}),ace.define("ace/mode/cuttlefish",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/cuttlefish_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./cuttlefish_highlight_rules").CuttlefishHighlightRules,o=function(){this.HighlightRules=s,this.foldingRules=null,this.$behaviour=this.$defaultBehaviour};r.inherits(o,i),function(){this.lineCommentStart="#",this.blockComment=null,this.$id="ace/mode/cuttlefish"}.call(o.prototype),t.Mode=o}); (function() {
|
||||
ace.require(["ace/mode/cuttlefish"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue