package
This commit is contained in:
parent
483a7126e0
commit
0c258e615a
315 changed files with 411 additions and 3095 deletions
|
|
@ -40,7 +40,7 @@
|
|||
* @param module a name for the payload
|
||||
* @param payload a function to call with (require, exports, module) params
|
||||
*/
|
||||
|
||||
|
||||
(function() {
|
||||
|
||||
var ACE_NAMESPACE = "";
|
||||
|
|
@ -49,9 +49,6 @@ var global = (function() {
|
|||
return this;
|
||||
})();
|
||||
|
||||
if (typeof requirejs !== "undefined")
|
||||
return;
|
||||
|
||||
var _define = function(module, deps, payload) {
|
||||
if (typeof module !== 'string') {
|
||||
if (_define.original)
|
||||
|
|
@ -68,7 +65,7 @@ var _define = function(module, deps, payload) {
|
|||
|
||||
if (!_define.modules)
|
||||
_define.modules = {};
|
||||
|
||||
|
||||
_define.modules[module] = payload;
|
||||
};
|
||||
|
||||
|
|
@ -92,11 +89,11 @@ var _require = function(parentId, module, callback) {
|
|||
var payload = lookup(parentId, module);
|
||||
if (!payload && _require.original)
|
||||
return _require.original.apply(window, arguments);
|
||||
|
||||
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
|
||||
return payload;
|
||||
}
|
||||
else {
|
||||
|
|
@ -115,13 +112,13 @@ var normalizeModule = function(parentId, moduleName) {
|
|||
if (moduleName.charAt(0) == ".") {
|
||||
var base = parentId.split("/").slice(0, -1).join("/");
|
||||
moduleName = base + "/" + moduleName;
|
||||
|
||||
|
||||
while(moduleName.indexOf(".") !== -1 && previous != moduleName) {
|
||||
var previous = moduleName;
|
||||
moduleName = moduleName.replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return moduleName;
|
||||
};
|
||||
|
||||
|
|
@ -141,19 +138,19 @@ var lookup = function(parentId, moduleName) {
|
|||
if (typeof module === 'function') {
|
||||
var exports = {};
|
||||
var mod = {
|
||||
id: moduleName,
|
||||
id: moduleName,
|
||||
uri: '',
|
||||
exports: exports,
|
||||
packaged: true
|
||||
};
|
||||
|
||||
|
||||
var req = function(module, callback) {
|
||||
return _require(moduleName, module, callback);
|
||||
};
|
||||
|
||||
|
||||
var returnValue = module(req, exports, mod);
|
||||
exports = returnValue || mod.exports;
|
||||
|
||||
|
||||
// cache the resulting module object for next time
|
||||
_define.modules[moduleName] = exports;
|
||||
return exports;
|
||||
|
|
@ -163,26 +160,44 @@ var lookup = function(parentId, moduleName) {
|
|||
};
|
||||
|
||||
function exportAce(ns) {
|
||||
|
||||
if (typeof requirejs !== "undefined") {
|
||||
|
||||
var define = global.define;
|
||||
global.define = function(id, deps, callback) {
|
||||
if (typeof callback !== "function")
|
||||
return define.apply(this, arguments);
|
||||
|
||||
return define(id, deps, function(require, exports, module) {
|
||||
if (deps[2] == "module")
|
||||
module.packaged = true;
|
||||
return callback.apply(this, arguments);
|
||||
});
|
||||
};
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var require = function(module, callback) {
|
||||
return _require("", module, callback);
|
||||
};
|
||||
require.packaged = true;
|
||||
|
||||
|
||||
var root = global;
|
||||
if (ns) {
|
||||
if (!global[ns])
|
||||
global[ns] = {};
|
||||
root = global[ns];
|
||||
}
|
||||
|
||||
|
||||
if (root.define)
|
||||
_define.original = root.define;
|
||||
|
||||
|
||||
root.define = _define;
|
||||
|
||||
if (root.require)
|
||||
_require.original = root.require;
|
||||
|
||||
|
||||
root.require = require;
|
||||
}
|
||||
|
||||
|
|
@ -232,7 +247,7 @@ define('kitchen-sink/demo', ['require', 'exports', 'module' , 'ace/lib/fixoldbro
|
|||
|
||||
require("ace/lib/fixoldbrowsers");
|
||||
var env = {};
|
||||
|
||||
|
||||
var net = require("ace/lib/net");
|
||||
var event = require("ace/lib/event");
|
||||
var theme = require("ace/theme/textmate");
|
||||
|
|
@ -256,7 +271,7 @@ var Doc = function(name, desc, file) {
|
|||
|
||||
var WrappedDoc = function(name, desc, file) {
|
||||
Doc.apply(this, arguments);
|
||||
|
||||
|
||||
this.doc.setUseWrapMode(true);
|
||||
this.doc.setWrapLimitRange(80, 80);
|
||||
};
|
||||
|
|
@ -267,7 +282,7 @@ var Mode = function(name, desc, clazz, extensions) {
|
|||
this.clazz = clazz;
|
||||
this.mode = new clazz();
|
||||
this.mode.name = name;
|
||||
|
||||
|
||||
this.extRe = new RegExp("^.*\\.(" + extensions.join("|") + ")$", "g");
|
||||
};
|
||||
|
||||
|
|
@ -279,7 +294,7 @@ var themes = {};
|
|||
function loadTheme(name, callback) {
|
||||
if (themes[name])
|
||||
return callback();
|
||||
|
||||
|
||||
themes[name] = 1;
|
||||
var base = name.split("/").pop();
|
||||
var fileName = "demo/kitchen-sink/theme-" + base + "-uncompressed.js";
|
||||
|
|
@ -549,8 +564,12 @@ bindDropdown("mode", function(value) {
|
|||
});
|
||||
|
||||
bindDropdown("theme", function(value) {
|
||||
if (!value)
|
||||
return;
|
||||
|
||||
if (module.packaged) {
|
||||
loadTheme(value, function() {
|
||||
console.log(value)
|
||||
env.editor.setTheme(value);
|
||||
});
|
||||
}
|
||||
|
|
@ -2186,20 +2205,9 @@ else {
|
|||
}
|
||||
|
||||
exports.addMouseWheelListener = function(el, callback) {
|
||||
var max = 0;
|
||||
var factor = 8;
|
||||
var listener = function(e) {
|
||||
if (e.wheelDelta !== undefined) {
|
||||
|
||||
// some versions of Safari (e.g. 5.0.5) report insanely high
|
||||
// scroll values. These browsers require a higher factor
|
||||
if (Math.abs(e.wheelDeltaY) > max)
|
||||
max = Math.abs(e.wheelDeltaY);
|
||||
|
||||
if (max > 5000)
|
||||
var factor = 400;
|
||||
else
|
||||
var factor = 8;
|
||||
|
||||
if (e.wheelDeltaX !== undefined) {
|
||||
e.wheelX = -e.wheelDeltaX / factor;
|
||||
e.wheelY = -e.wheelDeltaY / factor;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/chrome', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/chrome', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.cssClass = "ace-chrome";
|
||||
exports.cssText = ".ace-chrome .ace_editor {\
|
||||
|
|
@ -211,13 +211,3 @@ var dom = require("../lib/dom");
|
|||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/clouds', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/clouds', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-clouds";
|
||||
|
|
@ -150,13 +150,3 @@ var dom = require("../lib/dom");
|
|||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/clouds_midnight', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/clouds_midnight', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-clouds-midnight";
|
||||
|
|
@ -151,13 +151,3 @@ var dom = require("../lib/dom");
|
|||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/cobalt', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/cobalt', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-cobalt";
|
||||
|
|
@ -164,13 +164,3 @@ background-color:#001221;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/crimson_editor', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/crimson_editor', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
exports.isDark = false;
|
||||
exports.cssText = ".ace-crimson-editor .ace_editor {\
|
||||
border: 2px solid rgb(159, 159, 159);\
|
||||
|
|
@ -196,13 +196,3 @@ exports.cssClass = "ace-crimson-editor";
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/dawn', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/dawn', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-dawn";
|
||||
|
|
@ -167,13 +167,3 @@ color:#5A525F;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/dreamweaver', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/dreamweaver', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-tm";
|
||||
exports.cssText = ".ace-tm .ace_editor {\
|
||||
|
|
@ -224,13 +224,3 @@ exports.cssText = ".ace-tm .ace_editor {\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/eclipse', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/eclipse', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.isDark = false;
|
||||
|
|
@ -143,13 +143,3 @@ exports.cssClass = "ace-eclipse";
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/idle_fingers', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/idle_fingers', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-idle-fingers";
|
||||
|
|
@ -156,13 +156,3 @@ background-color:#FFF980; \
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/kr_theme', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/kr_theme', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-kr-theme";
|
||||
|
|
@ -159,13 +159,3 @@ color:#706D5B;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/merbivore', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/merbivore', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-merbivore";
|
||||
|
|
@ -159,13 +159,3 @@ color:#AD2EA4;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/merbivore_soft', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/merbivore_soft', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-merbivore-soft";
|
||||
|
|
@ -165,13 +165,3 @@ color:#AC4BB8;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/mono_industrial', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/mono_industrial', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-mono-industrial";
|
||||
|
|
@ -159,13 +159,3 @@ background-color:#151C19;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/monokai', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/monokai', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-monokai";
|
||||
|
|
@ -155,13 +155,3 @@ background-color:#AE81FF;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/pastel_on_dark', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/pastel_on_dark', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-pastel-on-dark";
|
||||
|
|
@ -177,13 +177,3 @@ color:#D2A8A1;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/solarized_dark', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/solarized_dark', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-solarized-dark";
|
||||
|
|
@ -154,13 +154,3 @@ color:#657B83;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/solarized_light', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/solarized_light', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-solarized-light";
|
||||
|
|
@ -153,13 +153,3 @@ exports.cssText = "\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -1,210 +0,0 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Ajax.org Code Editor (ACE).
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Ajax.org B.V.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2010
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Fabian Jakobs <fabian AT ajax DOT org>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/textmate', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-tm";
|
||||
exports.cssText = ".ace-tm .ace_editor {\
|
||||
border: 2px solid rgb(159, 159, 159);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_editor.ace_focus {\
|
||||
border: 2px solid #327fbd;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_gutter {\
|
||||
background: #e8e8e8;\
|
||||
color: #333;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_print_margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_fold {\
|
||||
background-color: #6B72E6;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_text-layer {\
|
||||
cursor: text;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_cursor {\
|
||||
border-left: 2px solid black;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_cursor.ace_overwrite {\
|
||||
border-left: 0px;\
|
||||
border-bottom: 1px solid black;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_invisible {\
|
||||
color: rgb(191, 191, 191);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_keyword {\
|
||||
color: blue;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_constant.ace_buildin {\
|
||||
color: rgb(88, 72, 246);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_constant.ace_language {\
|
||||
color: rgb(88, 92, 246);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_constant.ace_library {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_invalid {\
|
||||
background-color: rgb(153, 0, 0);\
|
||||
color: white;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_support.ace_function {\
|
||||
color: rgb(60, 76, 114);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_support.ace_constant {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_support.ace_type,\
|
||||
.ace-tm .ace_line .ace_support.ace_class {\
|
||||
color: rgb(109, 121, 222);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_keyword.ace_operator {\
|
||||
color: rgb(104, 118, 135);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_string {\
|
||||
color: rgb(3, 106, 7);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_comment {\
|
||||
color: rgb(76, 136, 107);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_comment.ace_doc {\
|
||||
color: rgb(0, 102, 255);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_comment.ace_doc.ace_tag {\
|
||||
color: rgb(128, 159, 191);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_constant.ace_numeric {\
|
||||
color: rgb(0, 0, 205);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_variable {\
|
||||
color: rgb(49, 132, 149);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_line .ace_xml_pe {\
|
||||
color: rgb(104, 104, 91);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_entity.ace_name.ace_function {\
|
||||
color: #0000A2;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_markup.ace_markupine {\
|
||||
text-decoration:underline;\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_markup.ace_heading {\
|
||||
color: rgb(12, 7, 255);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_markup.ace_list {\
|
||||
color:rgb(185, 6, 144);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_marker-layer .ace_step {\
|
||||
background: rgb(252, 255, 0);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_marker-layer .ace_stack {\
|
||||
background: rgb(164, 229, 101);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_marker-layer .ace_active_line {\
|
||||
background: rgba(0, 0, 0, 0.07);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_marker-layer .ace_selected_word {\
|
||||
background: rgb(250, 250, 255);\
|
||||
border: 1px solid rgb(200, 200, 250);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_meta.ace_tag {\
|
||||
color:rgb(28, 2, 255);\
|
||||
}\
|
||||
\
|
||||
.ace-tm .ace_string.ace_regex {\
|
||||
color: rgb(255, 0, 0)\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/tomorrow', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/tomorrow', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-tomorrow";
|
||||
|
|
@ -175,13 +175,3 @@ background-color:#8959A8;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/tomorrow_night', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/tomorrow_night', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night";
|
||||
|
|
@ -175,13 +175,3 @@ background-color:#B798BF;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/tomorrow_night_blue', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/tomorrow_night_blue', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night-blue";
|
||||
|
|
@ -175,13 +175,3 @@ background-color:#EBBBFF;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/tomorrow_night_bright', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/tomorrow_night_bright', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night-bright";
|
||||
|
|
@ -175,13 +175,3 @@ background-color:#B798BF;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/tomorrow_night_eighties', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/tomorrow_night_eighties', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night-eighties";
|
||||
|
|
@ -171,13 +171,3 @@ background-color:#CC99CC;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/twilight', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/twilight', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-twilight";
|
||||
|
|
@ -177,13 +177,3 @@ color:#5F5A60;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/vibrant_ink', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
define('ace/theme/vibrant_ink', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-vibrant-ink";
|
||||
|
|
@ -160,13 +160,3 @@ color:#99CC99;\
|
|||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
;
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
if (!window.ace)
|
||||
window.ace = {};
|
||||
for (var key in a) if (a.hasOwnProperty(key))
|
||||
ace[key] = a[key];
|
||||
});
|
||||
})();
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue