├── README.md
├── examples.js
├── grammar
├── piethon.jison
└── piethon.js
├── index.html
├── lib
├── ace
│ ├── ace.js
│ ├── ext-chromevox.js
│ ├── ext-elastic_tabstops_lite.js
│ ├── ext-emmet.js
│ ├── ext-keybinding_menu.js
│ ├── ext-language_tools.js
│ ├── ext-modelist.js
│ ├── ext-old_ie.js
│ ├── ext-searchbox.js
│ ├── ext-settings_menu.js
│ ├── ext-spellcheck.js
│ ├── ext-split.js
│ ├── ext-static_highlight.js
│ ├── ext-statusbar.js
│ ├── ext-textarea.js
│ ├── ext-themelist.js
│ ├── ext-whitespace.js
│ ├── keybinding-emacs.js
│ ├── keybinding-vim.js
│ ├── mode-abap.js
│ ├── mode-actionscript.js
│ ├── mode-ada.js
│ ├── mode-asciidoc.js
│ ├── mode-assembly_x86.js
│ ├── mode-autohotkey.js
│ ├── mode-batchfile.js
│ ├── mode-c9search.js
│ ├── mode-c_cpp.js
│ ├── mode-clojure.js
│ ├── mode-cobol.js
│ ├── mode-coffee.js
│ ├── mode-coldfusion.js
│ ├── mode-csharp.js
│ ├── mode-css.js
│ ├── mode-curly.js
│ ├── mode-d.js
│ ├── mode-dart.js
│ ├── mode-diff.js
│ ├── mode-django.js
│ ├── mode-dot.js
│ ├── mode-ejs.js
│ ├── mode-erlang.js
│ ├── mode-forth.js
│ ├── mode-ftl.js
│ ├── mode-glsl.js
│ ├── mode-golang.js
│ ├── mode-groovy.js
│ ├── mode-haml.js
│ ├── mode-handlebars.js
│ ├── mode-haskell.js
│ ├── mode-haxe.js
│ ├── mode-html.js
│ ├── mode-html_completions.js
│ ├── mode-html_ruby.js
│ ├── mode-ini.js
│ ├── mode-jack.js
│ ├── mode-jade.js
│ ├── mode-java.js
│ ├── mode-javascript.js
│ ├── mode-json.js
│ ├── mode-jsoniq.js
│ ├── mode-jsp.js
│ ├── mode-jsx.js
│ ├── mode-julia.js
│ ├── mode-latex.js
│ ├── mode-less.js
│ ├── mode-liquid.js
│ ├── mode-lisp.js
│ ├── mode-livescript.js
│ ├── mode-logiql.js
│ ├── mode-lsl.js
│ ├── mode-lua.js
│ ├── mode-luapage.js
│ ├── mode-lucene.js
│ ├── mode-makefile.js
│ ├── mode-markdown.js
│ ├── mode-matlab.js
│ ├── mode-mushcode.js
│ ├── mode-mushcode_high_rules.js
│ ├── mode-mysql.js
│ ├── mode-nix.js
│ ├── mode-objectivec.js
│ ├── mode-ocaml.js
│ ├── mode-pascal.js
│ ├── mode-perl.js
│ ├── mode-pgsql.js
│ ├── mode-php.js
│ ├── mode-plain_text.js
│ ├── mode-powershell.js
│ ├── mode-prolog.js
│ ├── mode-properties.js
│ ├── mode-protobuf.js
│ ├── mode-python.js
│ ├── mode-r.js
│ ├── mode-rdoc.js
│ ├── mode-rhtml.js
│ ├── mode-ruby.js
│ ├── mode-rust.js
│ ├── mode-sass.js
│ ├── mode-scad.js
│ ├── mode-scala.js
│ ├── mode-scheme.js
│ ├── mode-scss.js
│ ├── mode-sh.js
│ ├── mode-sjs.js
│ ├── mode-snippets.js
│ ├── mode-soy_template.js
│ ├── mode-space.js
│ ├── mode-sql.js
│ ├── mode-stylus.js
│ ├── mode-svg.js
│ ├── mode-tcl.js
│ ├── mode-tex.js
│ ├── mode-text.js
│ ├── mode-textile.js
│ ├── mode-toml.js
│ ├── mode-twig.js
│ ├── mode-typescript.js
│ ├── mode-vbscript.js
│ ├── mode-velocity.js
│ ├── mode-verilog.js
│ ├── mode-vhdl.js
│ ├── mode-xml.js
│ ├── mode-xquery.js
│ ├── mode-yaml.js
│ ├── snippets
│ │ ├── abap.js
│ │ ├── actionscript.js
│ │ ├── ada.js
│ │ ├── asciidoc.js
│ │ ├── assembly_x86.js
│ │ ├── autohotkey.js
│ │ ├── batchfile.js
│ │ ├── c9search.js
│ │ ├── c_cpp.js
│ │ ├── clojure.js
│ │ ├── cobol.js
│ │ ├── coffee.js
│ │ ├── coldfusion.js
│ │ ├── csharp.js
│ │ ├── css.js
│ │ ├── curly.js
│ │ ├── d.js
│ │ ├── dart.js
│ │ ├── diff.js
│ │ ├── django.js
│ │ ├── dot.js
│ │ ├── ejs.js
│ │ ├── erlang.js
│ │ ├── forth.js
│ │ ├── ftl.js
│ │ ├── glsl.js
│ │ ├── golang.js
│ │ ├── groovy.js
│ │ ├── haml.js
│ │ ├── handlebars.js
│ │ ├── haskell.js
│ │ ├── haxe.js
│ │ ├── html.js
│ │ ├── html_completions.js
│ │ ├── html_ruby.js
│ │ ├── ini.js
│ │ ├── jack.js
│ │ ├── jade.js
│ │ ├── java.js
│ │ ├── javascript.js
│ │ ├── json.js
│ │ ├── jsoniq.js
│ │ ├── jsp.js
│ │ ├── jsx.js
│ │ ├── julia.js
│ │ ├── latex.js
│ │ ├── less.js
│ │ ├── liquid.js
│ │ ├── lisp.js
│ │ ├── livescript.js
│ │ ├── logiql.js
│ │ ├── lsl.js
│ │ ├── lua.js
│ │ ├── luapage.js
│ │ ├── lucene.js
│ │ ├── makefile.js
│ │ ├── markdown.js
│ │ ├── matlab.js
│ │ ├── mushcode.js
│ │ ├── mushcode_high_rules.js
│ │ ├── mysql.js
│ │ ├── nix.js
│ │ ├── objectivec.js
│ │ ├── ocaml.js
│ │ ├── pascal.js
│ │ ├── perl.js
│ │ ├── pgsql.js
│ │ ├── php.js
│ │ ├── plain_text.js
│ │ ├── powershell.js
│ │ ├── prolog.js
│ │ ├── properties.js
│ │ ├── protobuf.js
│ │ ├── python.js
│ │ ├── r.js
│ │ ├── rdoc.js
│ │ ├── rhtml.js
│ │ ├── ruby.js
│ │ ├── rust.js
│ │ ├── sass.js
│ │ ├── scad.js
│ │ ├── scala.js
│ │ ├── scheme.js
│ │ ├── scss.js
│ │ ├── sh.js
│ │ ├── sjs.js
│ │ ├── snippets.js
│ │ ├── soy_template.js
│ │ ├── space.js
│ │ ├── sql.js
│ │ ├── stylus.js
│ │ ├── svg.js
│ │ ├── tcl.js
│ │ ├── tex.js
│ │ ├── text.js
│ │ ├── textile.js
│ │ ├── toml.js
│ │ ├── twig.js
│ │ ├── typescript.js
│ │ ├── vbscript.js
│ │ ├── velocity.js
│ │ ├── verilog.js
│ │ ├── vhdl.js
│ │ ├── xml.js
│ │ ├── xquery.js
│ │ └── yaml.js
│ ├── theme-ambiance.js
│ ├── theme-chaos.js
│ ├── theme-chrome.js
│ ├── theme-clouds.js
│ ├── theme-clouds_midnight.js
│ ├── theme-cobalt.js
│ ├── theme-crimson_editor.js
│ ├── theme-dawn.js
│ ├── theme-dreamweaver.js
│ ├── theme-eclipse.js
│ ├── theme-github.js
│ ├── theme-idle_fingers.js
│ ├── theme-kr.js
│ ├── theme-merbivore.js
│ ├── theme-merbivore_soft.js
│ ├── theme-mono_industrial.js
│ ├── theme-monokai.js
│ ├── theme-pastel_on_dark.js
│ ├── theme-solarized_dark.js
│ ├── theme-solarized_light.js
│ ├── theme-terminal.js
│ ├── theme-textmate.js
│ ├── theme-tomorrow.js
│ ├── theme-tomorrow_night.js
│ ├── theme-tomorrow_night_blue.js
│ ├── theme-tomorrow_night_bright.js
│ ├── theme-tomorrow_night_eighties.js
│ ├── theme-twilight.js
│ ├── theme-vibrant_ink.js
│ ├── theme-xcode.js
│ ├── worker-coffee.js
│ ├── worker-css.js
│ ├── worker-javascript.js
│ ├── worker-json.js
│ ├── worker-lua.js
│ ├── worker-php.js
│ └── worker-xquery.js
├── jqconsole.js
└── jquery.js
├── main.js
└── styles.css
/README.md:
--------------------------------------------------------------------------------
1 | python-online
2 | =============
3 |
4 | Simple python interpreter written in JavaScript using Jison as a parser generator and lexer.
5 | Bastardized, poorly written, barely functional with all the useful features of the language stripped out. Purely an academic exercise.
6 |
7 | ### About
8 | Parser and lexer generated with [Jison](http://zaach.github.io/jison/), uses [jq-console](https://github.com/replit/jq-console) and the [Ace](http://ace.c9.io/#nav=about) editor for the demo. Many thanks to [Dr. Brian Malloy](http://people.cs.clemson.edu/~malloy/) for his lessons in grammars and life.
9 |
10 | ### Demo
11 | [Check it out online.](http://jhester.github.io/python-online/)
12 |
13 | #### Todo
14 | * Support expressions as parameters
15 | * len() operation on strings
--------------------------------------------------------------------------------
/examples.js:
--------------------------------------------------------------------------------
1 | var examples = [{
2 | name : "Hello, World",
3 | code : '# Say hello\nprint "Hello, World"'
4 | },{
5 | name : 'Strings',
6 | code : '# String concatentation and printing\nx = "Hello, World"\ny = "Hello, Piethon"\n\nprint x + ", or, " + y'
7 | },{
8 | name : "Math",
9 | code : "'''This program tests if assignment works.\nTests if printing identifiers works.\nTests various math operations'''\n\nx = 23 / 2 + 15.0 % 3.0 ** 2 * -4\ny = 6\nz = y / 2\nprint 5\nprint x\nprint y\nprint z"
10 | }, {
11 | name : "Conditionals",
12 | code: "'''This program tests selection statements.\n\tIf and If-else, as well as boolean evaluations, <, > !=, ==, etc.'''\ny = 6\nif 5 > 1:\n\tprint 7\nend\nx = 20.0\nif x < 1000:\n\tprint x\nelse: \n\tprint 10\nend\nif x == 2:\n\tif y != x:\n\t\tprint 3\n\tend\nelse:\n\tprint y\nend\nif y >= 5:\n\tprint y\nend\n\nif y <= 6:\n\tprint y\nend"
13 | }, {
14 | name : 'Looping',
15 | code : "'''This program tests looping with\n\twhile!'''\na = 0\nwhile a < 5:\n\t# increment by 1\n a = a + 1\n print a\nend\n"
16 | },{
17 | name : 'Functions',
18 | code : "'''This program tests calling functions without arguments. \n\tFirst test case that uses execution stack and stack frames.\n\tThis is to check that we have everything scoped locally correctly.'''\t\ndef g():\n\tx = 30\n\tprint x\nend\n\ndef f():\n\tx = 20\n\tprint 5\n\tg()\n\tprint x\nend\n\nx = 10\nf()\nprint x\n"
19 | },{
20 | name : "Arguments",
21 | code : "'''This program tests calling functions WITH arguments / parameters.\n\tAlso tests whether we check to see if number of arguments is correct'''\t\ndef h(a,b,c,d,e,f,g):\n\tprint a\n\tprint b\n\tprint c\n\tprint d\n\tprint e\n\tprint f\n\tprint g\nend\n\ndef g(z):\n\tprint z\nend\ndef f(x, z):\n\ty = x / 2\n\tprint x\n\tprint y\n\tprint z\n\tg(z)\n\tx = x - 1\n\tg(x)\nend\n\t\t\nx = 10\nf(14,x)\nprint x\nh(1,2,3,4,5,6,x)\n"
22 | }, {
23 | name : 'Fibonnaci',
24 | code : "'''This program tests recursion by calculating the fibbonacci sequence!\n\tThis has a prerequisite of testing return values.'''\t\n\ndef fibonnaci(n):\n\tif n == 0:\n\t\treturn 0\n\telse:\n\t\tif n == 1:\n\t\t\treturn 1\n\t\telse:\n\t\t\tn1 = n-1\n\t\t\tn2 = n-2\n\t\t\tf1 = fibonnaci(n1)\n\t\t\tf2 = fibonnaci(n2)\n\t\t\treturn f1 + f2\n\t\tend\n\tend\t\nend\n\n\na = fibonnaci(0)\nprint a\na = fibonnaci(1)\nprint a\na = fibonnaci(2)\nprint a\na = fibonnaci(3)\nprint a\na = fibonnaci(4)\nprint a\na = fibonnaci(5)\nprint a\n"
25 | },{
26 | name : 'Factorial',
27 | code : "'''Simple factorial, uses recursion wooo'''\ndef factorial(n):\n if n < 2:\n return 1\n else:\n n1 = n - 1\n f = factorial(n1)\n return n * f \n end\nend\n\nx = factorial(10)\nprint x"
28 | }, {
29 | name : 'Lists',
30 | code : '\'\'\'Testing out the use of arrays\n\tObviously limited, since we dont have classes.\n\tWe can only create, assign by index, fetch by index and use a limited number of operations\'\'\'\ndef test(array):\n\tarray.append(11)\n\treturn array\nend\n\ndef clear(array):\n\twhile len(array) > 0:\n\t\tarray.pop()\n\tend\n\treturn array\nend\n\n\nb = 9\na = [1,b,3.2,4,5.2,6,7,8]\nd = []\nprint a\nprint a[0]\nc = a[4]\nprint c\na[5] = 22\nprint a[5]\nprint a\n# empty list test\nprint "empty list: " + d\n# length of a list test\ne = len(a)\nprint "Length : " + e\n# this throws an error len(b)\n\nd.append(2)\nd.append(6)\nprint "Appended 2, 6 "\nprint d\nd.pop()\nprint "Pop"\nprint d\nd = test(d)\nprint d\na = clear(a)\nprint a'
31 | }];
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Piethon online
5 |
6 |
7 |
8 |
9 |
10 |
11 | # Say hello!
12 | x = "Hello, piethon"
13 | print x
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
84 |
85 |
--------------------------------------------------------------------------------
/lib/ace/ext-spellcheck.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/ext/spellcheck', ['require', 'exports', 'module' , 'ace/lib/event', 'ace/editor', 'ace/config'], function(require, exports, module) {
2 |
3 | var event = require("../lib/event");
4 |
5 | exports.contextMenuHandler = function(e){
6 | var host = e.target;
7 | var text = host.textInput.getElement();
8 | if (!host.selection.isEmpty())
9 | return;
10 | var c = host.getCursorPosition();
11 | var r = host.session.getWordRange(c.row, c.column);
12 | var w = host.session.getTextRange(r);
13 |
14 | host.session.tokenRe.lastIndex = 0;
15 | if (!host.session.tokenRe.test(w))
16 | return;
17 | var PLACEHOLDER = "\x01\x01";
18 | var value = w + " " + PLACEHOLDER;
19 | text.value = value;
20 | text.setSelectionRange(w.length, w.length + 1);
21 | text.setSelectionRange(0, 0);
22 | text.setSelectionRange(0, w.length);
23 |
24 | var afterKeydown = false;
25 | event.addListener(text, "keydown", function onKeydown() {
26 | event.removeListener(text, "keydown", onKeydown);
27 | afterKeydown = true;
28 | });
29 |
30 | host.textInput.setInputHandler(function(newVal) {
31 | console.log(newVal , value, text.selectionStart, text.selectionEnd)
32 | if (newVal == value)
33 | return '';
34 | if (newVal.lastIndexOf(value, 0) === 0)
35 | return newVal.slice(value.length);
36 | if (newVal.substr(text.selectionEnd) == value)
37 | return newVal.slice(0, -value.length);
38 | if (newVal.slice(-2) == PLACEHOLDER) {
39 | var val = newVal.slice(0, -2);
40 | if (val.slice(-1) == " ") {
41 | if (afterKeydown)
42 | return val.substring(0, text.selectionEnd);
43 | val = val.slice(0, -1);
44 | host.session.replace(r, val);
45 | return "";
46 | }
47 | }
48 |
49 | return newVal;
50 | });
51 | };
52 | var Editor = require("../editor").Editor;
53 | require("../config").defineOptions(Editor.prototype, "editor", {
54 | spellcheck: {
55 | set: function(val) {
56 | var text = this.textInput.getElement();
57 | text.spellcheck = !!val;
58 | if (!val)
59 | this.removeListener("nativecontextmenu", exports.contextMenuHandler);
60 | else
61 | this.on("nativecontextmenu", exports.contextMenuHandler);
62 | },
63 | value: true
64 | }
65 | });
66 |
67 | });
68 |
69 |
--------------------------------------------------------------------------------
/lib/ace/ext-statusbar.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/ext/statusbar', ['require', 'exports', 'module' , 'ace/lib/dom', 'ace/lib/lang'], function(require, exports, module) {
2 | var dom = require("ace/lib/dom");
3 | var lang = require("ace/lib/lang");
4 |
5 | var StatusBar = function(editor, parentNode) {
6 | this.element = dom.createElement("div");
7 | this.element.className = "ace_status-indicator";
8 | this.element.style.cssText = "display: inline-block;";
9 | parentNode.appendChild(this.element);
10 |
11 | var statusUpdate = lang.delayedCall(function(){
12 | this.updateStatus(editor)
13 | }.bind(this));
14 | editor.on("changeStatus", function() {
15 | statusUpdate.schedule(100);
16 | });
17 | editor.on("changeSelection", function() {
18 | statusUpdate.schedule(100);
19 | });
20 | };
21 |
22 | (function(){
23 | this.updateStatus = function(editor) {
24 | var status = [];
25 | function add(str, separator) {
26 | str && status.push(str, separator || "|");
27 | }
28 |
29 | if (editor.$vimModeHandler)
30 | add(editor.$vimModeHandler.getStatusText());
31 | else if (editor.commands.recording)
32 | add("REC");
33 |
34 | var c = editor.selection.lead;
35 | add(c.row + ":" + c.column, " ");
36 | if (!editor.selection.isEmpty()) {
37 | var r = editor.getSelectionRange();
38 | add("(" + (r.end.row - r.start.row) + ":" +(r.end.column - r.start.column) + ")");
39 | }
40 | status.pop();
41 | this.element.textContent = status.join("");
42 | };
43 | }).call(StatusBar.prototype);
44 |
45 | exports.StatusBar = StatusBar;
46 |
47 | });
--------------------------------------------------------------------------------
/lib/ace/ext-themelist.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2013 Matthew Christopher Kastor-Inare III, Atropa Inc. Intl
5 | * All rights reserved.
6 | *
7 | * Contributed to Ajax.org under the BSD license.
8 | *
9 | * Redistribution and use in source and binary forms, with or without
10 | * modification, are permitted provided that the following conditions are met:
11 | * * Redistributions of source code must retain the above copyright
12 | * notice, this list of conditions and the following disclaimer.
13 | * * Redistributions in binary form must reproduce the above copyright
14 | * notice, this list of conditions and the following disclaimer in the
15 | * documentation and/or other materials provided with the distribution.
16 | * * Neither the name of Ajax.org B.V. nor the
17 | * names of its contributors may be used to endorse or promote products
18 | * derived from this software without specific prior written permission.
19 | *
20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
24 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 | *
31 | * ***** END LICENSE BLOCK ***** */
32 |
33 | ace.define('ace/ext/themelist', ['require', 'exports', 'module' , 'ace/ext/themelist_utils/themes'], function(require, exports, module) {
34 | module.exports.themes = require('ace/ext/themelist_utils/themes').themes;
35 | module.exports.ThemeDescription = function(name) {
36 | this.name = name;
37 | this.desc = name.split('_'
38 | ).map(
39 | function(namePart) {
40 | return namePart[0].toUpperCase() + namePart.slice(1);
41 | }
42 | ).join(' ');
43 | this.theme = "ace/theme/" + name;
44 | };
45 |
46 | module.exports.themesByName = {};
47 |
48 | module.exports.themes = module.exports.themes.map(function(name) {
49 | module.exports.themesByName[name] = new module.exports.ThemeDescription(name);
50 | return module.exports.themesByName[name];
51 | });
52 |
53 | });
54 |
55 | ace.define('ace/ext/themelist_utils/themes', ['require', 'exports', 'module' ], function(require, exports, module) {
56 |
57 | module.exports.themes = [
58 | "ambiance",
59 | "chaos",
60 | "chrome",
61 | "clouds",
62 | "clouds_midnight",
63 | "cobalt",
64 | "crimson_editor",
65 | "dawn",
66 | "dreamweaver",
67 | "eclipse",
68 | "github",
69 | "idle_fingers",
70 | "kr_theme",
71 | "merbivore",
72 | "merbivore_soft",
73 | "mono_industrial",
74 | "monokai",
75 | "pastel_on_dark",
76 | "solarized_dark",
77 | "solarized_light",
78 | "terminal",
79 | "textmate",
80 | "tomorrow",
81 | "tomorrow_night",
82 | "tomorrow_night_blue",
83 | "tomorrow_night_bright",
84 | "tomorrow_night_eighties",
85 | "twilight",
86 | "vibrant_ink",
87 | "xcode"
88 | ];
89 |
90 | });
--------------------------------------------------------------------------------
/lib/ace/mode-ada.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/mode/ada', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/ada_highlight_rules', 'ace/range'], function(require, exports, module) {
32 |
33 |
34 | var oop = require("../lib/oop");
35 | var TextMode = require("./text").Mode;
36 | var Tokenizer = require("../tokenizer").Tokenizer;
37 | var AdaHighlightRules = require("./ada_highlight_rules").AdaHighlightRules;
38 | var Range = require("../range").Range;
39 |
40 | var Mode = function() {
41 | this.HighlightRules = AdaHighlightRules;
42 | };
43 | oop.inherits(Mode, TextMode);
44 |
45 | (function() {
46 |
47 | this.lineCommentStart = "--";
48 |
49 | }).call(Mode.prototype);
50 |
51 | exports.Mode = Mode;
52 |
53 | });
54 |
55 | ace.define('ace/mode/ada_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
56 |
57 |
58 | var oop = require("../lib/oop");
59 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
60 |
61 | var AdaHighlightRules = function() {
62 | var keywords = "abort|else|new|return|abs|elsif|not|reverse|abstract|end|null|accept|entry|select|" +
63 | "access|exception|of|separate|aliased|exit|or|some|all|others|subtype|and|for|out|synchronized|" +
64 | "array|function|overriding|at|tagged|generic|package|task|begin|goto|pragma|terminate|" +
65 | "body|private|then|if|procedure|type|case|in|protected|constant|interface|until|" +
66 | "|is|raise|use|declare|range|delay|limited|record|when|delta|loop|rem|while|digits|renames|with|do|mod|requeue|xor";
67 |
68 | var builtinConstants = (
69 | "true|false|null"
70 | );
71 |
72 | var builtinFunctions = (
73 | "count|min|max|avg|sum|rank|now|coalesce|main"
74 | );
75 |
76 | var keywordMapper = this.createKeywordMapper({
77 | "support.function": builtinFunctions,
78 | "keyword": keywords,
79 | "constant.language": builtinConstants
80 | }, "identifier", true);
81 |
82 | this.$rules = {
83 | "start" : [ {
84 | token : "comment",
85 | regex : "--.*$"
86 | }, {
87 | token : "string", // " string
88 | regex : '".*?"'
89 | }, {
90 | token : "string", // ' string
91 | regex : "'.*?'"
92 | }, {
93 | token : "constant.numeric", // float
94 | regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
95 | }, {
96 | token : keywordMapper,
97 | regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
98 | }, {
99 | token : "keyword.operator",
100 | regex : "\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="
101 | }, {
102 | token : "paren.lparen",
103 | regex : "[\\(]"
104 | }, {
105 | token : "paren.rparen",
106 | regex : "[\\)]"
107 | }, {
108 | token : "text",
109 | regex : "\\s+"
110 | } ]
111 | };
112 | };
113 |
114 | oop.inherits(AdaHighlightRules, TextHighlightRules);
115 |
116 | exports.AdaHighlightRules = AdaHighlightRules;
117 | });
--------------------------------------------------------------------------------
/lib/ace/mode-lucene.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/mode/lucene', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/lucene_highlight_rules'], function(require, exports, module) {
2 |
3 |
4 | var oop = require("../lib/oop");
5 | var TextMode = require("./text").Mode;
6 | var Tokenizer = require("../tokenizer").Tokenizer;
7 | var LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules;
8 |
9 | var Mode = function() {
10 | this.$tokenizer = new Tokenizer(new LuceneHighlightRules().getRules());
11 | };
12 |
13 | oop.inherits(Mode, TextMode);
14 |
15 | exports.Mode = Mode;
16 | });ace.define('ace/mode/lucene_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
17 |
18 |
19 | var oop = require("../lib/oop");
20 | var lang = require("../lib/lang");
21 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
22 |
23 | var LuceneHighlightRules = function() {
24 | this.$rules = {
25 | "start" : [
26 | {
27 | token : "constant.character.negation",
28 | regex : "[\\-]"
29 | }, {
30 | token : "constant.character.interro",
31 | regex : "[\\?]"
32 | }, {
33 | token : "constant.character.asterisk",
34 | regex : "[\\*]"
35 | }, {
36 | token: 'constant.character.proximity',
37 | regex: '~[0-9]+\\b'
38 | }, {
39 | token : 'keyword.operator',
40 | regex: '(?:AND|OR|NOT)\\b'
41 | }, {
42 | token : "paren.lparen",
43 | regex : "[\\(]"
44 | }, {
45 | token : "paren.rparen",
46 | regex : "[\\)]"
47 | }, {
48 | token : "keyword",
49 | regex : "[\\S]+:"
50 | }, {
51 | token : "string", // " string
52 | regex : '".*?"'
53 | }, {
54 | token : "text",
55 | regex : "\\s+"
56 | }
57 | ]
58 | };
59 | };
60 |
61 | oop.inherits(LuceneHighlightRules, TextHighlightRules);
62 |
63 | exports.LuceneHighlightRules = LuceneHighlightRules;
64 | });
65 |
--------------------------------------------------------------------------------
/lib/ace/mode-plain_text.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/mode/plain_text', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/text_highlight_rules', 'ace/mode/behaviour'], function(require, exports, module) {
32 |
33 |
34 | var oop = require("../lib/oop");
35 | var TextMode = require("./text").Mode;
36 | var Tokenizer = require("../tokenizer").Tokenizer;
37 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
38 | var Behaviour = require("./behaviour").Behaviour;
39 |
40 | var Mode = function() {
41 | this.HighlightRules = TextHighlightRules;
42 | this.$behaviour = new Behaviour();
43 | };
44 |
45 | oop.inherits(Mode, TextMode);
46 |
47 | (function() {
48 | this.type = "text";
49 | this.getNextLineIndent = function(state, line, tab) {
50 | return '';
51 | };
52 | }).call(Mode.prototype);
53 |
54 | exports.Mode = Mode;
55 | });
--------------------------------------------------------------------------------
/lib/ace/mode-properties.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/mode/properties', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/properties_highlight_rules'], function(require, exports, module) {
32 |
33 |
34 | var oop = require("../lib/oop");
35 | var TextMode = require("./text").Mode;
36 | var Tokenizer = require("../tokenizer").Tokenizer;
37 | var PropertiesHighlightRules = require("./properties_highlight_rules").PropertiesHighlightRules;
38 |
39 | var Mode = function() {
40 | this.HighlightRules = PropertiesHighlightRules;
41 | };
42 | oop.inherits(Mode, TextMode);
43 |
44 | exports.Mode = Mode;
45 | });
46 |
47 | ace.define('ace/mode/properties_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
48 |
49 |
50 | var oop = require("../lib/oop");
51 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
52 |
53 | var PropertiesHighlightRules = function() {
54 |
55 | var escapeRe = /\\u[0-9a-fA-F]{4}|\\/;
56 |
57 | this.$rules = {
58 | "start" : [
59 | {
60 | token : "comment",
61 | regex : /[!#].*$/
62 | }, {
63 | token : "keyword",
64 | regex : /[=:]$/
65 | }, {
66 | token : "keyword",
67 | regex : /[=:]/,
68 | next : "value"
69 | }, {
70 | token : "constant.language.escape",
71 | regex : escapeRe
72 | }, {
73 | defaultToken: "variable"
74 | }
75 | ],
76 | "value" : [
77 | {
78 | regex : /\\$/,
79 | token : "string",
80 | next : "value"
81 | }, {
82 | regex : /$/,
83 | token : "string",
84 | next : "start"
85 | }, {
86 | token : "constant.language.escape",
87 | regex : escapeRe
88 | }, {
89 | defaultToken: "string"
90 | }
91 | ]
92 | };
93 |
94 | };
95 |
96 | oop.inherits(PropertiesHighlightRules, TextHighlightRules);
97 |
98 | exports.PropertiesHighlightRules = PropertiesHighlightRules;
99 | });
100 |
101 |
--------------------------------------------------------------------------------
/lib/ace/mode-sql.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/mode/sql', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/sql_highlight_rules', 'ace/range'], function(require, exports, module) {
32 |
33 |
34 | var oop = require("../lib/oop");
35 | var TextMode = require("./text").Mode;
36 | var Tokenizer = require("../tokenizer").Tokenizer;
37 | var SqlHighlightRules = require("./sql_highlight_rules").SqlHighlightRules;
38 | var Range = require("../range").Range;
39 |
40 | var Mode = function() {
41 | this.HighlightRules = SqlHighlightRules;
42 | };
43 | oop.inherits(Mode, TextMode);
44 |
45 | (function() {
46 |
47 | this.lineCommentStart = "--";
48 |
49 | }).call(Mode.prototype);
50 |
51 | exports.Mode = Mode;
52 |
53 | });
54 |
55 | ace.define('ace/mode/sql_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
56 |
57 |
58 | var oop = require("../lib/oop");
59 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
60 |
61 | var SqlHighlightRules = function() {
62 |
63 | var keywords = (
64 | "select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|" +
65 | "when|else|end|type|left|right|join|on|outer|desc|asc"
66 | );
67 |
68 | var builtinConstants = (
69 | "true|false|null"
70 | );
71 |
72 | var builtinFunctions = (
73 | "count|min|max|avg|sum|rank|now|coalesce"
74 | );
75 |
76 | var keywordMapper = this.createKeywordMapper({
77 | "support.function": builtinFunctions,
78 | "keyword": keywords,
79 | "constant.language": builtinConstants
80 | }, "identifier", true);
81 |
82 | this.$rules = {
83 | "start" : [ {
84 | token : "comment",
85 | regex : "--.*$"
86 | }, {
87 | token : "string", // " string
88 | regex : '".*?"'
89 | }, {
90 | token : "string", // ' string
91 | regex : "'.*?'"
92 | }, {
93 | token : "constant.numeric", // float
94 | regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
95 | }, {
96 | token : keywordMapper,
97 | regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
98 | }, {
99 | token : "keyword.operator",
100 | regex : "\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="
101 | }, {
102 | token : "paren.lparen",
103 | regex : "[\\(]"
104 | }, {
105 | token : "paren.rparen",
106 | regex : "[\\)]"
107 | }, {
108 | token : "text",
109 | regex : "\\s+"
110 | } ]
111 | };
112 | };
113 |
114 | oop.inherits(SqlHighlightRules, TextHighlightRules);
115 |
116 | exports.SqlHighlightRules = SqlHighlightRules;
117 | });
118 |
119 |
--------------------------------------------------------------------------------
/lib/ace/mode-text.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jhester/python-online/06a8ce7c055e289c5489813da683e3839ebc0890/lib/ace/mode-text.js
--------------------------------------------------------------------------------
/lib/ace/snippets/abap.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/abap', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "abap";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/actionscript.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/actionscript', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet main\n\
5 | package {\n\
6 | import flash.display.*;\n\
7 | import flash.Events.*;\n\
8 | \n\
9 | public class Main extends Sprite {\n\
10 | public function Main ( ) {\n\
11 | trace(\"start\");\n\
12 | stage.scaleMode = StageScaleMode.NO_SCALE;\n\
13 | stage.addEventListener(Event.RESIZE, resizeListener);\n\
14 | }\n\
15 | \n\
16 | private function resizeListener (e:Event):void {\n\
17 | trace(\"The application window changed size!\");\n\
18 | trace(\"New width: \" + stage.stageWidth);\n\
19 | trace(\"New height: \" + stage.stageHeight);\n\
20 | }\n\
21 | \n\
22 | }\n\
23 | \n\
24 | }\n\
25 | snippet class\n\
26 | ${1:public|internal} class ${2:name} ${3:extends } {\n\
27 | public function $2 ( ) {\n\
28 | (\"start\");\n\
29 | }\n\
30 | }\n\
31 | snippet all\n\
32 | package name {\n\
33 | \n\
34 | ${1:public|internal|final} class ${2:name} ${3:extends } {\n\
35 | private|public| static const FOO = \"abc\";\n\
36 | private|public| static var BAR = \"abc\";\n\
37 | \n\
38 | // class initializer - no JIT !! one time setup\n\
39 | if Cababilities.os == \"Linux|MacOS\" {\n\
40 | FOO = \"other\";\n\
41 | }\n\
42 | \n\
43 | // constructor:\n\
44 | public function $2 ( ){\n\
45 | super2();\n\
46 | trace(\"start\");\n\
47 | }\n\
48 | public function name (a, b...){\n\
49 | super.name(..);\n\
50 | lable:break\n\
51 | }\n\
52 | }\n\
53 | }\n\
54 | \n\
55 | function A(){\n\
56 | // A can only be accessed within this file\n\
57 | }\n\
58 | snippet switch\n\
59 | switch(${1}){\n\
60 | case ${2}:\n\
61 | ${3}\n\
62 | break;\n\
63 | default:\n\
64 | }\n\
65 | snippet case\n\
66 | case ${1}:\n\
67 | ${2}\n\
68 | break;\n\
69 | snippet package\n\
70 | package ${1:package}{\n\
71 | ${2}\n\
72 | }\n\
73 | snippet wh\n\
74 | while ${1:cond}{\n\
75 | ${2}\n\
76 | }\n\
77 | snippet do\n\
78 | do {\n\
79 | ${2}\n\
80 | } while (${1:cond})\n\
81 | snippet while\n\
82 | while ${1:cond}{\n\
83 | ${2}\n\
84 | }\n\
85 | snippet for enumerate names\n\
86 | for (${1:var} in ${2:object}){\n\
87 | ${3}\n\
88 | }\n\
89 | snippet for enumerate values\n\
90 | for each (${1:var} in ${2:object}){\n\
91 | ${3}\n\
92 | }\n\
93 | snippet get_set\n\
94 | function get ${1:name} {\n\
95 | return ${2}\n\
96 | }\n\
97 | function set $1 (newValue) {\n\
98 | ${3}\n\
99 | }\n\
100 | snippet interface\n\
101 | interface name {\n\
102 | function method(${1}):${2:returntype};\n\
103 | }\n\
104 | snippet try\n\
105 | try {\n\
106 | ${1}\n\
107 | } catch (error:ErrorType) {\n\
108 | ${2}\n\
109 | } finally {\n\
110 | ${3}\n\
111 | }\n\
112 | # For Loop (same as c.snippet)\n\
113 | snippet for for (..) {..}\n\
114 | for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\
115 | ${4:/* code */}\n\
116 | }\n\
117 | # Custom For Loop\n\
118 | snippet forr\n\
119 | for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {\n\
120 | ${5:/* code */}\n\
121 | }\n\
122 | # If Condition\n\
123 | snippet if\n\
124 | if (${1:/* condition */}) {\n\
125 | ${2:/* code */}\n\
126 | }\n\
127 | snippet el\n\
128 | else {\n\
129 | ${1}\n\
130 | }\n\
131 | # Ternary conditional\n\
132 | snippet t\n\
133 | ${1:/* condition */} ? ${2:a} : ${3:b}\n\
134 | snippet fun\n\
135 | function ${1:function_name}(${2})${3}\n\
136 | {\n\
137 | ${4:/* code */}\n\
138 | }\n\
139 | # FlxSprite (usefull when using the flixel library)\n\
140 | snippet FlxSprite\n\
141 | package\n\
142 | {\n\
143 | import org.flixel.*\n\
144 | \n\
145 | public class ${1:ClassName} extends ${2:FlxSprite}\n\
146 | {\n\
147 | public function $1(${3: X:Number, Y:Number}):void\n\
148 | {\n\
149 | super(X,Y);\n\
150 | ${4: //code...}\n\
151 | }\n\
152 | \n\
153 | override public function update():void\n\
154 | {\n\
155 | super.update();\n\
156 | ${5: //code...}\n\
157 | }\n\
158 | }\n\
159 | }\n\
160 | \n\
161 | ";
162 | exports.scope = "actionscript";
163 |
164 | });
165 |
--------------------------------------------------------------------------------
/lib/ace/snippets/ada.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/ada', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "ada";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/asciidoc.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/asciidoc', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "asciidoc";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/assembly_x86.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/assembly_x86', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "assembly_x86";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/autohotkey.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/autohotkey', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "autohotkey";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/batchfile.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/batchfile', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "batchfile";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/c9search.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/c9search', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "c9search";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/c_cpp.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/c_cpp', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "## STL Collections\n\
5 | # std::array\n\
6 | snippet array\n\
7 | std::array<${1:T}, ${2:N}> ${3};${4}\n\
8 | # std::vector\n\
9 | snippet vector\n\
10 | std::vector<${1:T}> ${2};${3}\n\
11 | # std::deque\n\
12 | snippet deque\n\
13 | std::deque<${1:T}> ${2};${3}\n\
14 | # std::forward_list\n\
15 | snippet flist\n\
16 | std::forward_list<${1:T}> ${2};${3}\n\
17 | # std::list\n\
18 | snippet list\n\
19 | std::list<${1:T}> ${2};${3}\n\
20 | # std::set\n\
21 | snippet set\n\
22 | std::set<${1:T}> ${2};${3}\n\
23 | # std::map\n\
24 | snippet map\n\
25 | std::map<${1:Key}, ${2:T}> ${3};${4}\n\
26 | # std::multiset\n\
27 | snippet mset\n\
28 | std::multiset<${1:T}> ${2};${3}\n\
29 | # std::multimap\n\
30 | snippet mmap\n\
31 | std::multimap<${1:Key}, ${2:T}> ${3};${4}\n\
32 | # std::unordered_set\n\
33 | snippet uset\n\
34 | std::unordered_set<${1:T}> ${2};${3}\n\
35 | # std::unordered_map\n\
36 | snippet umap\n\
37 | std::unordered_map<${1:Key}, ${2:T}> ${3};${4}\n\
38 | # std::unordered_multiset\n\
39 | snippet umset\n\
40 | std::unordered_multiset<${1:T}> ${2};${3}\n\
41 | # std::unordered_multimap\n\
42 | snippet ummap\n\
43 | std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}\n\
44 | # std::stack\n\
45 | snippet stack\n\
46 | std::stack<${1:T}> ${2};${3}\n\
47 | # std::queue\n\
48 | snippet queue\n\
49 | std::queue<${1:T}> ${2};${3}\n\
50 | # std::priority_queue\n\
51 | snippet pqueue\n\
52 | std::priority_queue<${1:T}> ${2};${3}\n\
53 | ##\n\
54 | ## Access Modifiers\n\
55 | # private\n\
56 | snippet pri\n\
57 | private\n\
58 | # protected\n\
59 | snippet pro\n\
60 | protected\n\
61 | # public\n\
62 | snippet pub\n\
63 | public\n\
64 | # friend\n\
65 | snippet fr\n\
66 | friend\n\
67 | # mutable\n\
68 | snippet mu\n\
69 | mutable\n\
70 | ## \n\
71 | ## Class\n\
72 | # class\n\
73 | snippet cl\n\
74 | class ${1:`Filename('$1', 'name')`} \n\
75 | {\n\
76 | public:\n\
77 | $1(${2});\n\
78 | ~$1();\n\
79 | \n\
80 | private:\n\
81 | ${3:/* data */}\n\
82 | };\n\
83 | # member function implementation\n\
84 | snippet mfun\n\
85 | ${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {\n\
86 | ${5:/* code */}\n\
87 | }\n\
88 | # namespace\n\
89 | snippet ns\n\
90 | namespace ${1:`Filename('', 'my')`} {\n\
91 | ${2}\n\
92 | } /* namespace $1 */\n\
93 | ##\n\
94 | ## Input/Output\n\
95 | # std::cout\n\
96 | snippet cout\n\
97 | std::cout << ${1} << std::endl;${2}\n\
98 | # std::cin\n\
99 | snippet cin\n\
100 | std::cin >> ${1};${2}\n\
101 | ##\n\
102 | ## Iteration\n\
103 | # for i \n\
104 | snippet fori\n\
105 | for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\
106 | ${4:/* code */}\n\
107 | }${5}\n\
108 | \n\
109 | # foreach\n\
110 | snippet fore\n\
111 | for (${1:auto} ${2:i} : ${3:container}) {\n\
112 | ${4:/* code */}\n\
113 | }${5}\n\
114 | # iterator\n\
115 | snippet iter\n\
116 | for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {\n\
117 | ${6}\n\
118 | }${7}\n\
119 | \n\
120 | # auto iterator\n\
121 | snippet itera\n\
122 | for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {\n\
123 | ${2:std::cout << *$1 << std::endl;}\n\
124 | }${3}\n\
125 | ##\n\
126 | ## Lambdas\n\
127 | # lamda (one line)\n\
128 | snippet ld\n\
129 | [${1}](${2}){${3:/* code */}}${4}\n\
130 | # lambda (multi-line)\n\
131 | snippet lld\n\
132 | [${1}](${2}){\n\
133 | ${3:/* code */}\n\
134 | }${4}\n\
135 | ";
136 | exports.scope = "c_cpp";
137 |
138 | });
139 |
--------------------------------------------------------------------------------
/lib/ace/snippets/clojure.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/clojure', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet comm\n\
5 | (comment\n\
6 | ${1}\n\
7 | )\n\
8 | snippet condp\n\
9 | (condp ${1:pred} ${2:expr}\n\
10 | ${3})\n\
11 | snippet def\n\
12 | (def ${1})\n\
13 | snippet defm\n\
14 | (defmethod ${1:multifn} \"${2:doc-string}\" ${3:dispatch-val} [${4:args}]\n\
15 | ${5})\n\
16 | snippet defmm\n\
17 | (defmulti ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\
18 | snippet defma\n\
19 | (defmacro ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\
20 | snippet defn\n\
21 | (defn ${1:name} \"${2:doc-string}\" [${3:arg-list}]\n\
22 | ${4})\n\
23 | snippet defp\n\
24 | (defprotocol ${1:name}\n\
25 | ${2})\n\
26 | snippet defr\n\
27 | (defrecord ${1:name} [${2:fields}]\n\
28 | ${3:protocol}\n\
29 | ${4})\n\
30 | snippet deft\n\
31 | (deftest ${1:name}\n\
32 | (is (= ${2:assertion})))\n\
33 | ${3})\n\
34 | snippet is\n\
35 | (is (= ${1} ${2}))\n\
36 | snippet defty\n\
37 | (deftype ${1:Name} [${2:fields}]\n\
38 | ${3:Protocol}\n\
39 | ${4})\n\
40 | snippet doseq\n\
41 | (doseq [${1:elem} ${2:coll}]\n\
42 | ${3})\n\
43 | snippet fn\n\
44 | (fn [${1:arg-list}] ${2})\n\
45 | snippet if\n\
46 | (if ${1:test-expr}\n\
47 | ${2:then-expr}\n\
48 | ${3:else-expr})\n\
49 | snippet if-let \n\
50 | (if-let [${1:result} ${2:test-expr}]\n\
51 | (${3:then-expr} $1)\n\
52 | (${4:else-expr}))\n\
53 | snippet imp\n\
54 | (:import [${1:package}])\n\
55 | & {:keys [${1:keys}] :or {${2:defaults}}}\n\
56 | snippet let\n\
57 | (let [${1:name} ${2:expr}]\n\
58 | ${3})\n\
59 | snippet letfn\n\
60 | (letfn [(${1:name) [${2:args}]\n\
61 | ${3})])\n\
62 | snippet map\n\
63 | (map ${1:func} ${2:coll})\n\
64 | snippet mapl\n\
65 | (map #(${1:lambda}) ${2:coll})\n\
66 | snippet met\n\
67 | (${1:name} [${2:this} ${3:args}]\n\
68 | ${4})\n\
69 | snippet ns\n\
70 | (ns ${1:name}\n\
71 | ${2})\n\
72 | snippet dotimes\n\
73 | (dotimes [_ 10]\n\
74 | (time\n\
75 | (dotimes [_ ${1:times}]\n\
76 | ${2})))\n\
77 | snippet pmethod\n\
78 | (${1:name} [${2:this} ${3:args}])\n\
79 | snippet refer\n\
80 | (:refer-clojure :exclude [${1}])\n\
81 | snippet require\n\
82 | (:require [${1:namespace} :as [${2}]])\n\
83 | snippet use\n\
84 | (:use [${1:namespace} :only [${2}]])\n\
85 | snippet print\n\
86 | (println ${1})\n\
87 | snippet reduce\n\
88 | (reduce ${1:(fn [p n] ${3})} ${2})\n\
89 | snippet when\n\
90 | (when ${1:test} ${2:body})\n\
91 | snippet when-let\n\
92 | (when-let [${1:result} ${2:test}]\n\
93 | ${3:body})\n\
94 | ";
95 | exports.scope = "clojure";
96 |
97 | });
98 |
--------------------------------------------------------------------------------
/lib/ace/snippets/cobol.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/cobol', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "cobol";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/coffee.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/coffee', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# Closure loop\n\
5 | snippet forindo\n\
6 | for ${1:name} in ${2:array}\n\
7 | do ($1) ->\n\
8 | ${3:// body}\n\
9 | # Array comprehension\n\
10 | snippet fora\n\
11 | for ${1:name} in ${2:array}\n\
12 | ${3:// body...}\n\
13 | # Object comprehension\n\
14 | snippet foro\n\
15 | for ${1:key}, ${2:value} of ${3:object}\n\
16 | ${4:// body...}\n\
17 | # Range comprehension (inclusive)\n\
18 | snippet forr\n\
19 | for ${1:name} in [${2:start}..${3:finish}]\n\
20 | ${4:// body...}\n\
21 | snippet forrb\n\
22 | for ${1:name} in [${2:start}..${3:finish}] by ${4:step}\n\
23 | ${5:// body...}\n\
24 | # Range comprehension (exclusive)\n\
25 | snippet forrex\n\
26 | for ${1:name} in [${2:start}...${3:finish}]\n\
27 | ${4:// body...}\n\
28 | snippet forrexb\n\
29 | for ${1:name} in [${2:start}...${3:finish}] by ${4:step}\n\
30 | ${5:// body...}\n\
31 | # Function\n\
32 | snippet fun\n\
33 | (${1:args}) ->\n\
34 | ${2:// body...}\n\
35 | # Function (bound)\n\
36 | snippet bfun\n\
37 | (${1:args}) =>\n\
38 | ${2:// body...}\n\
39 | # Class\n\
40 | snippet cla class ..\n\
41 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\
42 | ${2}\n\
43 | snippet cla class .. constructor: ..\n\
44 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`}\n\
45 | constructor: (${2:args}) ->\n\
46 | ${3}\n\
47 | \n\
48 | ${4}\n\
49 | snippet cla class .. extends ..\n\
50 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\
51 | ${3}\n\
52 | snippet cla class .. extends .. constructor: ..\n\
53 | class ${1:`substitute(Filename(), '\\(_\\|^\\)\\(.\\)', '\\u\\2', 'g')`} extends ${2:ParentClass}\n\
54 | constructor: (${3:args}) ->\n\
55 | ${4}\n\
56 | \n\
57 | ${5}\n\
58 | # If\n\
59 | snippet if\n\
60 | if ${1:condition}\n\
61 | ${2:// body...}\n\
62 | # If __ Else\n\
63 | snippet ife\n\
64 | if ${1:condition}\n\
65 | ${2:// body...}\n\
66 | else\n\
67 | ${3:// body...}\n\
68 | # Else if\n\
69 | snippet elif\n\
70 | else if ${1:condition}\n\
71 | ${2:// body...}\n\
72 | # Ternary If\n\
73 | snippet ifte\n\
74 | if ${1:condition} then ${2:value} else ${3:other}\n\
75 | # Unless\n\
76 | snippet unl\n\
77 | ${1:action} unless ${2:condition}\n\
78 | # Switch\n\
79 | snippet swi\n\
80 | switch ${1:object}\n\
81 | when ${2:value}\n\
82 | ${3:// body...}\n\
83 | \n\
84 | # Log\n\
85 | snippet log\n\
86 | console.log ${1}\n\
87 | # Try __ Catch\n\
88 | snippet try\n\
89 | try\n\
90 | ${1}\n\
91 | catch ${2:error}\n\
92 | ${3}\n\
93 | # Require\n\
94 | snippet req\n\
95 | ${2:$1} = require '${1:sys}'${3}\n\
96 | # Export\n\
97 | snippet exp\n\
98 | ${1:root} = exports ? this\n\
99 | ";
100 | exports.scope = "coffee";
101 |
102 | });
103 |
--------------------------------------------------------------------------------
/lib/ace/snippets/coldfusion.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/coldfusion', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "coldfusion";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/csharp.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/csharp', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "csharp";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/curly.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/curly', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "curly";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/d.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/d', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "d";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/dart.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/dart', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet lib\n\
5 | library ${1};\n\
6 | ${2}\n\
7 | snippet im\n\
8 | import '${1}';\n\
9 | ${2}\n\
10 | snippet pa\n\
11 | part '${1}';\n\
12 | ${2}\n\
13 | snippet pao\n\
14 | part of ${1};\n\
15 | ${2}\n\
16 | snippet main\n\
17 | void main() {\n\
18 | ${1:/* code */}\n\
19 | }\n\
20 | snippet st\n\
21 | static ${1}\n\
22 | snippet fi\n\
23 | final ${1}\n\
24 | snippet re\n\
25 | return ${1}\n\
26 | snippet br\n\
27 | break;\n\
28 | snippet th\n\
29 | throw ${1}\n\
30 | snippet cl\n\
31 | class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\
32 | snippet imp\n\
33 | implements ${1}\n\
34 | snippet ext\n\
35 | extends ${1}\n\
36 | snippet if\n\
37 | if (${1:true}) {\n\
38 | ${2}\n\
39 | }\n\
40 | snippet ife\n\
41 | if (${1:true}) {\n\
42 | ${2}\n\
43 | } else {\n\
44 | ${3}\n\
45 | }\n\
46 | snippet el\n\
47 | else\n\
48 | snippet sw\n\
49 | switch (${1}) {\n\
50 | ${2}\n\
51 | }\n\
52 | snippet cs\n\
53 | case ${1}:\n\
54 | ${2}\n\
55 | snippet de\n\
56 | default:\n\
57 | ${1}\n\
58 | snippet for\n\
59 | for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n\
60 | ${4:$1[$2]}\n\
61 | }\n\
62 | snippet fore\n\
63 | for (final ${2:item} in ${1:itemList}) {\n\
64 | ${3:/* code */}\n\
65 | }\n\
66 | snippet wh\n\
67 | while (${1:/* condition */}) {\n\
68 | ${2:/* code */}\n\
69 | }\n\
70 | snippet dowh\n\
71 | do {\n\
72 | ${2:/* code */}\n\
73 | } while (${1:/* condition */});\n\
74 | snippet as\n\
75 | assert(${1:/* condition */});\n\
76 | snippet try\n\
77 | try {\n\
78 | ${2}\n\
79 | } catch (${1:Exception e}) {\n\
80 | }\n\
81 | snippet tryf\n\
82 | try {\n\
83 | ${2}\n\
84 | } catch (${1:Exception e}) {\n\
85 | } finally {\n\
86 | }\n\
87 | ";
88 | exports.scope = "dart";
89 |
90 | });
91 |
--------------------------------------------------------------------------------
/lib/ace/snippets/diff.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/diff', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# DEP-3 (http://dep.debian.net/deps/dep3/) style patch header\n\
5 | snippet header DEP-3 style header\n\
6 | Description: ${1}\n\
7 | Origin: ${2:vendor|upstream|other}, ${3:url of the original patch}\n\
8 | Bug: ${4:url in upstream bugtracker}\n\
9 | Forwarded: ${5:no|not-needed|url}\n\
10 | Author: ${6:`g:snips_author`}\n\
11 | Reviewed-by: ${7:name and email}\n\
12 | Last-Update: ${8:`strftime(\"%Y-%m-%d\")`}\n\
13 | Applied-Upstream: ${9:upstream version|url|commit}\n\
14 | \n\
15 | ";
16 | exports.scope = "diff";
17 |
18 | });
19 |
--------------------------------------------------------------------------------
/lib/ace/snippets/django.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/django', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# Model Fields\n\
5 | \n\
6 | # Note: Optional arguments are using defaults that match what Django will use\n\
7 | # as a default, e.g. with max_length fields. Doing this as a form of self\n\
8 | # documentation and to make it easy to know whether you should override the\n\
9 | # default or not.\n\
10 | \n\
11 | # Note: Optional arguments that are booleans will use the opposite since you\n\
12 | # can either not specify them, or override them, e.g. auto_now_add=False.\n\
13 | \n\
14 | snippet auto\n\
15 | ${1:FIELDNAME} = models.AutoField(${2})\n\
16 | snippet bool\n\
17 | ${1:FIELDNAME} = models.BooleanField(${2:default=True})\n\
18 | snippet char\n\
19 | ${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True})\n\
20 | snippet comma\n\
21 | ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True})\n\
22 | snippet date\n\
23 | ${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
24 | snippet datetime\n\
25 | ${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
26 | snippet decimal\n\
27 | ${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${3})\n\
28 | snippet email\n\
29 | ${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True})\n\
30 | snippet file\n\
31 | ${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100})\n\
32 | snippet filepath\n\
33 | ${1:FIELDNAME} = models.FilePathField(path=${2:\"/abs/path/to/dir\"}${3:, max_length=100}${4:, match=\"*.ext\"}${5:, recursive=True}${6:, blank=True, })\n\
34 | snippet float\n\
35 | ${1:FIELDNAME} = models.FloatField(${2})\n\
36 | snippet image\n\
37 | ${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100})\n\
38 | snippet int\n\
39 | ${1:FIELDNAME} = models.IntegerField(${2})\n\
40 | snippet ip\n\
41 | ${1:FIELDNAME} = models.IPAddressField(${2})\n\
42 | snippet nullbool\n\
43 | ${1:FIELDNAME} = models.NullBooleanField(${2})\n\
44 | snippet posint\n\
45 | ${1:FIELDNAME} = models.PositiveIntegerField(${2})\n\
46 | snippet possmallint\n\
47 | ${1:FIELDNAME} = models.PositiveSmallIntegerField(${2})\n\
48 | snippet slug\n\
49 | ${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True})\n\
50 | snippet smallint\n\
51 | ${1:FIELDNAME} = models.SmallIntegerField(${2})\n\
52 | snippet text\n\
53 | ${1:FIELDNAME} = models.TextField(${2:blank=True})\n\
54 | snippet time\n\
55 | ${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\
56 | snippet url\n\
57 | ${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${4:, blank=True})\n\
58 | snippet xml\n\
59 | ${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${3:, blank=True})\n\
60 | # Relational Fields\n\
61 | snippet fk\n\
62 | ${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, to_field=''})\n\
63 | snippet m2m\n\
64 | ${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${7:, db_table=''})\n\
65 | snippet o2o\n\
66 | ${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})\n\
67 | \n\
68 | # Code Skeletons\n\
69 | \n\
70 | snippet form\n\
71 | class ${1:FormName}(forms.Form):\n\
72 | \"\"\"${2:docstring}\"\"\"\n\
73 | ${3}\n\
74 | \n\
75 | snippet model\n\
76 | class ${1:ModelName}(models.Model):\n\
77 | \"\"\"${2:docstring}\"\"\"\n\
78 | ${3}\n\
79 | \n\
80 | class Meta:\n\
81 | ${4}\n\
82 | \n\
83 | def __unicode__(self):\n\
84 | ${5}\n\
85 | \n\
86 | def save(self, force_insert=False, force_update=False):\n\
87 | ${6}\n\
88 | \n\
89 | @models.permalink\n\
90 | def get_absolute_url(self):\n\
91 | return ('${7:view_or_url_name}' ${8})\n\
92 | \n\
93 | snippet modeladmin\n\
94 | class ${1:ModelName}Admin(admin.ModelAdmin):\n\
95 | ${2}\n\
96 | \n\
97 | admin.site.register($1, $1Admin)\n\
98 | \n\
99 | snippet tabularinline\n\
100 | class ${1:ModelName}Inline(admin.TabularInline):\n\
101 | model = $1\n\
102 | \n\
103 | snippet stackedinline\n\
104 | class ${1:ModelName}Inline(admin.StackedInline):\n\
105 | model = $1\n\
106 | \n\
107 | snippet r2r\n\
108 | return render_to_response('${1:template.html}', {\n\
109 | ${2}\n\
110 | }${3:, context_instance=RequestContext(request)}\n\
111 | )\n\
112 | ";
113 | exports.scope = "django";
114 |
115 | });
116 |
--------------------------------------------------------------------------------
/lib/ace/snippets/dot.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/dot', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "dot";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/ejs.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/ejs', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "ejs";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/erlang.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/erlang', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# module and export all\n\
5 | snippet mod\n\
6 | -module(${1:`Filename('', 'my')`}).\n\
7 | \n\
8 | -compile([export_all]).\n\
9 | \n\
10 | start() ->\n\
11 | ${2}\n\
12 | \n\
13 | stop() ->\n\
14 | ok.\n\
15 | # define directive\n\
16 | snippet def\n\
17 | -ace.define(${1:macro}, ${2:body}).${3}\n\
18 | # export directive\n\
19 | snippet exp\n\
20 | -export([${1:function}/${2:arity}]).\n\
21 | # include directive\n\
22 | snippet inc\n\
23 | -include(\"${1:file}\").${2}\n\
24 | # behavior directive\n\
25 | snippet beh\n\
26 | -behaviour(${1:behaviour}).${2}\n\
27 | # if expression\n\
28 | snippet if\n\
29 | if\n\
30 | ${1:guard} ->\n\
31 | ${2:body}\n\
32 | end\n\
33 | # case expression\n\
34 | snippet case\n\
35 | case ${1:expression} of\n\
36 | ${2:pattern} ->\n\
37 | ${3:body};\n\
38 | end\n\
39 | # anonymous function\n\
40 | snippet fun\n\
41 | fun (${1:Parameters}) -> ${2:body} end${3}\n\
42 | # try...catch\n\
43 | snippet try\n\
44 | try\n\
45 | ${1}\n\
46 | catch\n\
47 | ${2:_:_} -> ${3:got_some_exception}\n\
48 | end\n\
49 | # record directive\n\
50 | snippet rec\n\
51 | -record(${1:record}, {\n\
52 | ${2:field}=${3:value}}).${4}\n\
53 | # todo comment\n\
54 | snippet todo\n\
55 | %% TODO: ${1}\n\
56 | ## Snippets below (starting with '%') are in EDoc format.\n\
57 | ## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details\n\
58 | # doc comment\n\
59 | snippet %d\n\
60 | %% @doc ${1}\n\
61 | # end of doc comment\n\
62 | snippet %e\n\
63 | %% @end\n\
64 | # specification comment\n\
65 | snippet %s\n\
66 | %% @spec ${1}\n\
67 | # private function marker\n\
68 | snippet %p\n\
69 | %% @private\n\
70 | # OTP application\n\
71 | snippet application\n\
72 | -module(${1:`Filename('', 'my')`}).\n\
73 | \n\
74 | -behaviour(application).\n\
75 | \n\
76 | -export([start/2, stop/1]).\n\
77 | \n\
78 | start(_Type, _StartArgs) ->\n\
79 | case ${2:root_supervisor}:start_link() of\n\
80 | {ok, Pid} ->\n\
81 | {ok, Pid};\n\
82 | Other ->\n\
83 | {error, Other}\n\
84 | end.\n\
85 | \n\
86 | stop(_State) ->\n\
87 | ok. \n\
88 | # OTP supervisor\n\
89 | snippet supervisor\n\
90 | -module(${1:`Filename('', 'my')`}).\n\
91 | \n\
92 | -behaviour(supervisor).\n\
93 | \n\
94 | %% API\n\
95 | -export([start_link/0]).\n\
96 | \n\
97 | %% Supervisor callbacks\n\
98 | -export([init/1]).\n\
99 | \n\
100 | -ace.define(SERVER, ?MODULE).\n\
101 | \n\
102 | start_link() ->\n\
103 | supervisor:start_link({local, ?SERVER}, ?MODULE, []).\n\
104 | \n\
105 | init([]) ->\n\
106 | Server = {${2:my_server}, {$2, start_link, []},\n\
107 | permanent, 2000, worker, [$2]},\n\
108 | Children = [Server],\n\
109 | RestartStrategy = {one_for_one, 0, 1},\n\
110 | {ok, {RestartStrategy, Children}}.\n\
111 | # OTP gen_server\n\
112 | snippet gen_server\n\
113 | -module(${1:`Filename('', 'my')`}).\n\
114 | \n\
115 | -behaviour(gen_server).\n\
116 | \n\
117 | %% API\n\
118 | -export([\n\
119 | start_link/0\n\
120 | ]).\n\
121 | \n\
122 | %% gen_server callbacks\n\
123 | -export([init/1, handle_call/3, handle_cast/2, handle_info/2,\n\
124 | terminate/2, code_change/3]).\n\
125 | \n\
126 | -ace.define(SERVER, ?MODULE).\n\
127 | \n\
128 | -record(state, {}).\n\
129 | \n\
130 | %%%===================================================================\n\
131 | %%% API\n\
132 | %%%===================================================================\n\
133 | \n\
134 | start_link() ->\n\
135 | gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).\n\
136 | \n\
137 | %%%===================================================================\n\
138 | %%% gen_server callbacks\n\
139 | %%%===================================================================\n\
140 | \n\
141 | init([]) ->\n\
142 | {ok, #state{}}.\n\
143 | \n\
144 | handle_call(_Request, _From, State) ->\n\
145 | Reply = ok,\n\
146 | {reply, Reply, State}.\n\
147 | \n\
148 | handle_cast(_Msg, State) ->\n\
149 | {noreply, State}.\n\
150 | \n\
151 | handle_info(_Info, State) ->\n\
152 | {noreply, State}.\n\
153 | \n\
154 | terminate(_Reason, _State) ->\n\
155 | ok.\n\
156 | \n\
157 | code_change(_OldVsn, State, _Extra) ->\n\
158 | {ok, State}.\n\
159 | \n\
160 | %%%===================================================================\n\
161 | %%% Internal functions\n\
162 | %%%===================================================================\n\
163 | \n\
164 | ";
165 | exports.scope = "erlang";
166 |
167 | });
168 |
--------------------------------------------------------------------------------
/lib/ace/snippets/forth.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/forth', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "forth";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/ftl.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/ftl', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "ftl";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/glsl.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/glsl', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "glsl";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/golang.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/golang', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "golang";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/groovy.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/groovy', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "groovy";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/haml.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/haml', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet t\n\
5 | %table\n\
6 | %tr\n\
7 | %th\n\
8 | ${1:headers}\n\
9 | %tr\n\
10 | %td\n\
11 | ${2:headers}\n\
12 | snippet ul\n\
13 | %ul\n\
14 | %li\n\
15 | ${1:item}\n\
16 | %li\n\
17 | snippet =rp\n\
18 | = render :partial => '${1:partial}'\n\
19 | snippet =rpl\n\
20 | = render :partial => '${1:partial}', :locals => {}\n\
21 | snippet =rpc\n\
22 | = render :partial => '${1:partial}', :collection => @$1\n\
23 | \n\
24 | ";
25 | exports.scope = "haml";
26 |
27 | });
28 |
--------------------------------------------------------------------------------
/lib/ace/snippets/handlebars.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/handlebars', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "handlebars";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/haskell.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/haskell', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet lang\n\
5 | {-# LANGUAGE ${1:OverloadedStrings} #-}\n\
6 | snippet info\n\
7 | -- |\n\
8 | -- Module : ${1:Module.Namespace}\n\
9 | -- Copyright : ${2:Author} ${3:2011-2012}\n\
10 | -- License : ${4:BSD3}\n\
11 | --\n\
12 | -- Maintainer : ${5:email@something.com}\n\
13 | -- Stability : ${6:experimental}\n\
14 | -- Portability : ${7:unknown}\n\
15 | --\n\
16 | -- ${8:Description}\n\
17 | --\n\
18 | snippet import\n\
19 | import ${1:Data.Text}\n\
20 | snippet import2\n\
21 | import ${1:Data.Text} (${2:head})\n\
22 | snippet importq\n\
23 | import qualified ${1:Data.Text} as ${2:T}\n\
24 | snippet inst\n\
25 | instance ${1:Monoid} ${2:Type} where\n\
26 | ${3}\n\
27 | snippet type\n\
28 | type ${1:Type} = ${2:Type}\n\
29 | snippet data\n\
30 | data ${1:Type} = ${2:$1} ${3:Int}\n\
31 | snippet newtype\n\
32 | newtype ${1:Type} = ${2:$1} ${3:Int}\n\
33 | snippet class\n\
34 | class ${1:Class} a where\n\
35 | ${2}\n\
36 | snippet module\n\
37 | module `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\
38 | ) where\n\
39 | `expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\
40 | \n\
41 | snippet const\n\
42 | ${1:name} :: ${2:a}\n\
43 | $1 = ${3:undefined}\n\
44 | snippet fn\n\
45 | ${1:fn} :: ${2:a} -> ${3:a}\n\
46 | $1 ${4} = ${5:undefined}\n\
47 | snippet fn2\n\
48 | ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\
49 | $1 ${5} = ${6:undefined}\n\
50 | snippet ap\n\
51 | ${1:map} ${2:fn} ${3:list}\n\
52 | snippet do\n\
53 | do\n\
54 | \n\
55 | snippet λ\n\
56 | \\${1:x} -> ${2}\n\
57 | snippet \\\n\
58 | \\${1:x} -> ${2}\n\
59 | snippet <-\n\
60 | ${1:a} <- ${2:m a}\n\
61 | snippet ←\n\
62 | ${1:a} <- ${2:m a}\n\
63 | snippet ->\n\
64 | ${1:m a} -> ${2:a}\n\
65 | snippet →\n\
66 | ${1:m a} -> ${2:a}\n\
67 | snippet tup\n\
68 | (${1:a}, ${2:b})\n\
69 | snippet tup2\n\
70 | (${1:a}, ${2:b}, ${3:c})\n\
71 | snippet tup3\n\
72 | (${1:a}, ${2:b}, ${3:c}, ${4:d})\n\
73 | snippet rec\n\
74 | ${1:Record} { ${2:recFieldA} = ${3:undefined}\n\
75 | , ${4:recFieldB} = ${5:undefined}\n\
76 | }\n\
77 | snippet case\n\
78 | case ${1:something} of\n\
79 | ${2} -> ${3}\n\
80 | snippet let\n\
81 | let ${1} = ${2}\n\
82 | in ${3}\n\
83 | snippet where\n\
84 | where\n\
85 | ${1:fn} = ${2:undefined}\n\
86 | ";
87 | exports.scope = "haskell";
88 |
89 | });
90 |
--------------------------------------------------------------------------------
/lib/ace/snippets/haxe.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/haxe', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "haxe";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/html_completions.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/html_completions', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "html_completions";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/html_ruby.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/html_ruby', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "html_ruby";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/ini.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/ini', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "ini";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/jack.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/jack', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "jack";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/jade.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/jade', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "jade";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/javascript.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/javascript', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# Prototype\n\
5 | snippet proto\n\
6 | ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\
7 | ${4:// body...}\n\
8 | };\n\
9 | # Function\n\
10 | snippet fun\n\
11 | function ${1?:function_name}(${2:argument}) {\n\
12 | ${3:// body...}\n\
13 | }\n\
14 | # Anonymous Function\n\
15 | regex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\n\
16 | snippet f\n\
17 | function${M1?: ${1:functionName}}($2) {\n\
18 | ${0:$TM_SELECTED_TEXT}\n\
19 | }${M2?;}${M3?,}${M4?)}\n\
20 | # Immediate function\n\
21 | trigger \\(?f\\(\n\
22 | endTrigger \\)?\n\
23 | snippet f(\n\
24 | (function(${1}) {\n\
25 | ${0:${TM_SELECTED_TEXT:/* code */}}\n\
26 | }(${1}));\n\
27 | # if\n\
28 | snippet if\n\
29 | if (${1:true}) {\n\
30 | ${0}\n\
31 | }\n\
32 | # if ... else\n\
33 | snippet ife\n\
34 | if (${1:true}) {\n\
35 | ${2}\n\
36 | } else {\n\
37 | ${0}\n\
38 | }\n\
39 | # tertiary conditional\n\
40 | snippet ter\n\
41 | ${1:/* condition */} ? ${2:a} : ${3:b}\n\
42 | # switch\n\
43 | snippet switch\n\
44 | switch (${1:expression}) {\n\
45 | case '${3:case}':\n\
46 | ${4:// code}\n\
47 | break;\n\
48 | ${5}\n\
49 | default:\n\
50 | ${2:// code}\n\
51 | }\n\
52 | # case\n\
53 | snippet case\n\
54 | case '${1:case}':\n\
55 | ${2:// code}\n\
56 | break;\n\
57 | ${3}\n\
58 | \n\
59 | # while (...) {...}\n\
60 | snippet wh\n\
61 | while (${1:/* condition */}) {\n\
62 | ${0:/* code */}\n\
63 | }\n\
64 | # try\n\
65 | snippet try\n\
66 | try {\n\
67 | ${0:/* code */}\n\
68 | } catch (e) {}\n\
69 | # do...while\n\
70 | snippet do\n\
71 | do {\n\
72 | ${2:/* code */}\n\
73 | } while (${1:/* condition */});\n\
74 | # Object Method\n\
75 | snippet :f\n\
76 | regex /([,{[])|^\\s*/:f/\n\
77 | ${1:method_name}: function(${2:attribute}) {\n\
78 | ${0}\n\
79 | }${3:,}\n\
80 | # setTimeout function\n\
81 | snippet setTimeout\n\
82 | regex /\\b/st|timeout|setTimeo?u?t?/\n\
83 | setTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n\
84 | # Get Elements\n\
85 | snippet gett\n\
86 | getElementsBy${1:TagName}('${2}')${3}\n\
87 | # Get Element\n\
88 | snippet get\n\
89 | getElementBy${1:Id}('${2}')${3}\n\
90 | # console.log (Firebug)\n\
91 | snippet cl\n\
92 | console.log(${1});\n\
93 | # return\n\
94 | snippet ret\n\
95 | return ${1:result}\n\
96 | # for (property in object ) { ... }\n\
97 | snippet fori\n\
98 | for (var ${1:prop} in ${2:Things}) {\n\
99 | ${0:$2[$1]}\n\
100 | }\n\
101 | # hasOwnProperty\n\
102 | snippet has\n\
103 | hasOwnProperty(${1})\n\
104 | # docstring\n\
105 | snippet /**\n\
106 | /**\n\
107 | * ${1:description}\n\
108 | *\n\
109 | */\n\
110 | snippet @par\n\
111 | regex /^\\s*\\*\\s*/@(para?m?)?/\n\
112 | @param {${1:type}} ${2:name} ${3:description}\n\
113 | snippet @ret\n\
114 | @return {${1:type}} ${2:description}\n\
115 | # JSON.parse\n\
116 | snippet jsonp\n\
117 | JSON.parse(${1:jstr});\n\
118 | # JSON.stringify\n\
119 | snippet jsons\n\
120 | JSON.stringify(${1:object});\n\
121 | # self-defining function\n\
122 | snippet sdf\n\
123 | var ${1:function_name} = function(${2:argument}) {\n\
124 | ${3:// initial code ...}\n\
125 | \n\
126 | $1 = function($2) {\n\
127 | ${4:// main code}\n\
128 | };\n\
129 | }\n\
130 | # singleton\n\
131 | snippet sing\n\
132 | function ${1:Singleton} (${2:argument}) {\n\
133 | // the cached instance\n\
134 | var instance;\n\
135 | \n\
136 | // rewrite the constructor\n\
137 | $1 = function $1($2) {\n\
138 | return instance;\n\
139 | };\n\
140 | \n\
141 | // carry over the prototype properties\n\
142 | $1.prototype = this;\n\
143 | \n\
144 | // the instance\n\
145 | instance = new $1();\n\
146 | \n\
147 | // reset the constructor pointer\n\
148 | instance.constructor = $1;\n\
149 | \n\
150 | ${3:// code ...}\n\
151 | \n\
152 | return instance;\n\
153 | }\n\
154 | # class\n\
155 | snippet class\n\
156 | regex /^\\s*/clas{0,2}/\n\
157 | var ${1:class} = function(${20}) {\n\
158 | $40$0\n\
159 | };\n\
160 | \n\
161 | (function() {\n\
162 | ${60:this.prop = \"\"}\n\
163 | }).call(${1:class}.prototype);\n\
164 | \n\
165 | exports.${1:class} = ${1:class};\n\
166 | # \n\
167 | snippet for-\n\
168 | for (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\
169 | ${0:${2:Things}[${1:i}];}\n\
170 | }\n\
171 | # for (...) {...}\n\
172 | snippet for\n\
173 | for (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\
174 | ${3:$2[$1]}$0\n\
175 | }\n\
176 | # for (...) {...} (Improved Native For-Loop)\n\
177 | snippet forr\n\
178 | for (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\
179 | ${3:$2[$1]}$0\n\
180 | }\n\
181 | \n\
182 | \n\
183 | #modules\n\
184 | snippet def\n\
185 | ace.define(function(require, exports, module) {\n\
186 | \"use strict\";\n\
187 | var ${1/.*\\///} = require(\"${1}\");\n\
188 | \n\
189 | $TM_SELECTED_TEXT\n\
190 | });\n\
191 | snippet req\n\
192 | guard ^\\s*\n\
193 | var ${1/.*\\///} = require(\"${1}\");\n\
194 | $0\n\
195 | snippet requ\n\
196 | guard ^\\s*\n\
197 | var ${1/.*\\/(.)/\\u$1/} = require(\"${1}\").${1/.*\\/(.)/\\u$1/};\n\
198 | $0\n\
199 | ";
200 | exports.scope = "javascript";
201 |
202 | });
203 |
--------------------------------------------------------------------------------
/lib/ace/snippets/json.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/json', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "json";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/jsoniq.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/jsoniq', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "jsoniq";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/jsp.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/jsp', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet @page\n\
5 | <%@page contentType=\"text/html\" pageEncoding=\"UTF-8\"%>\n\
6 | snippet jstl\n\
7 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\
8 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\
9 | snippet jstl:c\n\
10 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\
11 | snippet jstl:fn\n\
12 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\
13 | snippet cpath\n\
14 | ${pageContext.request.contextPath}\n\
15 | snippet cout\n\
16 | \n\
17 | snippet cset\n\
18 | \n\
19 | snippet cremove\n\
20 | \n\
21 | snippet ccatch\n\
22 | \n\
23 | snippet cif\n\
24 | \n\
25 | ${2}\n\
26 | \n\
27 | snippet cchoose\n\
28 | \n\
29 | ${1}\n\
30 | \n\
31 | snippet cwhen\n\
32 | \n\
33 | ${2}\n\
34 | \n\
35 | snippet cother\n\
36 | \n\
37 | ${1}\n\
38 | \n\
39 | snippet cfore\n\
40 | \n\
41 | ${4:}\n\
42 | \n\
43 | snippet cfort\n\
44 | ${2:item1,item2,item3}\n\
45 | \n\
46 | ${5:}\n\
47 | \n\
48 | snippet cparam\n\
49 | \n\
50 | snippet cparam+\n\
51 | \n\
52 | cparam+${3}\n\
53 | snippet cimport\n\
54 | \n\
55 | snippet cimport+\n\
56 | \n\
57 | \n\
58 | cparam+${4}\n\
59 | \n\
60 | snippet curl\n\
61 | \n\
62 | ${3}\n\
63 | snippet curl+\n\
64 | \n\
65 | \n\
66 | cparam+${6}\n\
67 | \n\
68 | ${3}\n\
69 | snippet credirect\n\
70 | \n\
71 | snippet contains\n\
72 | ${fn:contains(${1:string}, ${2:substr})}\n\
73 | snippet contains:i\n\
74 | ${fn:containsIgnoreCase(${1:string}, ${2:substr})}\n\
75 | snippet endswith\n\
76 | ${fn:endsWith(${1:string}, ${2:suffix})}\n\
77 | snippet escape\n\
78 | ${fn:escapeXml(${1:string})}\n\
79 | snippet indexof\n\
80 | ${fn:indexOf(${1:string}, ${2:substr})}\n\
81 | snippet join\n\
82 | ${fn:join(${1:collection}, ${2:delims})}\n\
83 | snippet length\n\
84 | ${fn:length(${1:collection_or_string})}\n\
85 | snippet replace\n\
86 | ${fn:replace(${1:string}, ${2:substr}, ${3:replace})}\n\
87 | snippet split\n\
88 | ${fn:split(${1:string}, ${2:delims})}\n\
89 | snippet startswith\n\
90 | ${fn:startsWith(${1:string}, ${2:prefix})}\n\
91 | snippet substr\n\
92 | ${fn:substring(${1:string}, ${2:begin}, ${3:end})}\n\
93 | snippet substr:a\n\
94 | ${fn:substringAfter(${1:string}, ${2:substr})}\n\
95 | snippet substr:b\n\
96 | ${fn:substringBefore(${1:string}, ${2:substr})}\n\
97 | snippet lc\n\
98 | ${fn:toLowerCase(${1:string})}\n\
99 | snippet uc\n\
100 | ${fn:toUpperCase(${1:string})}\n\
101 | snippet trim\n\
102 | ${fn:trim(${1:string})}\n\
103 | ";
104 | exports.scope = "jsp";
105 |
106 | });
107 |
--------------------------------------------------------------------------------
/lib/ace/snippets/jsx.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/jsx', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "jsx";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/julia.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/julia', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "julia";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/latex.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/latex', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "latex";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/less.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/less', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "less";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/liquid.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/liquid', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "liquid";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/lisp.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/lisp', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "lisp";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/livescript.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/livescript', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "livescript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/logiql.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/logiql', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "logiql";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/lua.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/lua', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet #!\n\
5 | #!/usr/bin/env lua\n\
6 | $1\n\
7 | snippet local\n\
8 | local ${1:x} = ${2:1}\n\
9 | snippet fun\n\
10 | function ${1:fname}(${2:...})\n\
11 | ${3:-- body}\n\
12 | end\n\
13 | snippet for\n\
14 | for ${1:i}=${2:1},${3:10} do\n\
15 | ${4:print(i)}\n\
16 | end\n\
17 | snippet forp\n\
18 | for ${1:i},${2:v} in pairs(${3:table_name}) do\n\
19 | ${4:-- body}\n\
20 | end\n\
21 | snippet fori\n\
22 | for ${1:i},${2:v} in ipairs(${3:table_name}) do\n\
23 | ${4:-- body}\n\
24 | end\n\
25 | ";
26 | exports.scope = "lua";
27 |
28 | });
29 |
--------------------------------------------------------------------------------
/lib/ace/snippets/luapage.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/luapage', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "luapage";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/lucene.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/lucene', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "lucene";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/makefile.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/makefile', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet ifeq\n\
5 | ifeq (${1:cond0},${2:cond1})\n\
6 | ${3:code}\n\
7 | endif\n\
8 | ";
9 | exports.scope = "makefile";
10 |
11 | });
12 |
--------------------------------------------------------------------------------
/lib/ace/snippets/markdown.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/markdown', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# Markdown\n\
5 | \n\
6 | # Includes octopress (http://octopress.org/) snippets\n\
7 | \n\
8 | snippet [\n\
9 | [${1:text}](http://${2:address} \"${3:title}\")\n\
10 | snippet [*\n\
11 | [${1:link}](${2:`@*`} \"${3:title}\")${4}\n\
12 | \n\
13 | snippet [:\n\
14 | [${1:id}]: http://${2:url} \"${3:title}\"\n\
15 | snippet [:*\n\
16 | [${1:id}]: ${2:`@*`} \"${3:title}\"\n\
17 | \n\
18 | snippet \n\
20 | snippet ${4}\n\
22 | \n\
23 | snippet ![:\n\
24 | ![${1:id}]: ${2:url} \"${3:title}\"\n\
25 | snippet ![:*\n\
26 | ![${1:id}]: ${2:`@*`} \"${3:title}\"\n\
27 | \n\
28 | snippet ===\n\
29 | regex /^/=+/=*//\n\
30 | ${PREV_LINE/./=/g}\n\
31 | \n\
32 | ${0}\n\
33 | snippet ---\n\
34 | regex /^/-+/-*//\n\
35 | ${PREV_LINE/./-/g}\n\
36 | \n\
37 | ${0}\n\
38 | snippet blockquote\n\
39 | {% blockquote %}\n\
40 | ${1:quote}\n\
41 | {% endblockquote %}\n\
42 | \n\
43 | snippet blockquote-author\n\
44 | {% blockquote ${1:author}, ${2:title} %}\n\
45 | ${3:quote}\n\
46 | {% endblockquote %}\n\
47 | \n\
48 | snippet blockquote-link\n\
49 | {% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\
50 | ${4:quote}\n\
51 | {% endblockquote %}\n\
52 | \n\
53 | snippet bt-codeblock-short\n\
54 | ```\n\
55 | ${1:code_snippet}\n\
56 | ```\n\
57 | \n\
58 | snippet bt-codeblock-full\n\
59 | ``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\
60 | ${5:code_snippet}\n\
61 | ```\n\
62 | \n\
63 | snippet codeblock-short\n\
64 | {% codeblock %}\n\
65 | ${1:code_snippet}\n\
66 | {% endcodeblock %}\n\
67 | \n\
68 | snippet codeblock-full\n\
69 | {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\
70 | ${5:code_snippet}\n\
71 | {% endcodeblock %}\n\
72 | \n\
73 | snippet gist-full\n\
74 | {% gist ${1:gist_id} ${2:filename} %}\n\
75 | \n\
76 | snippet gist-short\n\
77 | {% gist ${1:gist_id} %}\n\
78 | \n\
79 | snippet img\n\
80 | {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\
81 | \n\
82 | snippet youtube\n\
83 | {% youtube ${1:video_id} %}\n\
84 | \n\
85 | # The quote should appear only once in the text. It is inherently part of it.\n\
86 | # See http://octopress.org/docs/plugins/pullquote/ for more info.\n\
87 | \n\
88 | snippet pullquote\n\
89 | {% pullquote %}\n\
90 | ${1:text} {\" ${2:quote} \"} ${3:text}\n\
91 | {% endpullquote %}\n\
92 | ";
93 | exports.scope = "markdown";
94 |
95 | });
96 |
--------------------------------------------------------------------------------
/lib/ace/snippets/matlab.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/matlab', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "matlab";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/mushcode.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/mushcode', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "mushcode";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/mushcode_high_rules.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/mushcode_high_rules', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "mushcode_high_rules";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/mysql.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/mysql', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "mysql";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/nix.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/nix', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "nix";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/objectivec.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/objectivec', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "objectivec";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/ocaml.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/ocaml', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "ocaml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/pascal.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/pascal', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "pascal";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/pgsql.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/pgsql', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "pgsql";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/plain_text.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/plain_text', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "plain_text";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/powershell.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/powershell', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "powershell";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/prolog.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/prolog', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "prolog";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/properties.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/properties', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "properties";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/protobuf.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/protobuf', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "protobuf";
6 |
7 | });
--------------------------------------------------------------------------------
/lib/ace/snippets/python.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/python', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet #!\n\
5 | #!/usr/bin/env python\n\
6 | snippet imp\n\
7 | import ${1:module}\n\
8 | snippet from\n\
9 | from ${1:package} import ${2:module}\n\
10 | # Module Docstring\n\
11 | snippet docs\n\
12 | '''\n\
13 | File: ${1:`Filename('$1.py', 'foo.py')`}\n\
14 | Author: ${2:`g:snips_author`}\n\
15 | Description: ${3}\n\
16 | '''\n\
17 | snippet wh\n\
18 | while ${1:condition}:\n\
19 | ${2:# TODO: write code...}\n\
20 | # dowh - does the same as do...while in other languages\n\
21 | snippet dowh\n\
22 | while True:\n\
23 | ${1:# TODO: write code...}\n\
24 | if ${2:condition}:\n\
25 | break\n\
26 | snippet with\n\
27 | with ${1:expr} as ${2:var}:\n\
28 | ${3:# TODO: write code...}\n\
29 | # New Class\n\
30 | snippet cl\n\
31 | class ${1:ClassName}(${2:object}):\n\
32 | \"\"\"${3:docstring for $1}\"\"\"\n\
33 | def __init__(self, ${4:arg}):\n\
34 | ${5:super($1, self).__init__()}\n\
35 | self.$4 = $4\n\
36 | ${6}\n\
37 | # New Function\n\
38 | snippet def\n\
39 | def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):\n\
40 | \"\"\"${3:docstring for $1}\"\"\"\n\
41 | ${4:# TODO: write code...}\n\
42 | snippet deff\n\
43 | def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):\n\
44 | ${3:# TODO: write code...}\n\
45 | # New Method\n\
46 | snippet defs\n\
47 | def ${1:mname}(self, ${2:arg}):\n\
48 | ${3:# TODO: write code...}\n\
49 | # New Property\n\
50 | snippet property\n\
51 | def ${1:foo}():\n\
52 | doc = \"${2:The $1 property.}\"\n\
53 | def fget(self):\n\
54 | ${3:return self._$1}\n\
55 | def fset(self, value):\n\
56 | ${4:self._$1 = value}\n\
57 | # Ifs\n\
58 | snippet if\n\
59 | if ${1:condition}:\n\
60 | ${2:# TODO: write code...}\n\
61 | snippet el\n\
62 | else:\n\
63 | ${1:# TODO: write code...}\n\
64 | snippet ei\n\
65 | elif ${1:condition}:\n\
66 | ${2:# TODO: write code...}\n\
67 | # For\n\
68 | snippet for\n\
69 | for ${1:item} in ${2:items}:\n\
70 | ${3:# TODO: write code...}\n\
71 | # Encodes\n\
72 | snippet cutf8\n\
73 | # -*- coding: utf-8 -*-\n\
74 | snippet clatin1\n\
75 | # -*- coding: latin-1 -*-\n\
76 | snippet cascii\n\
77 | # -*- coding: ascii -*-\n\
78 | # Lambda\n\
79 | snippet ld\n\
80 | ${1:var} = lambda ${2:vars} : ${3:action}\n\
81 | snippet .\n\
82 | self.\n\
83 | snippet try Try/Except\n\
84 | try:\n\
85 | ${1:# TODO: write code...}\n\
86 | except ${2:Exception}, ${3:e}:\n\
87 | ${4:raise $3}\n\
88 | snippet try Try/Except/Else\n\
89 | try:\n\
90 | ${1:# TODO: write code...}\n\
91 | except ${2:Exception}, ${3:e}:\n\
92 | ${4:raise $3}\n\
93 | else:\n\
94 | ${5:# TODO: write code...}\n\
95 | snippet try Try/Except/Finally\n\
96 | try:\n\
97 | ${1:# TODO: write code...}\n\
98 | except ${2:Exception}, ${3:e}:\n\
99 | ${4:raise $3}\n\
100 | finally:\n\
101 | ${5:# TODO: write code...}\n\
102 | snippet try Try/Except/Else/Finally\n\
103 | try:\n\
104 | ${1:# TODO: write code...}\n\
105 | except ${2:Exception}, ${3:e}:\n\
106 | ${4:raise $3}\n\
107 | else:\n\
108 | ${5:# TODO: write code...}\n\
109 | finally:\n\
110 | ${6:# TODO: write code...}\n\
111 | # if __name__ == '__main__':\n\
112 | snippet ifmain\n\
113 | if __name__ == '__main__':\n\
114 | ${1:main()}\n\
115 | # __magic__\n\
116 | snippet _\n\
117 | __${1:init}__${2}\n\
118 | # python debugger (pdb)\n\
119 | snippet pdb\n\
120 | import pdb; pdb.set_trace()\n\
121 | # ipython debugger (ipdb)\n\
122 | snippet ipdb\n\
123 | import ipdb; ipdb.set_trace()\n\
124 | # ipython debugger (pdbbb)\n\
125 | snippet pdbbb\n\
126 | import pdbpp; pdbpp.set_trace()\n\
127 | snippet pprint\n\
128 | import pprint; pprint.pprint(${1})${2}\n\
129 | snippet \"\n\
130 | \"\"\"\n\
131 | ${1:doc}\n\
132 | \"\"\"\n\
133 | # test function/method\n\
134 | snippet test\n\
135 | def test_${1:description}(${2:`indent('.') ? 'self' : ''`}):\n\
136 | ${3:# TODO: write code...}\n\
137 | # test case\n\
138 | snippet testcase\n\
139 | class ${1:ExampleCase}(unittest.TestCase):\n\
140 | \n\
141 | def test_${2:description}(self):\n\
142 | ${3:# TODO: write code...}\n\
143 | snippet fut\n\
144 | from __future__ import ${1}\n\
145 | #getopt\n\
146 | snippet getopt\n\
147 | try:\n\
148 | # Short option syntax: \"hv:\"\n\
149 | # Long option syntax: \"help\" or \"verbose=\"\n\
150 | opts, args = getopt.getopt(sys.argv[1:], \"${1:short_options}\", [${2:long_options}])\n\
151 | \n\
152 | except getopt.GetoptError, err:\n\
153 | # Print debug info\n\
154 | print str(err)\n\
155 | ${3:error_action}\n\
156 | \n\
157 | for option, argument in opts:\n\
158 | if option in (\"-h\", \"--help\"):\n\
159 | ${4}\n\
160 | elif option in (\"-v\", \"--verbose\"):\n\
161 | verbose = argument\n\
162 | ";
163 | exports.scope = "python";
164 |
165 | });
166 |
--------------------------------------------------------------------------------
/lib/ace/snippets/r.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/r', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet #!\n\
5 | #!/usr/bin/env Rscript\n\
6 | \n\
7 | # includes\n\
8 | snippet lib\n\
9 | library(${1:package})\n\
10 | snippet req\n\
11 | require(${1:package})\n\
12 | snippet source\n\
13 | source('${1:file}')\n\
14 | \n\
15 | # conditionals\n\
16 | snippet if\n\
17 | if (${1:condition}) {\n\
18 | ${2:code}\n\
19 | }\n\
20 | snippet el\n\
21 | else {\n\
22 | ${1:code}\n\
23 | }\n\
24 | snippet ei\n\
25 | else if (${1:condition}) {\n\
26 | ${2:code}\n\
27 | }\n\
28 | \n\
29 | # functions\n\
30 | snippet fun\n\
31 | ${1:name} = function (${2:variables}) {\n\
32 | ${3:code}\n\
33 | }\n\
34 | snippet ret\n\
35 | return(${1:code})\n\
36 | \n\
37 | # dataframes, lists, etc\n\
38 | snippet df\n\
39 | ${1:name}[${2:rows}, ${3:cols}]\n\
40 | snippet c\n\
41 | c(${1:items})\n\
42 | snippet li\n\
43 | list(${1:items})\n\
44 | snippet mat\n\
45 | matrix(${1:data}, nrow=${2:rows}, ncol=${3:cols})\n\
46 | \n\
47 | # apply functions\n\
48 | snippet apply\n\
49 | apply(${1:array}, ${2:margin}, ${3:function})\n\
50 | snippet lapply\n\
51 | lapply(${1:list}, ${2:function})\n\
52 | snippet sapply\n\
53 | lapply(${1:list}, ${2:function})\n\
54 | snippet vapply\n\
55 | vapply(${1:list}, ${2:function}, ${3:type})\n\
56 | snippet mapply\n\
57 | mapply(${1:function}, ${2:...})\n\
58 | snippet tapply\n\
59 | tapply(${1:vector}, ${2:index}, ${3:function})\n\
60 | snippet rapply\n\
61 | rapply(${1:list}, ${2:function})\n\
62 | \n\
63 | # plyr functions\n\
64 | snippet dd\n\
65 | ddply(${1:frame}, ${2:variables}, ${3:function})\n\
66 | snippet dl\n\
67 | dlply(${1:frame}, ${2:variables}, ${3:function})\n\
68 | snippet da\n\
69 | daply(${1:frame}, ${2:variables}, ${3:function})\n\
70 | snippet d_\n\
71 | d_ply(${1:frame}, ${2:variables}, ${3:function})\n\
72 | \n\
73 | snippet ad\n\
74 | adply(${1:array}, ${2:margin}, ${3:function})\n\
75 | snippet al\n\
76 | alply(${1:array}, ${2:margin}, ${3:function})\n\
77 | snippet aa\n\
78 | aaply(${1:array}, ${2:margin}, ${3:function})\n\
79 | snippet a_\n\
80 | a_ply(${1:array}, ${2:margin}, ${3:function})\n\
81 | \n\
82 | snippet ld\n\
83 | ldply(${1:list}, ${2:function})\n\
84 | snippet ll\n\
85 | llply(${1:list}, ${2:function})\n\
86 | snippet la\n\
87 | laply(${1:list}, ${2:function})\n\
88 | snippet l_\n\
89 | l_ply(${1:list}, ${2:function})\n\
90 | \n\
91 | snippet md\n\
92 | mdply(${1:matrix}, ${2:function})\n\
93 | snippet ml\n\
94 | mlply(${1:matrix}, ${2:function})\n\
95 | snippet ma\n\
96 | maply(${1:matrix}, ${2:function})\n\
97 | snippet m_\n\
98 | m_ply(${1:matrix}, ${2:function})\n\
99 | \n\
100 | # plot functions\n\
101 | snippet pl\n\
102 | plot(${1:x}, ${2:y})\n\
103 | snippet ggp\n\
104 | ggplot(${1:data}, aes(${2:aesthetics}))\n\
105 | snippet img\n\
106 | ${1:(jpeg,bmp,png,tiff)}(filename=\"${2:filename}\", width=${3}, height=${4}, unit=\"${5}\")\n\
107 | ${6:plot}\n\
108 | dev.off()\n\
109 | \n\
110 | # statistical test functions\n\
111 | snippet fis\n\
112 | fisher.test(${1:x}, ${2:y})\n\
113 | snippet chi\n\
114 | chisq.test(${1:x}, ${2:y})\n\
115 | snippet tt\n\
116 | t.test(${1:x}, ${2:y})\n\
117 | snippet wil\n\
118 | wilcox.test(${1:x}, ${2:y})\n\
119 | snippet cor\n\
120 | cor.test(${1:x}, ${2:y})\n\
121 | snippet fte\n\
122 | var.test(${1:x}, ${2:y})\n\
123 | snippet kvt \n\
124 | kv.test(${1:x}, ${2:y})\n\
125 | ";
126 | exports.scope = "r";
127 |
128 | });
129 |
--------------------------------------------------------------------------------
/lib/ace/snippets/rdoc.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/rdoc', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "rdoc";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/rhtml.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/rhtml', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "rhtml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/rust.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/rust', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "rust";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/sass.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/sass', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "sass";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/scad.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/scad', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "scad";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/scala.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/scala', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "scala";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/scheme.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/scheme', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "scheme";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/scss.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/scss', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "scss";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/sh.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/sh', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# Shebang. Executing bash via /usr/bin/env makes scripts more portable.\n\
5 | snippet #!\n\
6 | #!/usr/bin/env bash\n\
7 | \n\
8 | snippet if\n\
9 | if [[ ${1:condition} ]]; then\n\
10 | ${2:#statements}\n\
11 | fi\n\
12 | snippet elif\n\
13 | elif [[ ${1:condition} ]]; then\n\
14 | ${2:#statements}\n\
15 | snippet for\n\
16 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do\n\
17 | ${3:#statements}\n\
18 | done\n\
19 | snippet fori\n\
20 | for ${1:needle} in ${2:haystack} ; do\n\
21 | ${3:#statements}\n\
22 | done\n\
23 | snippet wh\n\
24 | while [[ ${1:condition} ]]; do\n\
25 | ${2:#statements}\n\
26 | done\n\
27 | snippet until\n\
28 | until [[ ${1:condition} ]]; do\n\
29 | ${2:#statements}\n\
30 | done\n\
31 | snippet case\n\
32 | case ${1:word} in\n\
33 | ${2:pattern})\n\
34 | ${3};;\n\
35 | esac\n\
36 | snippet go \n\
37 | while getopts '${1:o}' ${2:opts} \n\
38 | do \n\
39 | case $$2 in\n\
40 | ${3:o0})\n\
41 | ${4:#staments};;\n\
42 | esac\n\
43 | done\n\
44 | # Set SCRIPT_DIR variable to directory script is located.\n\
45 | snippet sdir\n\
46 | SCRIPT_DIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\n\
47 | # getopt\n\
48 | snippet getopt\n\
49 | __ScriptVersion=\"${1:version}\"\n\
50 | \n\
51 | #=== FUNCTION ================================================================\n\
52 | # NAME: usage\n\
53 | # DESCRIPTION: Display usage information.\n\
54 | #===============================================================================\n\
55 | function usage ()\n\
56 | {\n\
57 | cat <<- EOT\n\
58 | \n\
59 | Usage : $${0:0} [options] [--] \n\
60 | \n\
61 | Options: \n\
62 | -h|help Display this message\n\
63 | -v|version Display script version\n\
64 | \n\
65 | EOT\n\
66 | } # ---------- end of function usage ----------\n\
67 | \n\
68 | #-----------------------------------------------------------------------\n\
69 | # Handle command line arguments\n\
70 | #-----------------------------------------------------------------------\n\
71 | \n\
72 | while getopts \":hv\" opt\n\
73 | do\n\
74 | case $opt in\n\
75 | \n\
76 | h|help ) usage; exit 0 ;;\n\
77 | \n\
78 | v|version ) echo \"$${0:0} -- Version $__ScriptVersion\"; exit 0 ;;\n\
79 | \n\
80 | \\? ) echo -e \"\\n Option does not exist : $OPTARG\\n\"\n\
81 | usage; exit 1 ;;\n\
82 | \n\
83 | esac # --- end of case ---\n\
84 | done\n\
85 | shift $(($OPTIND-1))\n\
86 | \n\
87 | ";
88 | exports.scope = "sh";
89 |
90 | });
91 |
--------------------------------------------------------------------------------
/lib/ace/snippets/sjs.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/sjs', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "sjs";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/snippets.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/snippets', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# snippets for making snippets :)\n\
5 | snippet snip\n\
6 | snippet ${1:trigger}\n\
7 | ${2}\n\
8 | snippet msnip\n\
9 | snippet ${1:trigger} ${2:description}\n\
10 | ${3}\n\
11 | snippet v\n\
12 | {VISUAL}\n\
13 | ";
14 | exports.scope = "snippets";
15 |
16 | });
17 |
--------------------------------------------------------------------------------
/lib/ace/snippets/soy_template.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/soy_template', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "soy_template";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/space.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/space', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "space";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/sql.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/sql', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "snippet tbl\n\
5 | create table ${1:table} (\n\
6 | ${2:columns}\n\
7 | );\n\
8 | snippet col\n\
9 | ${1:name} ${2:type} ${3:default ''} ${4:not null}\n\
10 | snippet ccol\n\
11 | ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}\n\
12 | snippet ncol\n\
13 | ${1:name} number ${3:default 0} ${4:not null}\n\
14 | snippet dcol\n\
15 | ${1:name} date ${3:default sysdate} ${4:not null}\n\
16 | snippet ind\n\
17 | create index ${3:$1_$2} on ${1:table}(${2:column});\n\
18 | snippet uind\n\
19 | create unique index ${1:name} on ${2:table}(${3:column});\n\
20 | snippet tblcom\n\
21 | comment on table ${1:table} is '${2:comment}';\n\
22 | snippet colcom\n\
23 | comment on column ${1:table}.${2:column} is '${3:comment}';\n\
24 | snippet addcol\n\
25 | alter table ${1:table} add (${2:column} ${3:type});\n\
26 | snippet seq\n\
27 | create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\n\
28 | snippet s*\n\
29 | select * from ${1:table}\n\
30 | ";
31 | exports.scope = "sql";
32 |
33 | });
34 |
--------------------------------------------------------------------------------
/lib/ace/snippets/stylus.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/stylus', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "stylus";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/svg.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/svg', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "svg";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/tcl.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/tcl', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# #!/usr/bin/env tclsh\n\
5 | snippet #!\n\
6 | #!/usr/bin/env tclsh\n\
7 | \n\
8 | # Process\n\
9 | snippet pro\n\
10 | proc ${1:function_name} {${2:args}} {\n\
11 | ${3:#body ...}\n\
12 | }\n\
13 | #xif\n\
14 | snippet xif\n\
15 | ${1:expr}? ${2:true} : ${3:false}\n\
16 | # Conditional\n\
17 | snippet if\n\
18 | if {${1}} {\n\
19 | ${2:# body...}\n\
20 | }\n\
21 | # Conditional if..else\n\
22 | snippet ife\n\
23 | if {${1}} {\n\
24 | ${2:# body...}\n\
25 | } else {\n\
26 | ${3:# else...}\n\
27 | }\n\
28 | # Conditional if..elsif..else\n\
29 | snippet ifee\n\
30 | if {${1}} {\n\
31 | ${2:# body...}\n\
32 | } elseif {${3}} {\n\
33 | ${4:# elsif...}\n\
34 | } else {\n\
35 | ${5:# else...}\n\
36 | }\n\
37 | # If catch then\n\
38 | snippet ifc\n\
39 | if { [catch {${1:#do something...}} ${2:err}] } {\n\
40 | ${3:# handle failure...}\n\
41 | }\n\
42 | # Catch\n\
43 | snippet catch\n\
44 | catch {${1}} ${2:err} ${3:options}\n\
45 | # While Loop\n\
46 | snippet wh\n\
47 | while {${1}} {\n\
48 | ${2:# body...}\n\
49 | }\n\
50 | # For Loop\n\
51 | snippet for\n\
52 | for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n\
53 | ${4:# body...}\n\
54 | }\n\
55 | # Foreach Loop\n\
56 | snippet fore\n\
57 | foreach ${1:x} {${2:#list}} {\n\
58 | ${3:# body...}\n\
59 | }\n\
60 | # after ms script...\n\
61 | snippet af\n\
62 | after ${1:ms} ${2:#do something}\n\
63 | # after cancel id\n\
64 | snippet afc\n\
65 | after cancel ${1:id or script}\n\
66 | # after idle\n\
67 | snippet afi\n\
68 | after idle ${1:script}\n\
69 | # after info id\n\
70 | snippet afin\n\
71 | after info ${1:id}\n\
72 | # Expr\n\
73 | snippet exp\n\
74 | expr {${1:#expression here}}\n\
75 | # Switch\n\
76 | snippet sw\n\
77 | switch ${1:var} {\n\
78 | ${3:pattern 1} {\n\
79 | ${4:#do something}\n\
80 | }\n\
81 | default {\n\
82 | ${2:#do something}\n\
83 | }\n\
84 | }\n\
85 | # Case\n\
86 | snippet ca\n\
87 | ${1:pattern} {\n\
88 | ${2:#do something}\n\
89 | }${3}\n\
90 | # Namespace eval\n\
91 | snippet ns\n\
92 | namespace eval ${1:path} {${2:#script...}}\n\
93 | # Namespace current\n\
94 | snippet nsc\n\
95 | namespace current\n\
96 | ";
97 | exports.scope = "tcl";
98 |
99 | });
100 |
--------------------------------------------------------------------------------
/lib/ace/snippets/tex.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/tex', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "#PREAMBLE\n\
5 | #newcommand\n\
6 | snippet nc\n\
7 | \\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}}${4}\n\
8 | #usepackage\n\
9 | snippet up\n\
10 | \\usepackage[${1:[options}]{${2:package}}\n\
11 | #newunicodechar\n\
12 | snippet nuc\n\
13 | \\newunicodechar{${1}}{${2:\\ensuremath}${3:tex-substitute}}}\n\
14 | #DeclareMathOperator\n\
15 | snippet dmo\n\
16 | \\DeclareMathOperator{${1}}{${2}}\n\
17 | \n\
18 | #DOCUMENT\n\
19 | # \\begin{}...\\end{}\n\
20 | snippet begin\n\
21 | \\begin{${1:env}}\n\
22 | ${2}\n\
23 | \\end{$1}\n\
24 | # Tabular\n\
25 | snippet tab\n\
26 | \\begin{${1:tabular}}{${2:c}}\n\
27 | ${3}\n\
28 | \\end{$1}\n\
29 | snippet thm\n\
30 | \\begin[${1:author}]{${2:thm}}\n\
31 | ${3}\n\
32 | \\end{$1}\n\
33 | snippet center\n\
34 | \\begin{center}\n\
35 | ${1}\n\
36 | \\end{center}\n\
37 | # Align(ed)\n\
38 | snippet ali\n\
39 | \\begin{align${1:ed}}\n\
40 | ${2}\n\
41 | \\end{align$1}\n\
42 | # Gather(ed)\n\
43 | snippet gat\n\
44 | \\begin{gather${1:ed}}\n\
45 | ${2}\n\
46 | \\end{gather$1}\n\
47 | # Equation\n\
48 | snippet eq\n\
49 | \\begin{equation}\n\
50 | ${1}\n\
51 | \\end{equation}\n\
52 | # Equation\n\
53 | snippet eq*\n\
54 | \\begin{equation*}\n\
55 | ${1}\n\
56 | \\end{equation*}\n\
57 | # Unnumbered Equation\n\
58 | snippet \\\n\
59 | \\[\n\
60 | ${1}\n\
61 | \\]\n\
62 | # Enumerate\n\
63 | snippet enum\n\
64 | \\begin{enumerate}\n\
65 | \\item ${1}\n\
66 | \\end{enumerate}\n\
67 | # Itemize\n\
68 | snippet itemize\n\
69 | \\begin{itemize}\n\
70 | \\item ${1}\n\
71 | \\end{itemize}\n\
72 | # Description\n\
73 | snippet desc\n\
74 | \\begin{description}\n\
75 | \\item[${1}] ${2}\n\
76 | \\end{description}\n\
77 | # Matrix\n\
78 | snippet mat\n\
79 | \\begin{${1:p/b/v/V/B/small}matrix}\n\
80 | ${2}\n\
81 | \\end{$1matrix}\n\
82 | # Cases\n\
83 | snippet cas\n\
84 | \\begin{cases}\n\
85 | ${1:equation}, &\\text{ if }${2:case}\\\\\n\
86 | ${3}\n\
87 | \\end{cases}\n\
88 | # Split\n\
89 | snippet spl\n\
90 | \\begin{split}\n\
91 | ${1}\n\
92 | \\end{split}\n\
93 | # Part\n\
94 | snippet part\n\
95 | \\part{${1:part name}} % (fold)\n\
96 | \\label{prt:${2:$1}}\n\
97 | ${3}\n\
98 | % part $2 (end)\n\
99 | # Chapter\n\
100 | snippet cha\n\
101 | \\chapter{${1:chapter name}}\n\
102 | \\label{cha:${2:$1}}\n\
103 | ${3}\n\
104 | # Section\n\
105 | snippet sec\n\
106 | \\section{${1:section name}}\n\
107 | \\label{sec:${2:$1}}\n\
108 | ${3}\n\
109 | # Sub Section\n\
110 | snippet sub\n\
111 | \\subsection{${1:subsection name}}\n\
112 | \\label{sub:${2:$1}}\n\
113 | ${3}\n\
114 | # Sub Sub Section\n\
115 | snippet subs\n\
116 | \\subsubsection{${1:subsubsection name}}\n\
117 | \\label{ssub:${2:$1}}\n\
118 | ${3}\n\
119 | # Paragraph\n\
120 | snippet par\n\
121 | \\paragraph{${1:paragraph name}}\n\
122 | \\label{par:${2:$1}}\n\
123 | ${3}\n\
124 | # Sub Paragraph\n\
125 | snippet subp\n\
126 | \\subparagraph{${1:subparagraph name}}\n\
127 | \\label{subp:${2:$1}}\n\
128 | ${3}\n\
129 | #References\n\
130 | snippet itd\n\
131 | \\item[${1:description}] ${2:item}\n\
132 | snippet figure\n\
133 | ${1:Figure}~\\ref{${2:fig:}}${3}\n\
134 | snippet table\n\
135 | ${1:Table}~\\ref{${2:tab:}}${3}\n\
136 | snippet listing\n\
137 | ${1:Listing}~\\ref{${2:list}}${3}\n\
138 | snippet section\n\
139 | ${1:Section}~\\ref{${2:sec:}}${3}\n\
140 | snippet page\n\
141 | ${1:page}~\\pageref{${2}}${3}\n\
142 | snippet index\n\
143 | \\index{${1:index}}${2}\n\
144 | #Citations\n\
145 | snippet cite\n\
146 | \\cite[${1}]{${2}}${3}\n\
147 | snippet fcite\n\
148 | \\footcite[${1}]{${2}}${3}\n\
149 | #Formating text: italic, bold, underline, small capital, emphase ..\n\
150 | snippet it\n\
151 | \\textit{${1:text}}\n\
152 | snippet bf\n\
153 | \\textbf{${1:text}}\n\
154 | snippet under\n\
155 | \\underline{${1:text}}\n\
156 | snippet emp\n\
157 | \\emph{${1:text}}\n\
158 | snippet sc\n\
159 | \\textsc{${1:text}}\n\
160 | #Choosing font\n\
161 | snippet sf\n\
162 | \\textsf{${1:text}}\n\
163 | snippet rm\n\
164 | \\textrm{${1:text}}\n\
165 | snippet tt\n\
166 | \\texttt{${1:text}}\n\
167 | #misc\n\
168 | snippet ft\n\
169 | \\footnote{${1:text}}\n\
170 | snippet fig\n\
171 | \\begin{figure}\n\
172 | \\begin{center}\n\
173 | \\includegraphics[scale=${1}]{Figures/${2}}\n\
174 | \\end{center}\n\
175 | \\caption{${3}}\n\
176 | \\label{fig:${4}}\n\
177 | \\end{figure}\n\
178 | snippet tikz\n\
179 | \\begin{figure}\n\
180 | \\begin{center}\n\
181 | \\begin{tikzpicture}[scale=${1:1}]\n\
182 | ${2}\n\
183 | \\end{tikzpicture}\n\
184 | \\end{center}\n\
185 | \\caption{${3}}\n\
186 | \\label{fig:${4}}\n\
187 | \\end{figure}\n\
188 | #math\n\
189 | snippet stackrel\n\
190 | \\stackrel{${1:above}}{${2:below}} ${3}\n\
191 | snippet frac\n\
192 | \\frac{${1:num}}{${2:denom}}\n\
193 | snippet sum\n\
194 | \\sum^{${1:n}}_{${2:i=1}}{${3}}";
195 | exports.scope = "tex";
196 |
197 | });
198 |
--------------------------------------------------------------------------------
/lib/ace/snippets/text.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/text', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "text";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/textile.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/textile', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "# Jekyll post header\n\
5 | snippet header\n\
6 | ---\n\
7 | title: ${1:title}\n\
8 | layout: post\n\
9 | date: ${2:date} ${3:hour:minute:second} -05:00\n\
10 | ---\n\
11 | \n\
12 | # Image\n\
13 | snippet img\n\
14 | !${1:url}(${2:title}):${3:link}!\n\
15 | \n\
16 | # Table\n\
17 | snippet |\n\
18 | |${1}|${2}\n\
19 | \n\
20 | # Link\n\
21 | snippet link\n\
22 | \"${1:link text}\":${2:url}\n\
23 | \n\
24 | # Acronym\n\
25 | snippet (\n\
26 | (${1:Expand acronym})${2}\n\
27 | \n\
28 | # Footnote\n\
29 | snippet fn\n\
30 | [${1:ref number}] ${3}\n\
31 | \n\
32 | fn$1. ${2:footnote}\n\
33 | \n\
34 | ";
35 | exports.scope = "textile";
36 |
37 | });
38 |
--------------------------------------------------------------------------------
/lib/ace/snippets/toml.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/toml', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "toml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/twig.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/twig', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "twig";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/typescript.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/typescript', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "typescript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/vbscript.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/vbscript', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "vbscript";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/velocity.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/velocity', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "velocity";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/verilog.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/verilog', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "verilog";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/vhdl.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/vhdl', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "vhdl";
6 |
7 | });
--------------------------------------------------------------------------------
/lib/ace/snippets/xml.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/xml', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "xml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/xquery.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/xquery', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "xquery";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/snippets/yaml.js:
--------------------------------------------------------------------------------
1 | ace.define('ace/snippets/yaml', ['require', 'exports', 'module' ], function(require, exports, module) {
2 |
3 |
4 | exports.snippetText = "";
5 | exports.scope = "yaml";
6 |
7 | });
8 |
--------------------------------------------------------------------------------
/lib/ace/theme-chaos.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright 2011 Irakli Gozalishvili. All rights reserved.
5 | * Permission is hereby granted, free of charge, to any person obtaining a copy
6 | * of this software and associated documentation files (the "Software"), to
7 | * deal in the Software without restriction, including without limitation the
8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 | * sell copies of the Software, and to permit persons to whom the Software is
10 | * furnished to do so, subject to the following conditions:
11 | *
12 | * The above copyright notice and this permission notice shall be included in
13 | * all copies or substantial portions of the Software.
14 | *
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | * IN THE SOFTWARE.
22 | * ***** END LICENSE BLOCK ***** */
23 |
24 | ace.define('ace/theme/chaos', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
25 |
26 | exports.isDark = true;
27 | exports.cssClass = "ace-chaos";
28 | exports.cssText = ".ace-chaos .ace_gutter {\
29 | background: #141414;\
30 | color: #595959;\
31 | border-right: 1px solid #282828;\
32 | }\
33 | .ace-chaos .ace_gutter-cell.ace_warning {\
34 | background-image: none;\
35 | background: #FC0;\
36 | border-left: none;\
37 | padding-left: 0;\
38 | color: #000;\
39 | }\
40 | .ace-chaos .ace_gutter-cell.ace_error {\
41 | background-position: -6px center;\
42 | background-image: none;\
43 | background: #F10;\
44 | border-left: none;\
45 | padding-left: 0;\
46 | color: #000;\
47 | }\
48 | .ace-chaos .ace_print-margin {\
49 | border-left: 1px solid #555;\
50 | right: 0;\
51 | background: #1D1D1D;\
52 | }\
53 | .ace-chaos {\
54 | background-color: #161616;\
55 | color: #E6E1DC;\
56 | }\
57 | .ace-chaos .ace_cursor {\
58 | border-left: 2px solid #FFFFFF;\
59 | }\
60 | .ace-chaos .ace_cursor.ace_overwrite {\
61 | border-left: 0px;\
62 | border-bottom: 1px solid #FFFFFF;\
63 | }\
64 | .ace-chaos .ace_marker-layer .ace_selection {\
65 | background: #494836;\
66 | }\
67 | .ace-chaos .ace_marker-layer .ace_step {\
68 | background: rgb(198, 219, 174);\
69 | }\
70 | .ace-chaos .ace_marker-layer .ace_bracket {\
71 | margin: -1px 0 0 -1px;\
72 | border: 1px solid #FCE94F;\
73 | }\
74 | .ace-chaos .ace_marker-layer .ace_active-line {\
75 | background: #333;\
76 | }\
77 | .ace-chaos .ace_gutter-active-line {\
78 | background-color: #222;\
79 | }\
80 | .ace-chaos .ace_invisible {\
81 | color: #404040;\
82 | }\
83 | .ace-chaos .ace_keyword {\
84 | color:#00698F;\
85 | }\
86 | .ace-chaos .ace_keyword.ace_operator {\
87 | color:#FF308F;\
88 | }\
89 | .ace-chaos .ace_constant {\
90 | color:#1EDAFB;\
91 | }\
92 | .ace-chaos .ace_constant.ace_language {\
93 | color:#FDC251;\
94 | }\
95 | .ace-chaos .ace_constant.ace_library {\
96 | color:#8DFF0A;\
97 | }\
98 | .ace-chaos .ace_constant.ace_numeric {\
99 | color:#58C554;\
100 | }\
101 | .ace-chaos .ace_invalid {\
102 | color:#FFFFFF;\
103 | background-color:#990000;\
104 | }\
105 | .ace-chaos .ace_invalid.ace_deprecated {\
106 | color:#FFFFFF;\
107 | background-color:#990000;\
108 | }\
109 | .ace-chaos .ace_support {\
110 | color: #999;\
111 | }\
112 | .ace-chaos .ace_support.ace_function {\
113 | color:#00AEEF;\
114 | }\
115 | .ace-chaos .ace_function {\
116 | color:#00AEEF;\
117 | }\
118 | .ace-chaos .ace_string {\
119 | color:#58C554;\
120 | }\
121 | .ace-chaos .ace_comment {\
122 | color:#555;\
123 | font-style:italic;\
124 | padding-bottom: 0px;\
125 | }\
126 | .ace-chaos .ace_variable {\
127 | color:#997744;\
128 | }\
129 | .ace-chaos .ace_meta.ace_tag {\
130 | color:#BE53E6;\
131 | }\
132 | .ace-chaos .ace_entity.ace_other.ace_attribute-name {\
133 | color:#FFFF89;\
134 | }\
135 | .ace-chaos .ace_markup.ace_underline {\
136 | text-decoration: underline;\
137 | }\
138 | .ace-chaos .ace_fold-widget {\
139 | text-align: center;\
140 | }\
141 | .ace-chaos .ace_fold-widget:hover {\
142 | color: #777;\
143 | }\
144 | .ace-chaos .ace_fold-widget.ace_start,\
145 | .ace-chaos .ace_fold-widget.ace_end,\
146 | .ace-chaos .ace_fold-widget.ace_closed{\
147 | background: none;\
148 | border: none;\
149 | box-shadow: none;\
150 | }\
151 | .ace-chaos .ace_fold-widget.ace_start:after {\
152 | content: '▾'\
153 | }\
154 | .ace-chaos .ace_fold-widget.ace_end:after {\
155 | content: '▴'\
156 | }\
157 | .ace-chaos .ace_fold-widget.ace_closed:after {\
158 | content: '‣'\
159 | }\
160 | .ace-chaos .ace_indent-guide {\
161 | border-right:1px dotted #333;\
162 | margin-right:-1px;\
163 | }\
164 | .ace-chaos .ace_fold { \
165 | background: #222; \
166 | border-radius: 3px; \
167 | color: #7AF; \
168 | border: none; \
169 | }\
170 | .ace-chaos .ace_fold:hover {\
171 | background: #CCC; \
172 | color: #000;\
173 | }\
174 | ";
175 |
176 | var dom = require("../lib/dom");
177 | dom.importCssString(exports.cssText, exports.cssClass);
178 |
179 | });
--------------------------------------------------------------------------------
/lib/ace/theme-clouds.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/clouds', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-clouds";
35 | exports.cssText = ".ace-clouds .ace_gutter {\
36 | background: #ebebeb;\
37 | color: #333\
38 | }\
39 | .ace-clouds .ace_print-margin {\
40 | width: 1px;\
41 | background: #e8e8e8\
42 | }\
43 | .ace-clouds {\
44 | background-color: #FFFFFF;\
45 | color: #000000\
46 | }\
47 | .ace-clouds .ace_cursor {\
48 | color: #000000\
49 | }\
50 | .ace-clouds .ace_marker-layer .ace_selection {\
51 | background: #BDD5FC\
52 | }\
53 | .ace-clouds.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #FFFFFF;\
55 | border-radius: 2px\
56 | }\
57 | .ace-clouds .ace_marker-layer .ace_step {\
58 | background: rgb(255, 255, 0)\
59 | }\
60 | .ace-clouds .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #BFBFBF\
63 | }\
64 | .ace-clouds .ace_marker-layer .ace_active-line {\
65 | background: #FFFBD1\
66 | }\
67 | .ace-clouds .ace_gutter-active-line {\
68 | background-color : #dcdcdc\
69 | }\
70 | .ace-clouds .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #BDD5FC\
72 | }\
73 | .ace-clouds .ace_invisible {\
74 | color: #BFBFBF\
75 | }\
76 | .ace-clouds .ace_keyword,\
77 | .ace-clouds .ace_meta,\
78 | .ace-clouds .ace_support.ace_constant.ace_property-value {\
79 | color: #AF956F\
80 | }\
81 | .ace-clouds .ace_keyword.ace_operator {\
82 | color: #484848\
83 | }\
84 | .ace-clouds .ace_keyword.ace_other.ace_unit {\
85 | color: #96DC5F\
86 | }\
87 | .ace-clouds .ace_constant.ace_language {\
88 | color: #39946A\
89 | }\
90 | .ace-clouds .ace_constant.ace_numeric {\
91 | color: #46A609\
92 | }\
93 | .ace-clouds .ace_constant.ace_character.ace_entity {\
94 | color: #BF78CC\
95 | }\
96 | .ace-clouds .ace_invalid {\
97 | background-color: #FF002A\
98 | }\
99 | .ace-clouds .ace_fold {\
100 | background-color: #AF956F;\
101 | border-color: #000000\
102 | }\
103 | .ace-clouds .ace_storage,\
104 | .ace-clouds .ace_support.ace_class,\
105 | .ace-clouds .ace_support.ace_function,\
106 | .ace-clouds .ace_support.ace_other,\
107 | .ace-clouds .ace_support.ace_type {\
108 | color: #C52727\
109 | }\
110 | .ace-clouds .ace_string {\
111 | color: #5D90CD\
112 | }\
113 | .ace-clouds .ace_comment {\
114 | color: #BCC8BA\
115 | }\
116 | .ace-clouds .ace_entity.ace_name.ace_tag,\
117 | .ace-clouds .ace_entity.ace_other.ace_attribute-name {\
118 | color: #606060\
119 | }\
120 | .ace-clouds .ace_indent-guide {\
121 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y\
122 | }";
123 |
124 | var dom = require("../lib/dom");
125 | dom.importCssString(exports.cssText, exports.cssClass);
126 | });
127 |
--------------------------------------------------------------------------------
/lib/ace/theme-clouds_midnight.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/clouds_midnight', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-clouds-midnight";
35 | exports.cssText = ".ace-clouds-midnight .ace_gutter {\
36 | background: #232323;\
37 | color: #929292\
38 | }\
39 | .ace-clouds-midnight .ace_print-margin {\
40 | width: 1px;\
41 | background: #232323\
42 | }\
43 | .ace-clouds-midnight{\
44 | background-color: #191919;\
45 | color: #929292\
46 | }\
47 | .ace-clouds-midnight .ace_cursor {\
48 | color: #7DA5DC\
49 | }\
50 | .ace-clouds-midnight .ace_marker-layer .ace_selection {\
51 | background: #000000\
52 | }\
53 | .ace-clouds-midnight.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #191919;\
55 | border-radius: 2px\
56 | }\
57 | .ace-clouds-midnight .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-clouds-midnight .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #BFBFBF\
63 | }\
64 | .ace-clouds-midnight .ace_marker-layer .ace_active-line {\
65 | background: rgba(215, 215, 215, 0.031)\
66 | }\
67 | .ace-clouds-midnight .ace_gutter-active-line {\
68 | background-color: rgba(215, 215, 215, 0.031)\
69 | }\
70 | .ace-clouds-midnight .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #000000\
72 | }\
73 | .ace-clouds-midnight .ace_invisible {\
74 | color: #BFBFBF\
75 | }\
76 | .ace-clouds-midnight .ace_keyword,\
77 | .ace-clouds-midnight .ace_meta,\
78 | .ace-clouds-midnight .ace_support.ace_constant.ace_property-value {\
79 | color: #927C5D\
80 | }\
81 | .ace-clouds-midnight .ace_keyword.ace_operator {\
82 | color: #4B4B4B\
83 | }\
84 | .ace-clouds-midnight .ace_keyword.ace_other.ace_unit {\
85 | color: #366F1A\
86 | }\
87 | .ace-clouds-midnight .ace_constant.ace_language {\
88 | color: #39946A\
89 | }\
90 | .ace-clouds-midnight .ace_constant.ace_numeric {\
91 | color: #46A609\
92 | }\
93 | .ace-clouds-midnight .ace_constant.ace_character.ace_entity {\
94 | color: #A165AC\
95 | }\
96 | .ace-clouds-midnight .ace_invalid {\
97 | color: #FFFFFF;\
98 | background-color: #E92E2E\
99 | }\
100 | .ace-clouds-midnight .ace_fold {\
101 | background-color: #927C5D;\
102 | border-color: #929292\
103 | }\
104 | .ace-clouds-midnight .ace_storage,\
105 | .ace-clouds-midnight .ace_support.ace_class,\
106 | .ace-clouds-midnight .ace_support.ace_function,\
107 | .ace-clouds-midnight .ace_support.ace_other,\
108 | .ace-clouds-midnight .ace_support.ace_type {\
109 | color: #E92E2E\
110 | }\
111 | .ace-clouds-midnight .ace_string {\
112 | color: #5D90CD\
113 | }\
114 | .ace-clouds-midnight .ace_comment {\
115 | color: #3C403B\
116 | }\
117 | .ace-clouds-midnight .ace_entity.ace_name.ace_tag,\
118 | .ace-clouds-midnight .ace_entity.ace_other.ace_attribute-name {\
119 | color: #606060\
120 | }\
121 | .ace-clouds-midnight .ace_indent-guide {\
122 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y;\
123 | }";
124 |
125 | var dom = require("../lib/dom");
126 | dom.importCssString(exports.cssText, exports.cssClass);
127 | });
128 |
--------------------------------------------------------------------------------
/lib/ace/theme-cobalt.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/cobalt', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-cobalt";
35 | exports.cssText = ".ace-cobalt .ace_gutter {\
36 | background: #011e3a;\
37 | color: #fff\
38 | }\
39 | .ace-cobalt .ace_print-margin {\
40 | width: 1px;\
41 | background: #011e3a\
42 | }\
43 | .ace-cobalt {\
44 | background-color: #002240;\
45 | color: #FFFFFF\
46 | }\
47 | .ace-cobalt .ace_cursor {\
48 | color: #FFFFFF\
49 | }\
50 | .ace-cobalt .ace_marker-layer .ace_selection {\
51 | background: rgba(179, 101, 57, 0.75)\
52 | }\
53 | .ace-cobalt.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #002240;\
55 | border-radius: 2px\
56 | }\
57 | .ace-cobalt .ace_marker-layer .ace_step {\
58 | background: rgb(127, 111, 19)\
59 | }\
60 | .ace-cobalt .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid rgba(255, 255, 255, 0.15)\
63 | }\
64 | .ace-cobalt .ace_marker-layer .ace_active-line {\
65 | background: rgba(0, 0, 0, 0.35)\
66 | }\
67 | .ace-cobalt .ace_gutter-active-line {\
68 | background-color: rgba(0, 0, 0, 0.35)\
69 | }\
70 | .ace-cobalt .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid rgba(179, 101, 57, 0.75)\
72 | }\
73 | .ace-cobalt .ace_invisible {\
74 | color: rgba(255, 255, 255, 0.15)\
75 | }\
76 | .ace-cobalt .ace_keyword,\
77 | .ace-cobalt .ace_meta {\
78 | color: #FF9D00\
79 | }\
80 | .ace-cobalt .ace_constant,\
81 | .ace-cobalt .ace_constant.ace_character,\
82 | .ace-cobalt .ace_constant.ace_character.ace_escape,\
83 | .ace-cobalt .ace_constant.ace_other {\
84 | color: #FF628C\
85 | }\
86 | .ace-cobalt .ace_invalid {\
87 | color: #F8F8F8;\
88 | background-color: #800F00\
89 | }\
90 | .ace-cobalt .ace_support {\
91 | color: #80FFBB\
92 | }\
93 | .ace-cobalt .ace_support.ace_constant {\
94 | color: #EB939A\
95 | }\
96 | .ace-cobalt .ace_fold {\
97 | background-color: #FF9D00;\
98 | border-color: #FFFFFF\
99 | }\
100 | .ace-cobalt .ace_support.ace_function {\
101 | color: #FFB054\
102 | }\
103 | .ace-cobalt .ace_storage {\
104 | color: #FFEE80\
105 | }\
106 | .ace-cobalt .ace_entity {\
107 | color: #FFDD00\
108 | }\
109 | .ace-cobalt .ace_string {\
110 | color: #3AD900\
111 | }\
112 | .ace-cobalt .ace_string.ace_regexp {\
113 | color: #80FFC2\
114 | }\
115 | .ace-cobalt .ace_comment {\
116 | font-style: italic;\
117 | color: #0088FF\
118 | }\
119 | .ace-cobalt .ace_variable {\
120 | color: #CCCCCC\
121 | }\
122 | .ace-cobalt .ace_variable.ace_language {\
123 | color: #FF80E1\
124 | }\
125 | .ace-cobalt .ace_meta.ace_tag {\
126 | color: #9EFFFF\
127 | }\
128 | .ace-cobalt .ace_heading {\
129 | color: #C8E4FD;\
130 | background-color: #001221\
131 | }\
132 | .ace-cobalt .ace_list {\
133 | background-color: #130D26\
134 | }\
135 | .ace-cobalt .ace_indent-guide {\
136 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHCLSvkPAAP3AgSDTRd4AAAAAElFTkSuQmCC) right repeat-y;\
137 | }";
138 |
139 | var dom = require("../lib/dom");
140 | dom.importCssString(exports.cssText, exports.cssClass);
141 | });
142 |
--------------------------------------------------------------------------------
/lib/ace/theme-dawn.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/dawn', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-dawn";
35 | exports.cssText = ".ace-dawn .ace_gutter {\
36 | background: #ebebeb;\
37 | color: #333\
38 | }\
39 | .ace-dawn .ace_print-margin {\
40 | width: 1px;\
41 | background: #e8e8e8\
42 | }\
43 | .ace-dawn {\
44 | background-color: #F9F9F9;\
45 | color: #080808\
46 | }\
47 | .ace-dawn .ace_cursor {\
48 | color: #000000\
49 | }\
50 | .ace-dawn .ace_marker-layer .ace_selection {\
51 | background: rgba(39, 95, 255, 0.30)\
52 | }\
53 | .ace-dawn.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #F9F9F9;\
55 | border-radius: 2px\
56 | }\
57 | .ace-dawn .ace_marker-layer .ace_step {\
58 | background: rgb(255, 255, 0)\
59 | }\
60 | .ace-dawn .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid rgba(75, 75, 126, 0.50)\
63 | }\
64 | .ace-dawn .ace_marker-layer .ace_active-line {\
65 | background: rgba(36, 99, 180, 0.12)\
66 | }\
67 | .ace-dawn .ace_gutter-active-line {\
68 | background-color : #dcdcdc\
69 | }\
70 | .ace-dawn .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid rgba(39, 95, 255, 0.30)\
72 | }\
73 | .ace-dawn .ace_invisible {\
74 | color: rgba(75, 75, 126, 0.50)\
75 | }\
76 | .ace-dawn .ace_keyword,\
77 | .ace-dawn .ace_meta {\
78 | color: #794938\
79 | }\
80 | .ace-dawn .ace_constant,\
81 | .ace-dawn .ace_constant.ace_character,\
82 | .ace-dawn .ace_constant.ace_character.ace_escape,\
83 | .ace-dawn .ace_constant.ace_other {\
84 | color: #811F24\
85 | }\
86 | .ace-dawn .ace_invalid.ace_illegal {\
87 | text-decoration: underline;\
88 | font-style: italic;\
89 | color: #F8F8F8;\
90 | background-color: #B52A1D\
91 | }\
92 | .ace-dawn .ace_invalid.ace_deprecated {\
93 | text-decoration: underline;\
94 | font-style: italic;\
95 | color: #B52A1D\
96 | }\
97 | .ace-dawn .ace_support {\
98 | color: #691C97\
99 | }\
100 | .ace-dawn .ace_support.ace_constant {\
101 | color: #B4371F\
102 | }\
103 | .ace-dawn .ace_fold {\
104 | background-color: #794938;\
105 | border-color: #080808\
106 | }\
107 | .ace-dawn .ace_list,\
108 | .ace-dawn .ace_support.ace_function {\
109 | color: #693A17\
110 | }\
111 | .ace-dawn .ace_storage {\
112 | font-style: italic;\
113 | color: #A71D5D\
114 | }\
115 | .ace-dawn .ace_string {\
116 | color: #0B6125\
117 | }\
118 | .ace-dawn .ace_string.ace_regexp {\
119 | color: #CF5628\
120 | }\
121 | .ace-dawn .ace_comment {\
122 | font-style: italic;\
123 | color: #5A525F\
124 | }\
125 | .ace-dawn .ace_variable {\
126 | color: #234A97\
127 | }\
128 | .ace-dawn .ace_heading {\
129 | color: #19356D\
130 | }\
131 | .ace-dawn .ace_indent-guide {\
132 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y;\
133 | }";
134 |
135 | var dom = require("../lib/dom");
136 | dom.importCssString(exports.cssText, exports.cssClass);
137 | });
138 |
--------------------------------------------------------------------------------
/lib/ace/theme-eclipse.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/eclipse', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 |
34 | exports.isDark = false;
35 | exports.cssText = ".ace-eclipse .ace_gutter {\
36 | background: #ebebeb;\
37 | border-right: 1px solid rgb(159, 159, 159);\
38 | color: rgb(136, 136, 136);\
39 | }\
40 | .ace-eclipse .ace_print-margin {\
41 | width: 1px;\
42 | background: #ebebeb;\
43 | }\
44 | .ace-eclipse {\
45 | background-color: #FFFFFF;\
46 | }\
47 | .ace-eclipse .ace_fold {\
48 | background-color: rgb(60, 76, 114);\
49 | }\
50 | .ace-eclipse .ace_cursor {\
51 | color: black;\
52 | }\
53 | .ace-eclipse .ace_storage,\
54 | .ace-eclipse .ace_keyword,\
55 | .ace-eclipse .ace_variable {\
56 | color: rgb(127, 0, 85);\
57 | }\
58 | .ace-eclipse .ace_constant.ace_buildin {\
59 | color: rgb(88, 72, 246);\
60 | }\
61 | .ace-eclipse .ace_constant.ace_library {\
62 | color: rgb(6, 150, 14);\
63 | }\
64 | .ace-eclipse .ace_function {\
65 | color: rgb(60, 76, 114);\
66 | }\
67 | .ace-eclipse .ace_string {\
68 | color: rgb(42, 0, 255);\
69 | }\
70 | .ace-eclipse .ace_comment {\
71 | color: rgb(113, 150, 130);\
72 | }\
73 | .ace-eclipse .ace_comment.ace_doc {\
74 | color: rgb(63, 95, 191);\
75 | }\
76 | .ace-eclipse .ace_comment.ace_doc.ace_tag {\
77 | color: rgb(127, 159, 191);\
78 | }\
79 | .ace-eclipse .ace_constant.ace_numeric {\
80 | color: darkblue;\
81 | }\
82 | .ace-eclipse .ace_tag {\
83 | color: rgb(25, 118, 116);\
84 | }\
85 | .ace-eclipse .ace_type {\
86 | color: rgb(127, 0, 127);\
87 | }\
88 | .ace-eclipse .ace_xml-pe {\
89 | color: rgb(104, 104, 91);\
90 | }\
91 | .ace-eclipse .ace_marker-layer .ace_selection {\
92 | background: rgb(181, 213, 255);\
93 | }\
94 | .ace-eclipse .ace_marker-layer .ace_bracket {\
95 | margin: -1px 0 0 -1px;\
96 | border: 1px solid rgb(192, 192, 192);\
97 | }\
98 | .ace-eclipse .ace_meta.ace_tag {\
99 | color:rgb(25, 118, 116);\
100 | }\
101 | .ace-eclipse .ace_invisible {\
102 | color: #ddd;\
103 | }\
104 | .ace-eclipse .ace_entity.ace_other.ace_attribute-name {\
105 | color:rgb(127, 0, 127);\
106 | }\
107 | .ace-eclipse .ace_marker-layer .ace_step {\
108 | background: rgb(255, 255, 0);\
109 | }\
110 | .ace-eclipse .ace_marker-layer .ace_active-line {\
111 | background: rgb(232, 242, 254);\
112 | }\
113 | .ace-eclipse .ace_marker-layer .ace_selected-word {\
114 | border: 1px solid rgb(181, 213, 255);\
115 | }\
116 | .ace-eclipse .ace_indent-guide {\
117 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
118 | }";
119 |
120 | exports.cssClass = "ace-eclipse";
121 |
122 | var dom = require("../lib/dom");
123 | dom.importCssString(exports.cssText, exports.cssClass);
124 | });
125 |
--------------------------------------------------------------------------------
/lib/ace/theme-github.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/github', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-github";
35 | exports.cssText = "/* CSS style content from github's default pygments highlighter template.\
36 | Cursor and selection styles from textmate.css. */\
37 | .ace-github .ace_gutter {\
38 | background: #e8e8e8;\
39 | color: #AAA;\
40 | }\
41 | .ace-github {\
42 | background: #fff;\
43 | color: #000;\
44 | }\
45 | .ace-github .ace_keyword {\
46 | font-weight: bold;\
47 | }\
48 | .ace-github .ace_string {\
49 | color: #D14;\
50 | }\
51 | .ace-github .ace_variable.ace_class {\
52 | color: teal;\
53 | }\
54 | .ace-github .ace_constant.ace_numeric {\
55 | color: #099;\
56 | }\
57 | .ace-github .ace_constant.ace_buildin {\
58 | color: #0086B3;\
59 | }\
60 | .ace-github .ace_support.ace_function {\
61 | color: #0086B3;\
62 | }\
63 | .ace-github .ace_comment {\
64 | color: #998;\
65 | font-style: italic;\
66 | }\
67 | .ace-github .ace_variable.ace_language {\
68 | color: #0086B3;\
69 | }\
70 | .ace-github .ace_paren {\
71 | font-weight: bold;\
72 | }\
73 | .ace-github .ace_boolean {\
74 | font-weight: bold;\
75 | }\
76 | .ace-github .ace_string.ace_regexp {\
77 | color: #009926;\
78 | font-weight: normal;\
79 | }\
80 | .ace-github .ace_variable.ace_instance {\
81 | color: teal;\
82 | }\
83 | .ace-github .ace_constant.ace_language {\
84 | font-weight: bold;\
85 | }\
86 | .ace-github .ace_cursor {\
87 | color: black;\
88 | }\
89 | .ace-github .ace_marker-layer .ace_active-line {\
90 | background: rgb(255, 255, 204);\
91 | }\
92 | .ace-github .ace_marker-layer .ace_selection {\
93 | background: rgb(181, 213, 255);\
94 | }\
95 | .ace-github.ace_multiselect .ace_selection.ace_start {\
96 | box-shadow: 0 0 3px 0px white;\
97 | border-radius: 2px;\
98 | }\
99 | /* bold keywords cause cursor issues for some fonts */\
100 | /* this disables bold style for editor and keeps for static highlighter */\
101 | .ace-github.ace_nobold .ace_line > span {\
102 | font-weight: normal !important;\
103 | }\
104 | .ace-github .ace_marker-layer .ace_step {\
105 | background: rgb(252, 255, 0);\
106 | }\
107 | .ace-github .ace_marker-layer .ace_stack {\
108 | background: rgb(164, 229, 101);\
109 | }\
110 | .ace-github .ace_marker-layer .ace_bracket {\
111 | margin: -1px 0 0 -1px;\
112 | border: 1px solid rgb(192, 192, 192);\
113 | }\
114 | .ace-github .ace_gutter-active-line {\
115 | background-color : rgba(0, 0, 0, 0.07);\
116 | }\
117 | .ace-github .ace_marker-layer .ace_selected-word {\
118 | background: rgb(250, 250, 255);\
119 | border: 1px solid rgb(200, 200, 250);\
120 | }\
121 | .ace-github .ace_print-margin {\
122 | width: 1px;\
123 | background: #e8e8e8;\
124 | }\
125 | .ace-github .ace_indent-guide {\
126 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
127 | }";
128 |
129 | var dom = require("../lib/dom");
130 | dom.importCssString(exports.cssText, exports.cssClass);
131 | });
132 |
--------------------------------------------------------------------------------
/lib/ace/theme-idle_fingers.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/idle_fingers', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-idle-fingers";
35 | exports.cssText = ".ace-idle-fingers .ace_gutter {\
36 | background: #3b3b3b;\
37 | color: #fff\
38 | }\
39 | .ace-idle-fingers .ace_print-margin {\
40 | width: 1px;\
41 | background: #3b3b3b\
42 | }\
43 | .ace-idle-fingers {\
44 | background-color: #323232;\
45 | color: #FFFFFF\
46 | }\
47 | .ace-idle-fingers .ace_cursor {\
48 | color: #91FF00\
49 | }\
50 | .ace-idle-fingers .ace_marker-layer .ace_selection {\
51 | background: rgba(90, 100, 126, 0.88)\
52 | }\
53 | .ace-idle-fingers.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #323232;\
55 | border-radius: 2px\
56 | }\
57 | .ace-idle-fingers .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-idle-fingers .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #404040\
63 | }\
64 | .ace-idle-fingers .ace_marker-layer .ace_active-line {\
65 | background: #353637\
66 | }\
67 | .ace-idle-fingers .ace_gutter-active-line {\
68 | background-color: #353637\
69 | }\
70 | .ace-idle-fingers .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid rgba(90, 100, 126, 0.88)\
72 | }\
73 | .ace-idle-fingers .ace_invisible {\
74 | color: #404040\
75 | }\
76 | .ace-idle-fingers .ace_keyword,\
77 | .ace-idle-fingers .ace_meta {\
78 | color: #CC7833\
79 | }\
80 | .ace-idle-fingers .ace_constant,\
81 | .ace-idle-fingers .ace_constant.ace_character,\
82 | .ace-idle-fingers .ace_constant.ace_character.ace_escape,\
83 | .ace-idle-fingers .ace_constant.ace_other,\
84 | .ace-idle-fingers .ace_support.ace_constant {\
85 | color: #6C99BB\
86 | }\
87 | .ace-idle-fingers .ace_invalid {\
88 | color: #FFFFFF;\
89 | background-color: #FF0000\
90 | }\
91 | .ace-idle-fingers .ace_fold {\
92 | background-color: #CC7833;\
93 | border-color: #FFFFFF\
94 | }\
95 | .ace-idle-fingers .ace_support.ace_function {\
96 | color: #B83426\
97 | }\
98 | .ace-idle-fingers .ace_variable.ace_parameter {\
99 | font-style: italic\
100 | }\
101 | .ace-idle-fingers .ace_string {\
102 | color: #A5C261\
103 | }\
104 | .ace-idle-fingers .ace_string.ace_regexp {\
105 | color: #CCCC33\
106 | }\
107 | .ace-idle-fingers .ace_comment {\
108 | font-style: italic;\
109 | color: #BC9458\
110 | }\
111 | .ace-idle-fingers .ace_meta.ace_tag {\
112 | color: #FFE5BB\
113 | }\
114 | .ace-idle-fingers .ace_entity.ace_name {\
115 | color: #FFC66D\
116 | }\
117 | .ace-idle-fingers .ace_collab.ace_user1 {\
118 | color: #323232;\
119 | background-color: #FFF980\
120 | }\
121 | .ace-idle-fingers .ace_indent-guide {\
122 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMwMjLyZYiPj/8PAAreAwAI1+g0AAAAAElFTkSuQmCC) right repeat-y;\
123 | }";
124 |
125 | var dom = require("../lib/dom");
126 | dom.importCssString(exports.cssText, exports.cssClass);
127 | });
128 |
--------------------------------------------------------------------------------
/lib/ace/theme-kr.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/kr_theme', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-kr-theme";
35 | exports.cssText = ".ace-kr-theme .ace_gutter {\
36 | background: #1c1917;\
37 | color: #FCFFE0\
38 | }\
39 | .ace-kr-theme .ace_print-margin {\
40 | width: 1px;\
41 | background: #1c1917\
42 | }\
43 | .ace-kr-theme {\
44 | background-color: #0B0A09;\
45 | color: #FCFFE0\
46 | }\
47 | .ace-kr-theme .ace_cursor {\
48 | color: #FF9900\
49 | }\
50 | .ace-kr-theme .ace_marker-layer .ace_selection {\
51 | background: rgba(170, 0, 255, 0.45)\
52 | }\
53 | .ace-kr-theme.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #0B0A09;\
55 | border-radius: 2px\
56 | }\
57 | .ace-kr-theme .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-kr-theme .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid rgba(255, 177, 111, 0.32)\
63 | }\
64 | .ace-kr-theme .ace_marker-layer .ace_active-line {\
65 | background: #38403D\
66 | }\
67 | .ace-kr-theme .ace_gutter-active-line {\
68 | background-color : #38403D\
69 | }\
70 | .ace-kr-theme .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid rgba(170, 0, 255, 0.45)\
72 | }\
73 | .ace-kr-theme .ace_invisible {\
74 | color: rgba(255, 177, 111, 0.32)\
75 | }\
76 | .ace-kr-theme .ace_keyword,\
77 | .ace-kr-theme .ace_meta {\
78 | color: #949C8B\
79 | }\
80 | .ace-kr-theme .ace_constant,\
81 | .ace-kr-theme .ace_constant.ace_character,\
82 | .ace-kr-theme .ace_constant.ace_character.ace_escape,\
83 | .ace-kr-theme .ace_constant.ace_other {\
84 | color: rgba(210, 117, 24, 0.76)\
85 | }\
86 | .ace-kr-theme .ace_invalid {\
87 | color: #F8F8F8;\
88 | background-color: #A41300\
89 | }\
90 | .ace-kr-theme .ace_support {\
91 | color: #9FC28A\
92 | }\
93 | .ace-kr-theme .ace_support.ace_constant {\
94 | color: #C27E66\
95 | }\
96 | .ace-kr-theme .ace_fold {\
97 | background-color: #949C8B;\
98 | border-color: #FCFFE0\
99 | }\
100 | .ace-kr-theme .ace_support.ace_function {\
101 | color: #85873A\
102 | }\
103 | .ace-kr-theme .ace_storage {\
104 | color: #FFEE80\
105 | }\
106 | .ace-kr-theme .ace_string {\
107 | color: rgba(164, 161, 181, 0.8)\
108 | }\
109 | .ace-kr-theme .ace_string.ace_regexp {\
110 | color: rgba(125, 255, 192, 0.65)\
111 | }\
112 | .ace-kr-theme .ace_comment {\
113 | font-style: italic;\
114 | color: #706D5B\
115 | }\
116 | .ace-kr-theme .ace_variable {\
117 | color: #D1A796\
118 | }\
119 | .ace-kr-theme .ace_variable.ace_language {\
120 | color: #FF80E1\
121 | }\
122 | .ace-kr-theme .ace_meta.ace_tag {\
123 | color: #BABD9C\
124 | }\
125 | .ace-kr-theme .ace_list {\
126 | background-color: #0F0040\
127 | }\
128 | .ace-kr-theme .ace_indent-guide {\
129 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y;\
130 | }";
131 |
132 | var dom = require("../lib/dom");
133 | dom.importCssString(exports.cssText, exports.cssClass);
134 | });
135 |
--------------------------------------------------------------------------------
/lib/ace/theme-merbivore.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/merbivore', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-merbivore";
35 | exports.cssText = ".ace-merbivore .ace_gutter {\
36 | background: #202020;\
37 | color: #E6E1DC\
38 | }\
39 | .ace-merbivore .ace_print-margin {\
40 | width: 1px;\
41 | background: #555651\
42 | }\
43 | .ace-merbivore {\
44 | background-color: #161616;\
45 | color: #E6E1DC\
46 | }\
47 | .ace-merbivore .ace_cursor {\
48 | color: #FFFFFF\
49 | }\
50 | .ace-merbivore .ace_marker-layer .ace_selection {\
51 | background: #454545\
52 | }\
53 | .ace-merbivore.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #161616;\
55 | border-radius: 2px\
56 | }\
57 | .ace-merbivore .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-merbivore .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #404040\
63 | }\
64 | .ace-merbivore .ace_marker-layer .ace_active-line {\
65 | background: #333435\
66 | }\
67 | .ace-merbivore .ace_gutter-active-line {\
68 | background-color: #333435\
69 | }\
70 | .ace-merbivore .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #454545\
72 | }\
73 | .ace-merbivore .ace_invisible {\
74 | color: #404040\
75 | }\
76 | .ace-merbivore .ace_entity.ace_name.ace_tag,\
77 | .ace-merbivore .ace_keyword,\
78 | .ace-merbivore .ace_meta,\
79 | .ace-merbivore .ace_meta.ace_tag,\
80 | .ace-merbivore .ace_storage,\
81 | .ace-merbivore .ace_support.ace_function {\
82 | color: #FC6F09\
83 | }\
84 | .ace-merbivore .ace_constant,\
85 | .ace-merbivore .ace_constant.ace_character,\
86 | .ace-merbivore .ace_constant.ace_character.ace_escape,\
87 | .ace-merbivore .ace_constant.ace_other,\
88 | .ace-merbivore .ace_support.ace_type {\
89 | color: #1EDAFB\
90 | }\
91 | .ace-merbivore .ace_constant.ace_character.ace_escape {\
92 | color: #519F50\
93 | }\
94 | .ace-merbivore .ace_constant.ace_language {\
95 | color: #FDC251\
96 | }\
97 | .ace-merbivore .ace_constant.ace_library,\
98 | .ace-merbivore .ace_string,\
99 | .ace-merbivore .ace_support.ace_constant {\
100 | color: #8DFF0A\
101 | }\
102 | .ace-merbivore .ace_constant.ace_numeric {\
103 | color: #58C554\
104 | }\
105 | .ace-merbivore .ace_invalid {\
106 | color: #FFFFFF;\
107 | background-color: #990000\
108 | }\
109 | .ace-merbivore .ace_fold {\
110 | background-color: #FC6F09;\
111 | border-color: #E6E1DC\
112 | }\
113 | .ace-merbivore .ace_comment {\
114 | font-style: italic;\
115 | color: #AD2EA4\
116 | }\
117 | .ace-merbivore .ace_entity.ace_other.ace_attribute-name {\
118 | color: #FFFF89\
119 | }\
120 | .ace-merbivore .ace_indent-guide {\
121 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQFxf3ZXB1df0PAAdsAmERTkEHAAAAAElFTkSuQmCC) right repeat-y;\
122 | }";
123 |
124 | var dom = require("../lib/dom");
125 | dom.importCssString(exports.cssText, exports.cssClass);
126 | });
127 |
--------------------------------------------------------------------------------
/lib/ace/theme-merbivore_soft.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/merbivore_soft', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-merbivore-soft";
35 | exports.cssText = ".ace-merbivore-soft .ace_gutter {\
36 | background: #262424;\
37 | color: #E6E1DC\
38 | }\
39 | .ace-merbivore-soft .ace_print-margin {\
40 | width: 1px;\
41 | background: #262424\
42 | }\
43 | .ace-merbivore-soft {\
44 | background-color: #1C1C1C;\
45 | color: #E6E1DC\
46 | }\
47 | .ace-merbivore-soft .ace_cursor {\
48 | color: #FFFFFF\
49 | }\
50 | .ace-merbivore-soft .ace_marker-layer .ace_selection {\
51 | background: #494949\
52 | }\
53 | .ace-merbivore-soft.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #1C1C1C;\
55 | border-radius: 2px\
56 | }\
57 | .ace-merbivore-soft .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-merbivore-soft .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #404040\
63 | }\
64 | .ace-merbivore-soft .ace_marker-layer .ace_active-line {\
65 | background: #333435\
66 | }\
67 | .ace-merbivore-soft .ace_gutter-active-line {\
68 | background-color: #333435\
69 | }\
70 | .ace-merbivore-soft .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #494949\
72 | }\
73 | .ace-merbivore-soft .ace_invisible {\
74 | color: #404040\
75 | }\
76 | .ace-merbivore-soft .ace_entity.ace_name.ace_tag,\
77 | .ace-merbivore-soft .ace_keyword,\
78 | .ace-merbivore-soft .ace_meta,\
79 | .ace-merbivore-soft .ace_meta.ace_tag,\
80 | .ace-merbivore-soft .ace_storage {\
81 | color: #FC803A\
82 | }\
83 | .ace-merbivore-soft .ace_constant,\
84 | .ace-merbivore-soft .ace_constant.ace_character,\
85 | .ace-merbivore-soft .ace_constant.ace_character.ace_escape,\
86 | .ace-merbivore-soft .ace_constant.ace_other,\
87 | .ace-merbivore-soft .ace_support.ace_type {\
88 | color: #68C1D8\
89 | }\
90 | .ace-merbivore-soft .ace_constant.ace_character.ace_escape {\
91 | color: #B3E5B4\
92 | }\
93 | .ace-merbivore-soft .ace_constant.ace_language {\
94 | color: #E1C582\
95 | }\
96 | .ace-merbivore-soft .ace_constant.ace_library,\
97 | .ace-merbivore-soft .ace_string,\
98 | .ace-merbivore-soft .ace_support.ace_constant {\
99 | color: #8EC65F\
100 | }\
101 | .ace-merbivore-soft .ace_constant.ace_numeric {\
102 | color: #7FC578\
103 | }\
104 | .ace-merbivore-soft .ace_invalid,\
105 | .ace-merbivore-soft .ace_invalid.ace_deprecated {\
106 | color: #FFFFFF;\
107 | background-color: #FE3838\
108 | }\
109 | .ace-merbivore-soft .ace_fold {\
110 | background-color: #FC803A;\
111 | border-color: #E6E1DC\
112 | }\
113 | .ace-merbivore-soft .ace_comment,\
114 | .ace-merbivore-soft .ace_meta {\
115 | font-style: italic;\
116 | color: #AC4BB8\
117 | }\
118 | .ace-merbivore-soft .ace_entity.ace_other.ace_attribute-name {\
119 | color: #EAF1A3\
120 | }\
121 | .ace-merbivore-soft .ace_indent-guide {\
122 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWOQkpLyZfD09PwPAAfYAnaStpHRAAAAAElFTkSuQmCC) right repeat-y;\
123 | }";
124 |
125 | var dom = require("../lib/dom");
126 | dom.importCssString(exports.cssText, exports.cssClass);
127 | });
128 |
--------------------------------------------------------------------------------
/lib/ace/theme-monokai.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/monokai', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-monokai";
35 | exports.cssText = ".ace-monokai .ace_gutter {\
36 | background: #2F3129;\
37 | color: #8F908A\
38 | }\
39 | .ace-monokai .ace_print-margin {\
40 | width: 1px;\
41 | background: #555651\
42 | }\
43 | .ace-monokai {\
44 | background-color: #272822;\
45 | color: #F8F8F2\
46 | }\
47 | .ace-monokai .ace_cursor {\
48 | color: #F8F8F0\
49 | }\
50 | .ace-monokai .ace_marker-layer .ace_selection {\
51 | background: #49483E\
52 | }\
53 | .ace-monokai.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #272822;\
55 | border-radius: 2px\
56 | }\
57 | .ace-monokai .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-monokai .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #49483E\
63 | }\
64 | .ace-monokai .ace_marker-layer .ace_active-line {\
65 | background: #202020\
66 | }\
67 | .ace-monokai .ace_gutter-active-line {\
68 | background-color: #272727\
69 | }\
70 | .ace-monokai .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #49483E\
72 | }\
73 | .ace-monokai .ace_invisible {\
74 | color: #52524d\
75 | }\
76 | .ace-monokai .ace_entity.ace_name.ace_tag,\
77 | .ace-monokai .ace_keyword,\
78 | .ace-monokai .ace_meta.ace_tag,\
79 | .ace-monokai .ace_storage {\
80 | color: #F92672\
81 | }\
82 | .ace-monokai .ace_punctuation,\
83 | .ace-monokai .ace_punctuation.ace_tag {\
84 | color: #fff\
85 | }\
86 | .ace-monokai .ace_constant.ace_character,\
87 | .ace-monokai .ace_constant.ace_language,\
88 | .ace-monokai .ace_constant.ace_numeric,\
89 | .ace-monokai .ace_constant.ace_other {\
90 | color: #AE81FF\
91 | }\
92 | .ace-monokai .ace_invalid {\
93 | color: #F8F8F0;\
94 | background-color: #F92672\
95 | }\
96 | .ace-monokai .ace_invalid.ace_deprecated {\
97 | color: #F8F8F0;\
98 | background-color: #AE81FF\
99 | }\
100 | .ace-monokai .ace_support.ace_constant,\
101 | .ace-monokai .ace_support.ace_function {\
102 | color: #66D9EF\
103 | }\
104 | .ace-monokai .ace_fold {\
105 | background-color: #A6E22E;\
106 | border-color: #F8F8F2\
107 | }\
108 | .ace-monokai .ace_storage.ace_type,\
109 | .ace-monokai .ace_support.ace_class,\
110 | .ace-monokai .ace_support.ace_type {\
111 | font-style: italic;\
112 | color: #66D9EF\
113 | }\
114 | .ace-monokai .ace_entity.ace_name.ace_function,\
115 | .ace-monokai .ace_entity.ace_other,\
116 | .ace-monokai .ace_entity.ace_other.ace_attribute-name,\
117 | .ace-monokai .ace_variable {\
118 | color: #A6E22E\
119 | }\
120 | .ace-monokai .ace_variable.ace_parameter {\
121 | font-style: italic;\
122 | color: #FD971F\
123 | }\
124 | .ace-monokai .ace_string {\
125 | color: #E6DB74\
126 | }\
127 | .ace-monokai .ace_comment {\
128 | color: #75715E\
129 | }\
130 | .ace-monokai .ace_indent-guide {\
131 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y;\
132 | }";
133 |
134 | var dom = require("../lib/dom");
135 | dom.importCssString(exports.cssText, exports.cssClass);
136 | });
137 |
--------------------------------------------------------------------------------
/lib/ace/theme-pastel_on_dark.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/pastel_on_dark', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-pastel-on-dark";
35 | exports.cssText = ".ace-pastel-on-dark .ace_gutter {\
36 | background: #353030;\
37 | color: #8F938F\
38 | }\
39 | .ace-pastel-on-dark .ace_print-margin {\
40 | width: 1px;\
41 | background: #353030\
42 | }\
43 | .ace-pastel-on-dark {\
44 | background-color: #2C2828;\
45 | color: #8F938F\
46 | }\
47 | .ace-pastel-on-dark .ace_cursor {\
48 | color: #A7A7A7\
49 | }\
50 | .ace-pastel-on-dark .ace_marker-layer .ace_selection {\
51 | background: rgba(221, 240, 255, 0.20)\
52 | }\
53 | .ace-pastel-on-dark.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #2C2828;\
55 | border-radius: 2px\
56 | }\
57 | .ace-pastel-on-dark .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-pastel-on-dark .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid rgba(255, 255, 255, 0.25)\
63 | }\
64 | .ace-pastel-on-dark .ace_marker-layer .ace_active-line {\
65 | background: rgba(255, 255, 255, 0.031)\
66 | }\
67 | .ace-pastel-on-dark .ace_gutter-active-line {\
68 | background-color: rgba(255, 255, 255, 0.031)\
69 | }\
70 | .ace-pastel-on-dark .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid rgba(221, 240, 255, 0.20)\
72 | }\
73 | .ace-pastel-on-dark .ace_invisible {\
74 | color: rgba(255, 255, 255, 0.25)\
75 | }\
76 | .ace-pastel-on-dark .ace_keyword,\
77 | .ace-pastel-on-dark .ace_meta {\
78 | color: #757aD8\
79 | }\
80 | .ace-pastel-on-dark .ace_constant,\
81 | .ace-pastel-on-dark .ace_constant.ace_character,\
82 | .ace-pastel-on-dark .ace_constant.ace_character.ace_escape,\
83 | .ace-pastel-on-dark .ace_constant.ace_other {\
84 | color: #4FB7C5\
85 | }\
86 | .ace-pastel-on-dark .ace_keyword.ace_operator {\
87 | color: #797878\
88 | }\
89 | .ace-pastel-on-dark .ace_constant.ace_character {\
90 | color: #AFA472\
91 | }\
92 | .ace-pastel-on-dark .ace_constant.ace_language {\
93 | color: #DE8E30\
94 | }\
95 | .ace-pastel-on-dark .ace_constant.ace_numeric {\
96 | color: #CCCCCC\
97 | }\
98 | .ace-pastel-on-dark .ace_invalid,\
99 | .ace-pastel-on-dark .ace_invalid.ace_illegal {\
100 | color: #F8F8F8;\
101 | background-color: rgba(86, 45, 86, 0.75)\
102 | }\
103 | .ace-pastel-on-dark .ace_invalid.ace_deprecated {\
104 | text-decoration: underline;\
105 | font-style: italic;\
106 | color: #D2A8A1\
107 | }\
108 | .ace-pastel-on-dark .ace_fold {\
109 | background-color: #757aD8;\
110 | border-color: #8F938F\
111 | }\
112 | .ace-pastel-on-dark .ace_support.ace_function {\
113 | color: #AEB2F8\
114 | }\
115 | .ace-pastel-on-dark .ace_string {\
116 | color: #66A968\
117 | }\
118 | .ace-pastel-on-dark .ace_string.ace_regexp {\
119 | color: #E9C062\
120 | }\
121 | .ace-pastel-on-dark .ace_comment {\
122 | color: #A6C6FF\
123 | }\
124 | .ace-pastel-on-dark .ace_variable {\
125 | color: #BEBF55\
126 | }\
127 | .ace-pastel-on-dark .ace_variable.ace_language {\
128 | color: #C1C144\
129 | }\
130 | .ace-pastel-on-dark .ace_xml-pe {\
131 | color: #494949\
132 | }\
133 | .ace-pastel-on-dark .ace_indent-guide {\
134 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYIiPj/8PAARgAh2NTMh8AAAAAElFTkSuQmCC) right repeat-y;\
135 | }";
136 |
137 | var dom = require("../lib/dom");
138 | dom.importCssString(exports.cssText, exports.cssClass);
139 | });
140 |
--------------------------------------------------------------------------------
/lib/ace/theme-solarized_dark.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/solarized_dark', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-solarized-dark";
35 | exports.cssText = ".ace-solarized-dark .ace_gutter {\
36 | background: #01313f;\
37 | color: #d0edf7\
38 | }\
39 | .ace-solarized-dark .ace_print-margin {\
40 | width: 1px;\
41 | background: #33555E\
42 | }\
43 | .ace-solarized-dark {\
44 | background-color: #002B36;\
45 | color: #93A1A1\
46 | }\
47 | .ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,\
48 | .ace-solarized-dark .ace_storage {\
49 | color: #93A1A1\
50 | }\
51 | .ace-solarized-dark .ace_cursor {\
52 | color: #D30102\
53 | }\
54 | .ace-solarized-dark .ace_marker-layer .ace_active-line,\
55 | .ace-solarized-dark .ace_marker-layer .ace_selection {\
56 | background: rgba(255, 255, 255, 0.1)\
57 | }\
58 | .ace-solarized-dark.ace_multiselect .ace_selection.ace_start {\
59 | box-shadow: 0 0 3px 0px #002B36;\
60 | border-radius: 2px\
61 | }\
62 | .ace-solarized-dark .ace_marker-layer .ace_step {\
63 | background: rgb(102, 82, 0)\
64 | }\
65 | .ace-solarized-dark .ace_marker-layer .ace_bracket {\
66 | margin: -1px 0 0 -1px;\
67 | border: 1px solid rgba(147, 161, 161, 0.50)\
68 | }\
69 | .ace-solarized-dark .ace_gutter-active-line {\
70 | background-color: #0d3440\
71 | }\
72 | .ace-solarized-dark .ace_marker-layer .ace_selected-word {\
73 | border: 1px solid #073642\
74 | }\
75 | .ace-solarized-dark .ace_invisible {\
76 | color: rgba(147, 161, 161, 0.50)\
77 | }\
78 | .ace-solarized-dark .ace_keyword,\
79 | .ace-solarized-dark .ace_meta,\
80 | .ace-solarized-dark .ace_support.ace_class,\
81 | .ace-solarized-dark .ace_support.ace_type {\
82 | color: #859900\
83 | }\
84 | .ace-solarized-dark .ace_constant.ace_character,\
85 | .ace-solarized-dark .ace_constant.ace_other {\
86 | color: #CB4B16\
87 | }\
88 | .ace-solarized-dark .ace_constant.ace_language {\
89 | color: #B58900\
90 | }\
91 | .ace-solarized-dark .ace_constant.ace_numeric {\
92 | color: #D33682\
93 | }\
94 | .ace-solarized-dark .ace_fold {\
95 | background-color: #268BD2;\
96 | border-color: #93A1A1\
97 | }\
98 | .ace-solarized-dark .ace_entity.ace_name.ace_function,\
99 | .ace-solarized-dark .ace_entity.ace_name.ace_tag,\
100 | .ace-solarized-dark .ace_support.ace_function,\
101 | .ace-solarized-dark .ace_variable,\
102 | .ace-solarized-dark .ace_variable.ace_language {\
103 | color: #268BD2\
104 | }\
105 | .ace-solarized-dark .ace_string {\
106 | color: #2AA198\
107 | }\
108 | .ace-solarized-dark .ace_string.ace_regexp {\
109 | color: #D30102\
110 | }\
111 | .ace-solarized-dark .ace_comment {\
112 | font-style: italic;\
113 | color: #657B83\
114 | }\
115 | .ace-solarized-dark .ace_indent-guide {\
116 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNg0Db1ZVCxc/sPAAd4AlUHlLenAAAAAElFTkSuQmCC) right repeat-y;\
117 | }";
118 |
119 | var dom = require("../lib/dom");
120 | dom.importCssString(exports.cssText, exports.cssClass);
121 | });
122 |
--------------------------------------------------------------------------------
/lib/ace/theme-solarized_light.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/solarized_light', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-solarized-light";
35 | exports.cssText = ".ace-solarized-light .ace_gutter {\
36 | background: #fbf1d3;\
37 | color: #333\
38 | }\
39 | .ace-solarized-light .ace_print-margin {\
40 | width: 1px;\
41 | background: #e8e8e8\
42 | }\
43 | .ace-solarized-light {\
44 | background-color: #FDF6E3;\
45 | color: #586E75\
46 | }\
47 | .ace-solarized-light .ace_cursor {\
48 | color: #000000\
49 | }\
50 | .ace-solarized-light .ace_marker-layer .ace_selection {\
51 | background: rgba(7, 54, 67, 0.09)\
52 | }\
53 | .ace-solarized-light.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #FDF6E3;\
55 | border-radius: 2px\
56 | }\
57 | .ace-solarized-light .ace_marker-layer .ace_step {\
58 | background: rgb(255, 255, 0)\
59 | }\
60 | .ace-solarized-light .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid rgba(147, 161, 161, 0.50)\
63 | }\
64 | .ace-solarized-light .ace_marker-layer .ace_active-line {\
65 | background: #EEE8D5\
66 | }\
67 | .ace-solarized-light .ace_gutter-active-line {\
68 | background-color : #EDE5C1\
69 | }\
70 | .ace-solarized-light .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #073642\
72 | }\
73 | .ace-solarized-light .ace_invisible {\
74 | color: rgba(147, 161, 161, 0.50)\
75 | }\
76 | .ace-solarized-light .ace_keyword,\
77 | .ace-solarized-light .ace_meta,\
78 | .ace-solarized-light .ace_support.ace_class,\
79 | .ace-solarized-light .ace_support.ace_type {\
80 | color: #859900\
81 | }\
82 | .ace-solarized-light .ace_constant.ace_character,\
83 | .ace-solarized-light .ace_constant.ace_other {\
84 | color: #CB4B16\
85 | }\
86 | .ace-solarized-light .ace_constant.ace_language {\
87 | color: #B58900\
88 | }\
89 | .ace-solarized-light .ace_constant.ace_numeric {\
90 | color: #D33682\
91 | }\
92 | .ace-solarized-light .ace_fold {\
93 | background-color: #268BD2;\
94 | border-color: #586E75\
95 | }\
96 | .ace-solarized-light .ace_entity.ace_name.ace_function,\
97 | .ace-solarized-light .ace_entity.ace_name.ace_tag,\
98 | .ace-solarized-light .ace_support.ace_function,\
99 | .ace-solarized-light .ace_variable,\
100 | .ace-solarized-light .ace_variable.ace_language {\
101 | color: #268BD2\
102 | }\
103 | .ace-solarized-light .ace_storage {\
104 | color: #073642\
105 | }\
106 | .ace-solarized-light .ace_string {\
107 | color: #2AA198\
108 | }\
109 | .ace-solarized-light .ace_string.ace_regexp {\
110 | color: #D30102\
111 | }\
112 | .ace-solarized-light .ace_comment,\
113 | .ace-solarized-light .ace_entity.ace_other.ace_attribute-name {\
114 | color: #93A1A1\
115 | }\
116 | .ace-solarized-light .ace_indent-guide {\
117 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHjy8NJ/AAjgA5fzQUmBAAAAAElFTkSuQmCC) right repeat-y;\
118 | }";
119 |
120 | var dom = require("../lib/dom");
121 | dom.importCssString(exports.cssText, exports.cssClass);
122 | });
123 |
--------------------------------------------------------------------------------
/lib/ace/theme-textmate.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/textmate', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 |
34 | exports.isDark = false;
35 | exports.cssClass = "ace-tm";
36 | exports.cssText = ".ace-tm .ace_gutter {\
37 | background: #f0f0f0;\
38 | color: #333;\
39 | }\
40 | .ace-tm .ace_print-margin {\
41 | width: 1px;\
42 | background: #e8e8e8;\
43 | }\
44 | .ace-tm .ace_fold {\
45 | background-color: #6B72E6;\
46 | }\
47 | .ace-tm {\
48 | background-color: #FFFFFF;\
49 | }\
50 | .ace-tm .ace_cursor {\
51 | color: black;\
52 | }\
53 | .ace-tm .ace_invisible {\
54 | color: rgb(191, 191, 191);\
55 | }\
56 | .ace-tm .ace_storage,\
57 | .ace-tm .ace_keyword {\
58 | color: blue;\
59 | }\
60 | .ace-tm .ace_constant {\
61 | color: rgb(197, 6, 11);\
62 | }\
63 | .ace-tm .ace_constant.ace_buildin {\
64 | color: rgb(88, 72, 246);\
65 | }\
66 | .ace-tm .ace_constant.ace_language {\
67 | color: rgb(88, 92, 246);\
68 | }\
69 | .ace-tm .ace_constant.ace_library {\
70 | color: rgb(6, 150, 14);\
71 | }\
72 | .ace-tm .ace_invalid {\
73 | background-color: rgba(255, 0, 0, 0.1);\
74 | color: red;\
75 | }\
76 | .ace-tm .ace_support.ace_function {\
77 | color: rgb(60, 76, 114);\
78 | }\
79 | .ace-tm .ace_support.ace_constant {\
80 | color: rgb(6, 150, 14);\
81 | }\
82 | .ace-tm .ace_support.ace_type,\
83 | .ace-tm .ace_support.ace_class {\
84 | color: rgb(109, 121, 222);\
85 | }\
86 | .ace-tm .ace_keyword.ace_operator {\
87 | color: rgb(104, 118, 135);\
88 | }\
89 | .ace-tm .ace_string {\
90 | color: rgb(3, 106, 7);\
91 | }\
92 | .ace-tm .ace_comment {\
93 | color: rgb(76, 136, 107);\
94 | }\
95 | .ace-tm .ace_comment.ace_doc {\
96 | color: rgb(0, 102, 255);\
97 | }\
98 | .ace-tm .ace_comment.ace_doc.ace_tag {\
99 | color: rgb(128, 159, 191);\
100 | }\
101 | .ace-tm .ace_constant.ace_numeric {\
102 | color: rgb(0, 0, 205);\
103 | }\
104 | .ace-tm .ace_variable {\
105 | color: rgb(49, 132, 149);\
106 | }\
107 | .ace-tm .ace_xml-pe {\
108 | color: rgb(104, 104, 91);\
109 | }\
110 | .ace-tm .ace_entity.ace_name.ace_function {\
111 | color: #0000A2;\
112 | }\
113 | .ace-tm .ace_heading {\
114 | color: rgb(12, 7, 255);\
115 | }\
116 | .ace-tm .ace_list {\
117 | color:rgb(185, 6, 144);\
118 | }\
119 | .ace-tm .ace_meta.ace_tag {\
120 | color:rgb(0, 22, 142);\
121 | }\
122 | .ace-tm .ace_string.ace_regex {\
123 | color: rgb(255, 0, 0)\
124 | }\
125 | .ace-tm .ace_marker-layer .ace_selection {\
126 | background: rgb(181, 213, 255);\
127 | }\
128 | .ace-tm.ace_multiselect .ace_selection.ace_start {\
129 | box-shadow: 0 0 3px 0px white;\
130 | border-radius: 2px;\
131 | }\
132 | .ace-tm .ace_marker-layer .ace_step {\
133 | background: rgb(252, 255, 0);\
134 | }\
135 | .ace-tm .ace_marker-layer .ace_stack {\
136 | background: rgb(164, 229, 101);\
137 | }\
138 | .ace-tm .ace_marker-layer .ace_bracket {\
139 | margin: -1px 0 0 -1px;\
140 | border: 1px solid rgb(192, 192, 192);\
141 | }\
142 | .ace-tm .ace_marker-layer .ace_active-line {\
143 | background: rgba(0, 0, 0, 0.07);\
144 | }\
145 | .ace-tm .ace_gutter-active-line {\
146 | background-color : #dcdcdc;\
147 | }\
148 | .ace-tm .ace_marker-layer .ace_selected-word {\
149 | background: rgb(250, 250, 255);\
150 | border: 1px solid rgb(200, 200, 250);\
151 | }\
152 | .ace-tm .ace_indent-guide {\
153 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
154 | }\
155 | ";
156 |
157 | var dom = require("../lib/dom");
158 | dom.importCssString(exports.cssText, exports.cssClass);
159 | });
160 |
--------------------------------------------------------------------------------
/lib/ace/theme-tomorrow.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/tomorrow', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-tomorrow";
35 | exports.cssText = ".ace-tomorrow .ace_gutter {\
36 | background: #f6f6f6;\
37 | color: #4D4D4C\
38 | }\
39 | .ace-tomorrow .ace_print-margin {\
40 | width: 1px;\
41 | background: #f6f6f6\
42 | }\
43 | .ace-tomorrow {\
44 | background-color: #FFFFFF;\
45 | color: #4D4D4C\
46 | }\
47 | .ace-tomorrow .ace_cursor {\
48 | color: #AEAFAD\
49 | }\
50 | .ace-tomorrow .ace_marker-layer .ace_selection {\
51 | background: #D6D6D6\
52 | }\
53 | .ace-tomorrow.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #FFFFFF;\
55 | border-radius: 2px\
56 | }\
57 | .ace-tomorrow .ace_marker-layer .ace_step {\
58 | background: rgb(255, 255, 0)\
59 | }\
60 | .ace-tomorrow .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #D1D1D1\
63 | }\
64 | .ace-tomorrow .ace_marker-layer .ace_active-line {\
65 | background: #EFEFEF\
66 | }\
67 | .ace-tomorrow .ace_gutter-active-line {\
68 | background-color : #dcdcdc\
69 | }\
70 | .ace-tomorrow .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #D6D6D6\
72 | }\
73 | .ace-tomorrow .ace_invisible {\
74 | color: #D1D1D1\
75 | }\
76 | .ace-tomorrow .ace_keyword,\
77 | .ace-tomorrow .ace_meta,\
78 | .ace-tomorrow .ace_storage,\
79 | .ace-tomorrow .ace_storage.ace_type,\
80 | .ace-tomorrow .ace_support.ace_type {\
81 | color: #8959A8\
82 | }\
83 | .ace-tomorrow .ace_keyword.ace_operator {\
84 | color: #3E999F\
85 | }\
86 | .ace-tomorrow .ace_constant.ace_character,\
87 | .ace-tomorrow .ace_constant.ace_language,\
88 | .ace-tomorrow .ace_constant.ace_numeric,\
89 | .ace-tomorrow .ace_keyword.ace_other.ace_unit,\
90 | .ace-tomorrow .ace_support.ace_constant,\
91 | .ace-tomorrow .ace_variable.ace_parameter {\
92 | color: #F5871F\
93 | }\
94 | .ace-tomorrow .ace_constant.ace_other {\
95 | color: #666969\
96 | }\
97 | .ace-tomorrow .ace_invalid {\
98 | color: #FFFFFF;\
99 | background-color: #C82829\
100 | }\
101 | .ace-tomorrow .ace_invalid.ace_deprecated {\
102 | color: #FFFFFF;\
103 | background-color: #8959A8\
104 | }\
105 | .ace-tomorrow .ace_fold {\
106 | background-color: #4271AE;\
107 | border-color: #4D4D4C\
108 | }\
109 | .ace-tomorrow .ace_entity.ace_name.ace_function,\
110 | .ace-tomorrow .ace_support.ace_function,\
111 | .ace-tomorrow .ace_variable {\
112 | color: #4271AE\
113 | }\
114 | .ace-tomorrow .ace_support.ace_class,\
115 | .ace-tomorrow .ace_support.ace_type {\
116 | color: #C99E00\
117 | }\
118 | .ace-tomorrow .ace_heading,\
119 | .ace-tomorrow .ace_string {\
120 | color: #718C00\
121 | }\
122 | .ace-tomorrow .ace_entity.ace_name.ace_tag,\
123 | .ace-tomorrow .ace_entity.ace_other.ace_attribute-name,\
124 | .ace-tomorrow .ace_meta.ace_tag,\
125 | .ace-tomorrow .ace_string.ace_regexp,\
126 | .ace-tomorrow .ace_variable {\
127 | color: #C82829\
128 | }\
129 | .ace-tomorrow .ace_comment {\
130 | color: #8E908C\
131 | }\
132 | .ace-tomorrow .ace_indent-guide {\
133 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y\
134 | }";
135 |
136 | var dom = require("../lib/dom");
137 | dom.importCssString(exports.cssText, exports.cssClass);
138 | });
139 |
--------------------------------------------------------------------------------
/lib/ace/theme-tomorrow_night.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/tomorrow_night', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-tomorrow-night";
35 | exports.cssText = ".ace-tomorrow-night .ace_gutter {\
36 | background: #25282c;\
37 | color: #C5C8C6\
38 | }\
39 | .ace-tomorrow-night .ace_print-margin {\
40 | width: 1px;\
41 | background: #25282c\
42 | }\
43 | .ace-tomorrow-night {\
44 | background-color: #1D1F21;\
45 | color: #C5C8C6\
46 | }\
47 | .ace-tomorrow-night .ace_cursor {\
48 | color: #AEAFAD\
49 | }\
50 | .ace-tomorrow-night .ace_marker-layer .ace_selection {\
51 | background: #373B41\
52 | }\
53 | .ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #1D1F21;\
55 | border-radius: 2px\
56 | }\
57 | .ace-tomorrow-night .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-tomorrow-night .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #4B4E55\
63 | }\
64 | .ace-tomorrow-night .ace_marker-layer .ace_active-line {\
65 | background: #282A2E\
66 | }\
67 | .ace-tomorrow-night .ace_gutter-active-line {\
68 | background-color: #282A2E\
69 | }\
70 | .ace-tomorrow-night .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #373B41\
72 | }\
73 | .ace-tomorrow-night .ace_invisible {\
74 | color: #4B4E55\
75 | }\
76 | .ace-tomorrow-night .ace_keyword,\
77 | .ace-tomorrow-night .ace_meta,\
78 | .ace-tomorrow-night .ace_storage,\
79 | .ace-tomorrow-night .ace_storage.ace_type,\
80 | .ace-tomorrow-night .ace_support.ace_type {\
81 | color: #B294BB\
82 | }\
83 | .ace-tomorrow-night .ace_keyword.ace_operator {\
84 | color: #8ABEB7\
85 | }\
86 | .ace-tomorrow-night .ace_constant.ace_character,\
87 | .ace-tomorrow-night .ace_constant.ace_language,\
88 | .ace-tomorrow-night .ace_constant.ace_numeric,\
89 | .ace-tomorrow-night .ace_keyword.ace_other.ace_unit,\
90 | .ace-tomorrow-night .ace_support.ace_constant,\
91 | .ace-tomorrow-night .ace_variable.ace_parameter {\
92 | color: #DE935F\
93 | }\
94 | .ace-tomorrow-night .ace_constant.ace_other {\
95 | color: #CED1CF\
96 | }\
97 | .ace-tomorrow-night .ace_invalid {\
98 | color: #CED2CF;\
99 | background-color: #DF5F5F\
100 | }\
101 | .ace-tomorrow-night .ace_invalid.ace_deprecated {\
102 | color: #CED2CF;\
103 | background-color: #B798BF\
104 | }\
105 | .ace-tomorrow-night .ace_fold {\
106 | background-color: #81A2BE;\
107 | border-color: #C5C8C6\
108 | }\
109 | .ace-tomorrow-night .ace_entity.ace_name.ace_function,\
110 | .ace-tomorrow-night .ace_support.ace_function,\
111 | .ace-tomorrow-night .ace_variable {\
112 | color: #81A2BE\
113 | }\
114 | .ace-tomorrow-night .ace_support.ace_class,\
115 | .ace-tomorrow-night .ace_support.ace_type {\
116 | color: #F0C674\
117 | }\
118 | .ace-tomorrow-night .ace_heading,\
119 | .ace-tomorrow-night .ace_string {\
120 | color: #B5BD68\
121 | }\
122 | .ace-tomorrow-night .ace_entity.ace_name.ace_tag,\
123 | .ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,\
124 | .ace-tomorrow-night .ace_meta.ace_tag,\
125 | .ace-tomorrow-night .ace_string.ace_regexp,\
126 | .ace-tomorrow-night .ace_variable {\
127 | color: #CC6666\
128 | }\
129 | .ace-tomorrow-night .ace_comment {\
130 | color: #969896\
131 | }\
132 | .ace-tomorrow-night .ace_indent-guide {\
133 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y;\
134 | }";
135 |
136 | var dom = require("../lib/dom");
137 | dom.importCssString(exports.cssText, exports.cssClass);
138 | });
139 |
--------------------------------------------------------------------------------
/lib/ace/theme-twilight.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/twilight', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-twilight";
35 | exports.cssText = ".ace-twilight .ace_gutter {\
36 | background: #232323;\
37 | color: #E2E2E2\
38 | }\
39 | .ace-twilight .ace_print-margin {\
40 | width: 1px;\
41 | background: #232323\
42 | }\
43 | .ace-twilight {\
44 | background-color: #141414;\
45 | color: #F8F8F8\
46 | }\
47 | .ace-twilight .ace_cursor {\
48 | color: #A7A7A7\
49 | }\
50 | .ace-twilight .ace_marker-layer .ace_selection {\
51 | background: rgba(221, 240, 255, 0.20)\
52 | }\
53 | .ace-twilight.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #141414;\
55 | border-radius: 2px\
56 | }\
57 | .ace-twilight .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-twilight .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid rgba(255, 255, 255, 0.25)\
63 | }\
64 | .ace-twilight .ace_marker-layer .ace_active-line {\
65 | background: rgba(255, 255, 255, 0.031)\
66 | }\
67 | .ace-twilight .ace_gutter-active-line {\
68 | background-color: rgba(255, 255, 255, 0.031)\
69 | }\
70 | .ace-twilight .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid rgba(221, 240, 255, 0.20)\
72 | }\
73 | .ace-twilight .ace_invisible {\
74 | color: rgba(255, 255, 255, 0.25)\
75 | }\
76 | .ace-twilight .ace_keyword,\
77 | .ace-twilight .ace_meta {\
78 | color: #CDA869\
79 | }\
80 | .ace-twilight .ace_constant,\
81 | .ace-twilight .ace_constant.ace_character,\
82 | .ace-twilight .ace_constant.ace_character.ace_escape,\
83 | .ace-twilight .ace_constant.ace_other,\
84 | .ace-twilight .ace_heading,\
85 | .ace-twilight .ace_support.ace_constant {\
86 | color: #CF6A4C\
87 | }\
88 | .ace-twilight .ace_invalid.ace_illegal {\
89 | color: #F8F8F8;\
90 | background-color: rgba(86, 45, 86, 0.75)\
91 | }\
92 | .ace-twilight .ace_invalid.ace_deprecated {\
93 | text-decoration: underline;\
94 | font-style: italic;\
95 | color: #D2A8A1\
96 | }\
97 | .ace-twilight .ace_support {\
98 | color: #9B859D\
99 | }\
100 | .ace-twilight .ace_fold {\
101 | background-color: #AC885B;\
102 | border-color: #F8F8F8\
103 | }\
104 | .ace-twilight .ace_support.ace_function {\
105 | color: #DAD085\
106 | }\
107 | .ace-twilight .ace_list,\
108 | .ace-twilight .ace_storage {\
109 | color: #F9EE98\
110 | }\
111 | .ace-twilight .ace_entity.ace_name.ace_function,\
112 | .ace-twilight .ace_meta.ace_tag,\
113 | .ace-twilight .ace_variable {\
114 | color: #AC885B\
115 | }\
116 | .ace-twilight .ace_string {\
117 | color: #8F9D6A\
118 | }\
119 | .ace-twilight .ace_string.ace_regexp {\
120 | color: #E9C062\
121 | }\
122 | .ace-twilight .ace_comment {\
123 | font-style: italic;\
124 | color: #5F5A60\
125 | }\
126 | .ace-twilight .ace_variable {\
127 | color: #7587A6\
128 | }\
129 | .ace-twilight .ace_xml-pe {\
130 | color: #494949\
131 | }\
132 | .ace-twilight .ace_indent-guide {\
133 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y;\
134 | }";
135 |
136 | var dom = require("../lib/dom");
137 | dom.importCssString(exports.cssText, exports.cssClass);
138 | });
139 |
--------------------------------------------------------------------------------
/lib/ace/theme-vibrant_ink.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/vibrant_ink', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = true;
34 | exports.cssClass = "ace-vibrant-ink";
35 | exports.cssText = ".ace-vibrant-ink .ace_gutter {\
36 | background: #1a1a1a;\
37 | color: #BEBEBE\
38 | }\
39 | .ace-vibrant-ink .ace_print-margin {\
40 | width: 1px;\
41 | background: #1a1a1a\
42 | }\
43 | .ace-vibrant-ink {\
44 | background-color: #0F0F0F;\
45 | color: #FFFFFF\
46 | }\
47 | .ace-vibrant-ink .ace_cursor {\
48 | color: #FFFFFF\
49 | }\
50 | .ace-vibrant-ink .ace_marker-layer .ace_selection {\
51 | background: #6699CC\
52 | }\
53 | .ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {\
54 | box-shadow: 0 0 3px 0px #0F0F0F;\
55 | border-radius: 2px\
56 | }\
57 | .ace-vibrant-ink .ace_marker-layer .ace_step {\
58 | background: rgb(102, 82, 0)\
59 | }\
60 | .ace-vibrant-ink .ace_marker-layer .ace_bracket {\
61 | margin: -1px 0 0 -1px;\
62 | border: 1px solid #404040\
63 | }\
64 | .ace-vibrant-ink .ace_marker-layer .ace_active-line {\
65 | background: #333333\
66 | }\
67 | .ace-vibrant-ink .ace_gutter-active-line {\
68 | background-color: #333333\
69 | }\
70 | .ace-vibrant-ink .ace_marker-layer .ace_selected-word {\
71 | border: 1px solid #6699CC\
72 | }\
73 | .ace-vibrant-ink .ace_invisible {\
74 | color: #404040\
75 | }\
76 | .ace-vibrant-ink .ace_keyword,\
77 | .ace-vibrant-ink .ace_meta {\
78 | color: #FF6600\
79 | }\
80 | .ace-vibrant-ink .ace_constant,\
81 | .ace-vibrant-ink .ace_constant.ace_character,\
82 | .ace-vibrant-ink .ace_constant.ace_character.ace_escape,\
83 | .ace-vibrant-ink .ace_constant.ace_other {\
84 | color: #339999\
85 | }\
86 | .ace-vibrant-ink .ace_constant.ace_numeric {\
87 | color: #99CC99\
88 | }\
89 | .ace-vibrant-ink .ace_invalid,\
90 | .ace-vibrant-ink .ace_invalid.ace_deprecated {\
91 | color: #CCFF33;\
92 | background-color: #000000\
93 | }\
94 | .ace-vibrant-ink .ace_fold {\
95 | background-color: #FFCC00;\
96 | border-color: #FFFFFF\
97 | }\
98 | .ace-vibrant-ink .ace_entity.ace_name.ace_function,\
99 | .ace-vibrant-ink .ace_support.ace_function,\
100 | .ace-vibrant-ink .ace_variable {\
101 | color: #FFCC00\
102 | }\
103 | .ace-vibrant-ink .ace_variable.ace_parameter {\
104 | font-style: italic\
105 | }\
106 | .ace-vibrant-ink .ace_string {\
107 | color: #66FF00\
108 | }\
109 | .ace-vibrant-ink .ace_string.ace_regexp {\
110 | color: #44B4CC\
111 | }\
112 | .ace-vibrant-ink .ace_comment {\
113 | color: #9933CC\
114 | }\
115 | .ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name {\
116 | font-style: italic;\
117 | color: #99CC99\
118 | }\
119 | .ace-vibrant-ink .ace_indent-guide {\
120 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYNDTc/oPAALPAZ7hxlbYAAAAAElFTkSuQmCC) right repeat-y;\
121 | }";
122 |
123 | var dom = require("../lib/dom");
124 | dom.importCssString(exports.cssText, exports.cssClass);
125 | });
126 |
--------------------------------------------------------------------------------
/lib/ace/theme-xcode.js:
--------------------------------------------------------------------------------
1 | /* ***** BEGIN LICENSE BLOCK *****
2 | * Distributed under the BSD license:
3 | *
4 | * Copyright (c) 2010, Ajax.org B.V.
5 | * All rights reserved.
6 | *
7 | * Redistribution and use in source and binary forms, with or without
8 | * modification, are permitted provided that the following conditions are met:
9 | * * Redistributions of source code must retain the above copyright
10 | * notice, this list of conditions and the following disclaimer.
11 | * * Redistributions in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in the
13 | * documentation and/or other materials provided with the distribution.
14 | * * Neither the name of Ajax.org B.V. nor the
15 | * names of its contributors may be used to endorse or promote products
16 | * derived from this software without specific prior written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | *
29 | * ***** END LICENSE BLOCK ***** */
30 |
31 | ace.define('ace/theme/xcode', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32 |
33 | exports.isDark = false;
34 | exports.cssClass = "ace-xcode";
35 | exports.cssText = "/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: EE3AD170-2B7F-4DE1-B724-C75F13FE0085) */\
36 | .ace-xcode .ace_gutter {\
37 | background: #e8e8e8;\
38 | color: #333\
39 | }\
40 | .ace-xcode .ace_print-margin {\
41 | width: 1px;\
42 | background: #e8e8e8\
43 | }\
44 | .ace-xcode {\
45 | background-color: #FFFFFF;\
46 | color: #000000\
47 | }\
48 | .ace-xcode .ace_cursor {\
49 | color: #000000\
50 | }\
51 | .ace-xcode .ace_marker-layer .ace_selection {\
52 | background: #B5D5FF\
53 | }\
54 | .ace-xcode.ace_multiselect .ace_selection.ace_start {\
55 | box-shadow: 0 0 3px 0px #FFFFFF;\
56 | border-radius: 2px\
57 | }\
58 | .ace-xcode .ace_marker-layer .ace_step {\
59 | background: rgb(198, 219, 174)\
60 | }\
61 | .ace-xcode .ace_marker-layer .ace_bracket {\
62 | margin: -1px 0 0 -1px;\
63 | border: 1px solid #BFBFBF\
64 | }\
65 | .ace-xcode .ace_marker-layer .ace_active-line {\
66 | background: rgba(0, 0, 0, 0.071)\
67 | }\
68 | .ace-xcode .ace_gutter-active-line {\
69 | background-color: rgba(0, 0, 0, 0.071)\
70 | }\
71 | .ace-xcode .ace_marker-layer .ace_selected-word {\
72 | border: 1px solid #B5D5FF\
73 | }\
74 | .ace-xcode .ace_constant.ace_language,\
75 | .ace-xcode .ace_keyword,\
76 | .ace-xcode .ace_meta,\
77 | .ace-xcode .ace_variable.ace_language {\
78 | color: #C800A4\
79 | }\
80 | .ace-xcode .ace_invisible {\
81 | color: #BFBFBF\
82 | }\
83 | .ace-xcode .ace_constant.ace_character,\
84 | .ace-xcode .ace_constant.ace_other {\
85 | color: #275A5E\
86 | }\
87 | .ace-xcode .ace_constant.ace_numeric {\
88 | color: #3A00DC\
89 | }\
90 | .ace-xcode .ace_entity.ace_other.ace_attribute-name,\
91 | .ace-xcode .ace_support.ace_constant,\
92 | .ace-xcode .ace_support.ace_function {\
93 | color: #450084\
94 | }\
95 | .ace-xcode .ace_fold {\
96 | background-color: #C800A4;\
97 | border-color: #000000\
98 | }\
99 | .ace-xcode .ace_entity.ace_name.ace_tag,\
100 | .ace-xcode .ace_support.ace_class,\
101 | .ace-xcode .ace_support.ace_type {\
102 | color: #790EAD\
103 | }\
104 | .ace-xcode .ace_storage {\
105 | color: #C900A4\
106 | }\
107 | .ace-xcode .ace_string {\
108 | color: #DF0002\
109 | }\
110 | .ace-xcode .ace_comment {\
111 | color: #008E00\
112 | }\
113 | .ace-xcode .ace_indent-guide {\
114 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y\
115 | }";
116 |
117 | var dom = require("../lib/dom");
118 | dom.importCssString(exports.cssText, exports.cssClass);
119 | });
120 |
--------------------------------------------------------------------------------
/styles.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color : #323232;
3 | }
4 |
5 | #editor {
6 | position: absolute;
7 | top: 55px;
8 | right: 0;
9 | bottom: 208px;
10 | left: 0;
11 | }
12 |
13 | /* Navbar / Run button bar */
14 | #navbar {
15 | position: absolute;
16 | top: 0;
17 | right: 0;
18 | left : 0;
19 | height: 44px;
20 | background-color:#3B3B3B;
21 | -webkit-box-shadow: 0px 6px 5px 0px rgba(0,0,0,0.75);
22 | -moz-box-shadow: 0px 6px 5px 0px rgba(0,0,0,0.75);
23 | box-shadow: 0px 6px 5px 0px rgba(0,0,0,0.75);
24 | }
25 |
26 | #runbtn {
27 | position: absolute;
28 | height : 80%;
29 | left : 0;
30 | }
31 |
32 | #clearbtn {
33 | position: absolute;
34 | height : 24px;
35 | right : 0;
36 | bottom: 0;
37 | z-index:1000000;
38 | }
39 |
40 | #examples {
41 | position: absolute;
42 | right : 0;
43 | }
44 |
45 | /* The console container element */
46 | #console {
47 | padding: 0px;
48 | margin:0px;
49 | position: absolute;
50 | right :0;
51 | height: 200px;
52 | bottom : 0;
53 | left : 0;
54 | background-color:black;
55 | border-top: 2px solid #3B3B3B;
56 | }
57 | /* The inner console element. */
58 | .jqconsole {
59 | padding: 0px;
60 | padding-left:2px;
61 | margin:0px;
62 | }
63 | /* The cursor. */
64 | .jqconsole-cursor {
65 | background-color: gray;
66 | }
67 | /* The cursor color when the console looses focus. */
68 | .jqconsole-blurred .jqconsole-cursor {
69 | background-color: #666;
70 | }
71 | /* The current prompt text color */
72 | .jqconsole-prompt {
73 | color: #0d0;
74 | }
75 | /* The command history */
76 | .jqconsole-old-prompt {
77 | color: #0b0;
78 | font-weight: normal;
79 | }
80 | /* The text color when in input mode. */
81 | .jqconsole-input {
82 | color: #dd0;
83 | }
84 | /* Previously entered input. */
85 | .jqconsole-old-input {
86 | color: #bb0;
87 | font-weight: normal;
88 | }
89 | /* The text color of the output. */
90 | .jqconsole-output {
91 | color: white;
92 | }
--------------------------------------------------------------------------------