├── .github └── FUNDING.yml ├── .gitignore ├── CONTRIBUTING.md ├── DOCUMENTATION.md ├── LICENSE ├── README.md ├── credentials.templ.json ├── images ├── 1.png └── 2.png ├── index.js ├── package.json ├── public ├── ace │ ├── ace.js │ ├── ext-chromevox.js │ ├── ext-elastic_tabstops_lite.js │ ├── ext-emmet.js │ ├── ext-error_marker.js │ ├── ext-keybinding_menu.js │ ├── ext-language_tools.js │ ├── ext-modelist.js │ ├── ext-old_ie.js │ ├── ext-options.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-apache_conf.js │ ├── mode-asciidoc.js │ ├── mode-assembly_x86.js │ ├── mode-autohotkey.js │ ├── mode-batchfile.js │ ├── mode-c9search.js │ ├── mode-c_cpp.js │ ├── mode-cirru.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-gherkin.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-mel.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-smarty.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-tmsnippet.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 │ │ ├── apache_conf.js │ │ ├── asciidoc.js │ │ ├── assembly_x86.js │ │ ├── autohotkey.js │ │ ├── batchfile.js │ │ ├── c9search.js │ │ ├── c_cpp.js │ │ ├── cirru.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 │ │ ├── gherkin.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 │ │ ├── mel.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 │ │ ├── smarty.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-katzenmilch.js │ ├── theme-kr.js │ ├── theme-kuroir.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-html.js │ ├── worker-javascript.js │ ├── worker-json.js │ ├── worker-lua.js │ ├── worker-php.js │ └── worker-xquery.js ├── html │ └── index.html └── js │ └── main.js └── routes └── yt.js /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: ionicabizau 2 | patreon: ionicabizau 3 | open_collective: ionicabizau 4 | custom: https://www.buymeacoffee.com/h96wwchmy -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | *~ 4 | *.log 5 | node_modules 6 | *.env 7 | .DS_Store 8 | package-lock.json 9 | .bloggify/* 10 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # 🌟 Contributing 2 | 3 | Want to contribute to this project? Great! Please read these quick steps to streamline the process and avoid unnecessary tasks. ✨ 4 | 5 | ## 💬 Discuss Changes 6 | Start by opening an issue in the repository using the [bug tracker][1]. Describe your proposed contribution or the bug you've found. If relevant, include platform info and screenshots. 🖼️ 7 | 8 | Wait for feedback before proceeding unless the fix is straightforward, like a typo. 📝 9 | 10 | ## 🔧 Fixing Issues 11 | 12 | Fork the project and create a branch for your fix, naming it `some-great-feature` or `some-issue-fix`. Commit changes while following the [code style][2]. If the project has tests, add one. ✅ 13 | 14 | If a `package.json` or `bower.json` exists, add yourself to the `contributors` array; create it if it doesn't. 🙌 15 | 16 | ```json 17 | { 18 | "contributors": [ 19 | "Your Name (http://your.website)" 20 | ] 21 | } 22 | ``` 23 | 24 | ## 📬 Creating a Pull Request 25 | Open a pull request and reference the initial issue (e.g., *fixes #*). Provide a clear title and consider adding visual aids for clarity. 📊 26 | 27 | ## ⏳ Wait for Feedback 28 | Your contributions will be reviewed. If feedback is given, update your branch as needed, and the pull request will auto-update. 🔄 29 | 30 | ## 🎉 Everyone Is Happy! 31 | Your contributions will be merged, and everyone will appreciate your effort! 😄❤️ 32 | 33 | Thanks! 🤩 34 | 35 | [1]: /issues 36 | [2]: https://github.com/IonicaBizau/code-style -------------------------------------------------------------------------------- /DOCUMENTATION.md: -------------------------------------------------------------------------------- 1 | ## Documentation 2 | 3 | You can see below the API reference of this module. 4 | 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013-25 Ionică Bizău (https://ionicabizau.net) 4 | 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 deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | 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 all 13 | 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 FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /credentials.templ.json: -------------------------------------------------------------------------------- 1 | { 2 | "web": { 3 | "client_id": "1038...75o0.apps.googleusercontent.com", 4 | "auth_uri": "https://accounts.google.com/o/oauth2/auth", 5 | "token_uri": "https://accounts.google.com/o/oauth2/token", 6 | "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", 7 | "client_email": "1038...75o0@developer.gserviceaccount.com", 8 | "client_secret": "ji...Cw", 9 | "redirect_uris": ["http://localhost:5000/oauth2callback"], 10 | "javascript_origins": ["http://localhost:5000"] 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IonicaBizau/test-youtube-api/3a160a2ce1ac0a80b2118d77494abc719f3e1907/images/1.png -------------------------------------------------------------------------------- /images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IonicaBizau/test-youtube-api/3a160a2ce1ac0a80b2118d77494abc719f3e1907/images/2.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // Dependencies 4 | 5 | var Youtube = require("youtube-api"), 6 | Lien = require("lien"), 7 | Logger = require("bug-killer"), 8 | opn = require("opn"), 9 | readJson = require("r-json"), 10 | path = require("path"), 11 | tryAsync = require("try-async"); 12 | 13 | var credentials = readJson(__dirname + "/credentials.json"); 14 | 15 | // Set ACCESS_TOKEN global as undefined 16 | var CREDENTIALS = readJson(__dirname + "/credentials.json"); 17 | 18 | // Init lien server 19 | var server = new Lien({ 20 | host: "localhost", 21 | port: 5000, 22 | public: __dirname + "/public" 23 | }); 24 | 25 | server.on("load", function (err) { 26 | if (err) throw err; 27 | opn("http://localhost:5000"); 28 | }); 29 | 30 | // Authenticate 31 | // You can access the Youtube resources via OAuth2 only. 32 | // https://developers.google.com/youtube/v3/guides/moving_to_oauth#service_accounts 33 | var oauth = Youtube.authenticate({ 34 | type: "oauth", 35 | client_id: CREDENTIALS.web.client_id, 36 | client_secret: CREDENTIALS.web.client_secret, 37 | redirect_url: CREDENTIALS.web.redirect_uris[0] 38 | }); 39 | 40 | var authDone = false; 41 | 42 | // Handle oauth2 callback 43 | server.addPage("/oauth2callback", function (lien) { 44 | oauth.getToken(lien.query.code, function (err, tokens) { 45 | 46 | if (err) { 47 | lien.lien(err, 400); 48 | return Logger.log(err); 49 | } 50 | 51 | oauth.setCredentials(tokens); 52 | authDone = true; 53 | 54 | lien.redirect("/"); 55 | }); 56 | }); 57 | 58 | server.addPage("/", function (lien) { 59 | if (!authDone) { 60 | return lien.redirect(oauth.generateAuthUrl({ 61 | access_type: "offline", 62 | scope: ["https://www.googleapis.com/auth/youtube"] 63 | })); 64 | } 65 | 66 | lien.file("html/index.html"); 67 | }); 68 | 69 | server.addPage("/api/run_code", "post", function (lien) { 70 | 71 | if (!authDone) { 72 | return lien.apiError("Please authenticate.", 403); 73 | } 74 | 75 | global.__api_run_code_callback = function (err, data) { 76 | if (err) { 77 | return lien.apiError(err); 78 | } 79 | return lien.end(data); 80 | }; 81 | 82 | var formData = lien.data.code.replace(/_CALLBACK/g, "__api_run_code_callback"); 83 | tryAsync(function () { 84 | eval(formData); 85 | }, function (err) { 86 | if (err) { 87 | return lien.end(err, 400); 88 | } 89 | }); 90 | }); -------------------------------------------------------------------------------- /public/ace/ext-error_marker.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | ; 4 | (function () { 5 | window.require(["ace/ext/error_marker"], function () {}); 6 | })(); -------------------------------------------------------------------------------- /public/ace/ext-spellcheck.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/ext/spellcheck', ['require', 'exports', 'module', 'ace/lib/event', 'ace/editor', 'ace/config'], function (require, exports, module) { 4 | 5 | var event = require("../lib/event"); 6 | 7 | exports.contextMenuHandler = function (e) { 8 | var host = e.target; 9 | var text = host.textInput.getElement(); 10 | if (!host.selection.isEmpty()) return; 11 | var c = host.getCursorPosition(); 12 | var r = host.session.getWordRange(c.row, c.column); 13 | var w = host.session.getTextRange(r); 14 | 15 | host.session.tokenRe.lastIndex = 0; 16 | if (!host.session.tokenRe.test(w)) 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) return ''; 33 | if (newVal.lastIndexOf(value, 0) === 0) return newVal.slice(value.length); 34 | if (newVal.substr(text.selectionEnd) == value) return newVal.slice(0, -value.length); 35 | if (newVal.slice(-2) == PLACEHOLDER) { 36 | var val = newVal.slice(0, -2); 37 | if (val.slice(-1) == " ") { 38 | if (afterKeydown) return val.substring(0, text.selectionEnd); 39 | val = val.slice(0, -1); 40 | host.session.replace(r, val); 41 | return ""; 42 | } 43 | } 44 | 45 | return newVal; 46 | }); 47 | }; 48 | var Editor = require("../editor").Editor; 49 | require("../config").defineOptions(Editor.prototype, "editor", { 50 | spellcheck: { 51 | set: function set(val) { 52 | var text = this.textInput.getElement(); 53 | text.spellcheck = !!val; 54 | if (!val) this.removeListener("nativecontextmenu", exports.contextMenuHandler);else this.on("nativecontextmenu", exports.contextMenuHandler); 55 | }, 56 | value: true 57 | } 58 | }); 59 | }); 60 | 61 | ; 62 | (function () { 63 | window.require(["ace/ext/spellcheck"], function () {}); 64 | })(); -------------------------------------------------------------------------------- /public/ace/ext-statusbar.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/ext/statusbar', ['require', 'exports', 'module', 'ace/lib/dom', 'ace/lib/lang'], function (require, exports, module) { 4 | var dom = require("ace/lib/dom"); 5 | var lang = require("ace/lib/lang"); 6 | 7 | var StatusBar = function StatusBar(editor, parentNode) { 8 | this.element = dom.createElement("div"); 9 | this.element.className = "ace_status-indicator"; 10 | this.element.style.cssText = "display: inline-block;"; 11 | parentNode.appendChild(this.element); 12 | 13 | var statusUpdate = lang.delayedCall(function () { 14 | this.updateStatus(editor); 15 | }.bind(this)); 16 | editor.on("changeStatus", function () { 17 | statusUpdate.schedule(100); 18 | }); 19 | editor.on("changeSelection", function () { 20 | statusUpdate.schedule(100); 21 | }); 22 | }; 23 | 24 | (function () { 25 | this.updateStatus = function (editor) { 26 | var status = []; 27 | function add(str, separator) { 28 | str && status.push(str, separator || "|"); 29 | } 30 | 31 | if (editor.$vimModeHandler) add(editor.$vimModeHandler.getStatusText());else if (editor.commands.recording) add("REC"); 32 | 33 | var c = editor.selection.lead; 34 | add(c.row + ":" + c.column, " "); 35 | if (!editor.selection.isEmpty()) { 36 | var r = editor.getSelectionRange(); 37 | add("(" + (r.end.row - r.start.row) + ":" + (r.end.column - r.start.column) + ")"); 38 | } 39 | status.pop(); 40 | this.element.textContent = status.join(""); 41 | }; 42 | }).call(StatusBar.prototype); 43 | 44 | exports.StatusBar = StatusBar; 45 | });; 46 | (function () { 47 | window.require(["ace/ext/statusbar"], function () {}); 48 | })(); -------------------------------------------------------------------------------- /public/ace/ext-themelist.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2013 Matthew Christopher Kastor-Inare III, Atropa Inc. Intl 7 | * All rights reserved. 8 | * 9 | * Contributed to Ajax.org under the BSD license. 10 | * 11 | * Redistribution and use in source and binary forms, with or without 12 | * modification, are permitted provided that the following conditions are met: 13 | * * Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * * Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * * Neither the name of Ajax.org B.V. nor the 19 | * names of its contributors may be used to endorse or promote products 20 | * derived from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 25 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY 26 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 29 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 31 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | * 33 | * ***** END LICENSE BLOCK ***** */ 34 | 35 | define('ace/ext/themelist', ['require', 'exports', 'module'], function (require, exports, module) { 36 | 37 | var themeData = [["Chrome"], ["Clouds"], ["Crimson Editor"], ["Dawn"], ["Dreamweaver"], ["Eclipse"], ["GitHub"], ["Solarized Light"], ["TextMate"], ["Tomorrow"], ["XCode"], ["Kuroir"], ["KatzenMilch"], ["Ambiance", "ambiance", "dark"], ["Chaos", "chaos", "dark"], ["Clouds Midnight", "clouds_midnight", "dark"], ["Cobalt", "cobalt", "dark"], ["idle Fingers", "idle_fingers", "dark"], ["krTheme", "kr_theme", "dark"], ["Merbivore", "merbivore", "dark"], ["Merbivore Soft", "merbivore_soft", "dark"], ["Mono Industrial", "mono_industrial", "dark"], ["Monokai", "monokai", "dark"], ["Pastel on dark", "pastel_on_dark", "dark"], ["Solarized Dark", "solarized_dark", "dark"], ["Terminal", "terminal", "dark"], ["Tomorrow Night", "tomorrow_night", "dark"], ["Tomorrow Night Blue", "tomorrow_night_blue", "dark"], ["Tomorrow Night Bright", "tomorrow_night_bright", "dark"], ["Tomorrow Night 80s", "tomorrow_night_eighties", "dark"], ["Twilight", "twilight", "dark"], ["Vibrant Ink", "vibrant_ink", "dark"]]; 38 | 39 | exports.themesByName = {}; 40 | exports.themes = themeData.map(function (data) { 41 | var name = data[1] || data[0].replace(/ /g, "_").toLowerCase(); 42 | var theme = { 43 | caption: data[0], 44 | theme: "ace/theme/" + name, 45 | isDark: data[2] == "dark", 46 | name: name 47 | }; 48 | exports.themesByName[name] = theme; 49 | return theme; 50 | }); 51 | }); 52 | 53 | ; 54 | (function () { 55 | window.require(["ace/ext/themelist"], function () {}); 56 | })(); -------------------------------------------------------------------------------- /public/ace/mode-ada.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | 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) { 34 | 35 | var oop = require("../lib/oop"); 36 | var TextMode = require("./text").Mode; 37 | var Tokenizer = require("../tokenizer").Tokenizer; 38 | var AdaHighlightRules = require("./ada_highlight_rules").AdaHighlightRules; 39 | var Range = require("../range").Range; 40 | 41 | var Mode = function Mode() { 42 | this.HighlightRules = AdaHighlightRules; 43 | }; 44 | oop.inherits(Mode, TextMode); 45 | 46 | (function () { 47 | 48 | this.lineCommentStart = "--"; 49 | 50 | this.$id = "ace/mode/ada"; 51 | }).call(Mode.prototype); 52 | 53 | exports.Mode = Mode; 54 | }); 55 | 56 | define('ace/mode/ada_highlight_rules', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function (require, exports, module) { 57 | 58 | var oop = require("../lib/oop"); 59 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 60 | 61 | var AdaHighlightRules = function AdaHighlightRules() { 62 | var keywords = "abort|else|new|return|abs|elsif|not|reverse|abstract|end|null|accept|entry|select|" + "access|exception|of|separate|aliased|exit|or|some|all|others|subtype|and|for|out|synchronized|" + "array|function|overriding|at|tagged|generic|package|task|begin|goto|pragma|terminate|" + "body|private|then|if|procedure|type|case|in|protected|constant|interface|until|" + "|is|raise|use|declare|range|delay|limited|record|when|delta|loop|rem|while|digits|renames|with|do|mod|requeue|xor"; 63 | 64 | var builtinConstants = "true|false|null"; 65 | 66 | var builtinFunctions = "count|min|max|avg|sum|rank|now|coalesce|main"; 67 | 68 | var keywordMapper = this.createKeywordMapper({ 69 | "support.function": builtinFunctions, 70 | "keyword": keywords, 71 | "constant.language": builtinConstants 72 | }, "identifier", true); 73 | 74 | this.$rules = { 75 | "start": [{ 76 | token: "comment", 77 | regex: "--.*$" 78 | }, { 79 | token: "string", // " string 80 | regex: '".*?"' 81 | }, { 82 | token: "string", // ' string 83 | regex: "'.*?'" 84 | }, { 85 | token: "constant.numeric", // float 86 | regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" 87 | }, { 88 | token: keywordMapper, 89 | regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" 90 | }, { 91 | token: "keyword.operator", 92 | regex: "\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|=" 93 | }, { 94 | token: "paren.lparen", 95 | regex: "[\\(]" 96 | }, { 97 | token: "paren.rparen", 98 | regex: "[\\)]" 99 | }, { 100 | token: "text", 101 | regex: "\\s+" 102 | }] 103 | }; 104 | }; 105 | 106 | oop.inherits(AdaHighlightRules, TextHighlightRules); 107 | 108 | exports.AdaHighlightRules = AdaHighlightRules; 109 | }); -------------------------------------------------------------------------------- /public/ace/mode-lucene.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/mode/lucene', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/lucene_highlight_rules'], function (require, exports, module) { 4 | 5 | var oop = require("../lib/oop"); 6 | var TextMode = require("./text").Mode; 7 | var Tokenizer = require("../tokenizer").Tokenizer; 8 | var LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules; 9 | 10 | var Mode = function Mode() { 11 | this.$tokenizer = new Tokenizer(new LuceneHighlightRules().getRules()); 12 | }; 13 | 14 | oop.inherits(Mode, TextMode); 15 | 16 | (function () { 17 | this.$id = "ace/mode/lucene"; 18 | }).call(Mode.prototype); 19 | 20 | exports.Mode = Mode; 21 | });define('ace/mode/lucene_highlight_rules', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function (require, exports, module) { 22 | 23 | var oop = require("../lib/oop"); 24 | var lang = require("../lib/lang"); 25 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 26 | 27 | var LuceneHighlightRules = function LuceneHighlightRules() { 28 | this.$rules = { 29 | "start": [{ 30 | token: "constant.character.negation", 31 | regex: "[\\-]" 32 | }, { 33 | token: "constant.character.interro", 34 | regex: "[\\?]" 35 | }, { 36 | token: "constant.character.asterisk", 37 | regex: "[\\*]" 38 | }, { 39 | token: 'constant.character.proximity', 40 | regex: '~[0-9]+\\b' 41 | }, { 42 | token: 'keyword.operator', 43 | regex: '(?:AND|OR|NOT)\\b' 44 | }, { 45 | token: "paren.lparen", 46 | regex: "[\\(]" 47 | }, { 48 | token: "paren.rparen", 49 | regex: "[\\)]" 50 | }, { 51 | token: "keyword", 52 | regex: "[\\S]+:" 53 | }, { 54 | token: "string", // " string 55 | regex: '".*?"' 56 | }, { 57 | token: "text", 58 | regex: "\\s+" 59 | }] 60 | }; 61 | }; 62 | 63 | oop.inherits(LuceneHighlightRules, TextHighlightRules); 64 | 65 | exports.LuceneHighlightRules = LuceneHighlightRules; 66 | }); -------------------------------------------------------------------------------- /public/ace/mode-plain_text.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | 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) { 34 | 35 | var oop = require("../lib/oop"); 36 | var TextMode = require("./text").Mode; 37 | var Tokenizer = require("../tokenizer").Tokenizer; 38 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 39 | var Behaviour = require("./behaviour").Behaviour; 40 | 41 | var Mode = function Mode() { 42 | this.HighlightRules = TextHighlightRules; 43 | this.$behaviour = new Behaviour(); 44 | }; 45 | 46 | oop.inherits(Mode, TextMode); 47 | 48 | (function () { 49 | this.type = "text"; 50 | this.getNextLineIndent = function (state, line, tab) { 51 | return ''; 52 | }; 53 | this.$id = "ace/mode/plain_text"; 54 | }).call(Mode.prototype); 55 | 56 | exports.Mode = Mode; 57 | }); -------------------------------------------------------------------------------- /public/ace/mode-properties.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/mode/properties', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/properties_highlight_rules'], function (require, exports, module) { 34 | 35 | var oop = require("../lib/oop"); 36 | var TextMode = require("./text").Mode; 37 | var Tokenizer = require("../tokenizer").Tokenizer; 38 | var PropertiesHighlightRules = require("./properties_highlight_rules").PropertiesHighlightRules; 39 | 40 | var Mode = function Mode() { 41 | this.HighlightRules = PropertiesHighlightRules; 42 | }; 43 | oop.inherits(Mode, TextMode); 44 | 45 | (function () { 46 | this.$id = "ace/mode/properties"; 47 | }).call(Mode.prototype); 48 | 49 | exports.Mode = Mode; 50 | }); 51 | 52 | define('ace/mode/properties_highlight_rules', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function (require, exports, module) { 53 | 54 | var oop = require("../lib/oop"); 55 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 56 | 57 | var PropertiesHighlightRules = function PropertiesHighlightRules() { 58 | 59 | var escapeRe = /\\u[0-9a-fA-F]{4}|\\/; 60 | 61 | this.$rules = { 62 | "start": [{ 63 | token: "comment", 64 | regex: /[!#].*$/ 65 | }, { 66 | token: "keyword", 67 | regex: /[=:]$/ 68 | }, { 69 | token: "keyword", 70 | regex: /[=:]/, 71 | next: "value" 72 | }, { 73 | token: "constant.language.escape", 74 | regex: escapeRe 75 | }, { 76 | defaultToken: "variable" 77 | }], 78 | "value": [{ 79 | regex: /\\$/, 80 | token: "string", 81 | next: "value" 82 | }, { 83 | regex: /$/, 84 | token: "string", 85 | next: "start" 86 | }, { 87 | token: "constant.language.escape", 88 | regex: escapeRe 89 | }, { 90 | defaultToken: "string" 91 | }] 92 | }; 93 | }; 94 | 95 | oop.inherits(PropertiesHighlightRules, TextHighlightRules); 96 | 97 | exports.PropertiesHighlightRules = PropertiesHighlightRules; 98 | }); -------------------------------------------------------------------------------- /public/ace/mode-sql.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | 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) { 34 | 35 | var oop = require("../lib/oop"); 36 | var TextMode = require("./text").Mode; 37 | var Tokenizer = require("../tokenizer").Tokenizer; 38 | var SqlHighlightRules = require("./sql_highlight_rules").SqlHighlightRules; 39 | var Range = require("../range").Range; 40 | 41 | var Mode = function Mode() { 42 | this.HighlightRules = SqlHighlightRules; 43 | }; 44 | oop.inherits(Mode, TextMode); 45 | 46 | (function () { 47 | 48 | this.lineCommentStart = "--"; 49 | 50 | this.$id = "ace/mode/sql"; 51 | }).call(Mode.prototype); 52 | 53 | exports.Mode = Mode; 54 | }); 55 | 56 | define('ace/mode/sql_highlight_rules', ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function (require, exports, module) { 57 | 58 | var oop = require("../lib/oop"); 59 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 60 | 61 | var SqlHighlightRules = function SqlHighlightRules() { 62 | 63 | var keywords = "select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|" + "when|else|end|type|left|right|join|on|outer|desc|asc"; 64 | 65 | var builtinConstants = "true|false|null"; 66 | 67 | var builtinFunctions = "count|min|max|avg|sum|rank|now|coalesce"; 68 | 69 | var keywordMapper = this.createKeywordMapper({ 70 | "support.function": builtinFunctions, 71 | "keyword": keywords, 72 | "constant.language": builtinConstants 73 | }, "identifier", true); 74 | 75 | this.$rules = { 76 | "start": [{ 77 | token: "comment", 78 | regex: "--.*$" 79 | }, { 80 | token: "comment", 81 | start: "/\\*", 82 | end: "\\*/" 83 | }, { 84 | token: "string", // " string 85 | regex: '".*?"' 86 | }, { 87 | token: "string", // ' string 88 | regex: "'.*?'" 89 | }, { 90 | token: "constant.numeric", // float 91 | regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" 92 | }, { 93 | token: keywordMapper, 94 | regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" 95 | }, { 96 | token: "keyword.operator", 97 | regex: "\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|=" 98 | }, { 99 | token: "paren.lparen", 100 | regex: "[\\(]" 101 | }, { 102 | token: "paren.rparen", 103 | regex: "[\\)]" 104 | }, { 105 | token: "text", 106 | regex: "\\s+" 107 | }] 108 | }; 109 | this.normalizeRules(); 110 | }; 111 | 112 | oop.inherits(SqlHighlightRules, TextHighlightRules); 113 | 114 | exports.SqlHighlightRules = SqlHighlightRules; 115 | }); -------------------------------------------------------------------------------- /public/ace/mode-text.js: -------------------------------------------------------------------------------- 1 | "use strict"; -------------------------------------------------------------------------------- /public/ace/snippets/abap.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/abap', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "abap"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/actionscript.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/actionscript', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet main\n\ 6 | package {\n\ 7 | import flash.display.*;\n\ 8 | import flash.Events.*;\n\ 9 | \n\ 10 | public class Main extends Sprite {\n\ 11 | public function Main ( ) {\n\ 12 | trace(\"start\");\n\ 13 | stage.scaleMode = StageScaleMode.NO_SCALE;\n\ 14 | stage.addEventListener(Event.RESIZE, resizeListener);\n\ 15 | }\n\ 16 | \n\ 17 | private function resizeListener (e:Event):void {\n\ 18 | trace(\"The application window changed size!\");\n\ 19 | trace(\"New width: \" + stage.stageWidth);\n\ 20 | trace(\"New height: \" + stage.stageHeight);\n\ 21 | }\n\ 22 | \n\ 23 | }\n\ 24 | \n\ 25 | }\n\ 26 | snippet class\n\ 27 | ${1:public|internal} class ${2:name} ${3:extends } {\n\ 28 | public function $2 ( ) {\n\ 29 | (\"start\");\n\ 30 | }\n\ 31 | }\n\ 32 | snippet all\n\ 33 | package name {\n\ 34 | \n\ 35 | ${1:public|internal|final} class ${2:name} ${3:extends } {\n\ 36 | private|public| static const FOO = \"abc\";\n\ 37 | private|public| static var BAR = \"abc\";\n\ 38 | \n\ 39 | // class initializer - no JIT !! one time setup\n\ 40 | if Cababilities.os == \"Linux|MacOS\" {\n\ 41 | FOO = \"other\";\n\ 42 | }\n\ 43 | \n\ 44 | // constructor:\n\ 45 | public function $2 ( ){\n\ 46 | super2();\n\ 47 | trace(\"start\");\n\ 48 | }\n\ 49 | public function name (a, b...){\n\ 50 | super.name(..);\n\ 51 | lable:break\n\ 52 | }\n\ 53 | }\n\ 54 | }\n\ 55 | \n\ 56 | function A(){\n\ 57 | // A can only be accessed within this file\n\ 58 | }\n\ 59 | snippet switch\n\ 60 | switch(${1}){\n\ 61 | case ${2}:\n\ 62 | ${3}\n\ 63 | break;\n\ 64 | default:\n\ 65 | }\n\ 66 | snippet case\n\ 67 | case ${1}:\n\ 68 | ${2}\n\ 69 | break;\n\ 70 | snippet package\n\ 71 | package ${1:package}{\n\ 72 | ${2}\n\ 73 | }\n\ 74 | snippet wh\n\ 75 | while ${1:cond}{\n\ 76 | ${2}\n\ 77 | }\n\ 78 | snippet do\n\ 79 | do {\n\ 80 | ${2}\n\ 81 | } while (${1:cond})\n\ 82 | snippet while\n\ 83 | while ${1:cond}{\n\ 84 | ${2}\n\ 85 | }\n\ 86 | snippet for enumerate names\n\ 87 | for (${1:var} in ${2:object}){\n\ 88 | ${3}\n\ 89 | }\n\ 90 | snippet for enumerate values\n\ 91 | for each (${1:var} in ${2:object}){\n\ 92 | ${3}\n\ 93 | }\n\ 94 | snippet get_set\n\ 95 | function get ${1:name} {\n\ 96 | return ${2}\n\ 97 | }\n\ 98 | function set $1 (newValue) {\n\ 99 | ${3}\n\ 100 | }\n\ 101 | snippet interface\n\ 102 | interface name {\n\ 103 | function method(${1}):${2:returntype};\n\ 104 | }\n\ 105 | snippet try\n\ 106 | try {\n\ 107 | ${1}\n\ 108 | } catch (error:ErrorType) {\n\ 109 | ${2}\n\ 110 | } finally {\n\ 111 | ${3}\n\ 112 | }\n\ 113 | # For Loop (same as c.snippet)\n\ 114 | snippet for for (..) {..}\n\ 115 | for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\ 116 | ${4:/* code */}\n\ 117 | }\n\ 118 | # Custom For Loop\n\ 119 | snippet forr\n\ 120 | for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {\n\ 121 | ${5:/* code */}\n\ 122 | }\n\ 123 | # If Condition\n\ 124 | snippet if\n\ 125 | if (${1:/* condition */}) {\n\ 126 | ${2:/* code */}\n\ 127 | }\n\ 128 | snippet el\n\ 129 | else {\n\ 130 | ${1}\n\ 131 | }\n\ 132 | # Ternary conditional\n\ 133 | snippet t\n\ 134 | ${1:/* condition */} ? ${2:a} : ${3:b}\n\ 135 | snippet fun\n\ 136 | function ${1:function_name}(${2})${3}\n\ 137 | {\n\ 138 | ${4:/* code */}\n\ 139 | }\n\ 140 | # FlxSprite (usefull when using the flixel library)\n\ 141 | snippet FlxSprite\n\ 142 | package\n\ 143 | {\n\ 144 | import org.flixel.*\n\ 145 | \n\ 146 | public class ${1:ClassName} extends ${2:FlxSprite}\n\ 147 | {\n\ 148 | public function $1(${3: X:Number, Y:Number}):void\n\ 149 | {\n\ 150 | super(X,Y);\n\ 151 | ${4: //code...}\n\ 152 | }\n\ 153 | \n\ 154 | override public function update():void\n\ 155 | {\n\ 156 | super.update();\n\ 157 | ${5: //code...}\n\ 158 | }\n\ 159 | }\n\ 160 | }\n\ 161 | \n\ 162 | "; 163 | exports.scope = "actionscript"; 164 | }); -------------------------------------------------------------------------------- /public/ace/snippets/ada.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/ada', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "ada"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/apache_conf.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/apache_conf', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "apache_conf"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/asciidoc.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/asciidoc', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "asciidoc"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/assembly_x86.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/assembly_x86', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "assembly_x86"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/autohotkey.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/autohotkey', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "autohotkey"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/batchfile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/batchfile', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "batchfile"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/c9search.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/c9search', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "c9search"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/c_cpp.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/c_cpp', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "## STL Collections\n\ 6 | # std::array\n\ 7 | snippet array\n\ 8 | std::array<${1:T}, ${2:N}> ${3};${4}\n\ 9 | # std::vector\n\ 10 | snippet vector\n\ 11 | std::vector<${1:T}> ${2};${3}\n\ 12 | # std::deque\n\ 13 | snippet deque\n\ 14 | std::deque<${1:T}> ${2};${3}\n\ 15 | # std::forward_list\n\ 16 | snippet flist\n\ 17 | std::forward_list<${1:T}> ${2};${3}\n\ 18 | # std::list\n\ 19 | snippet list\n\ 20 | std::list<${1:T}> ${2};${3}\n\ 21 | # std::set\n\ 22 | snippet set\n\ 23 | std::set<${1:T}> ${2};${3}\n\ 24 | # std::map\n\ 25 | snippet map\n\ 26 | std::map<${1:Key}, ${2:T}> ${3};${4}\n\ 27 | # std::multiset\n\ 28 | snippet mset\n\ 29 | std::multiset<${1:T}> ${2};${3}\n\ 30 | # std::multimap\n\ 31 | snippet mmap\n\ 32 | std::multimap<${1:Key}, ${2:T}> ${3};${4}\n\ 33 | # std::unordered_set\n\ 34 | snippet uset\n\ 35 | std::unordered_set<${1:T}> ${2};${3}\n\ 36 | # std::unordered_map\n\ 37 | snippet umap\n\ 38 | std::unordered_map<${1:Key}, ${2:T}> ${3};${4}\n\ 39 | # std::unordered_multiset\n\ 40 | snippet umset\n\ 41 | std::unordered_multiset<${1:T}> ${2};${3}\n\ 42 | # std::unordered_multimap\n\ 43 | snippet ummap\n\ 44 | std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}\n\ 45 | # std::stack\n\ 46 | snippet stack\n\ 47 | std::stack<${1:T}> ${2};${3}\n\ 48 | # std::queue\n\ 49 | snippet queue\n\ 50 | std::queue<${1:T}> ${2};${3}\n\ 51 | # std::priority_queue\n\ 52 | snippet pqueue\n\ 53 | std::priority_queue<${1:T}> ${2};${3}\n\ 54 | ##\n\ 55 | ## Access Modifiers\n\ 56 | # private\n\ 57 | snippet pri\n\ 58 | private\n\ 59 | # protected\n\ 60 | snippet pro\n\ 61 | protected\n\ 62 | # public\n\ 63 | snippet pub\n\ 64 | public\n\ 65 | # friend\n\ 66 | snippet fr\n\ 67 | friend\n\ 68 | # mutable\n\ 69 | snippet mu\n\ 70 | mutable\n\ 71 | ## \n\ 72 | ## Class\n\ 73 | # class\n\ 74 | snippet cl\n\ 75 | class ${1:`Filename('$1', 'name')`} \n\ 76 | {\n\ 77 | public:\n\ 78 | $1(${2});\n\ 79 | ~$1();\n\ 80 | \n\ 81 | private:\n\ 82 | ${3:/* data */}\n\ 83 | };\n\ 84 | # member function implementation\n\ 85 | snippet mfun\n\ 86 | ${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {\n\ 87 | ${5:/* code */}\n\ 88 | }\n\ 89 | # namespace\n\ 90 | snippet ns\n\ 91 | namespace ${1:`Filename('', 'my')`} {\n\ 92 | ${2}\n\ 93 | } /* namespace $1 */\n\ 94 | ##\n\ 95 | ## Input/Output\n\ 96 | # std::cout\n\ 97 | snippet cout\n\ 98 | std::cout << ${1} << std::endl;${2}\n\ 99 | # std::cin\n\ 100 | snippet cin\n\ 101 | std::cin >> ${1};${2}\n\ 102 | ##\n\ 103 | ## Iteration\n\ 104 | # for i \n\ 105 | snippet fori\n\ 106 | for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {\n\ 107 | ${4:/* code */}\n\ 108 | }${5}\n\ 109 | \n\ 110 | # foreach\n\ 111 | snippet fore\n\ 112 | for (${1:auto} ${2:i} : ${3:container}) {\n\ 113 | ${4:/* code */}\n\ 114 | }${5}\n\ 115 | # iterator\n\ 116 | snippet iter\n\ 117 | for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {\n\ 118 | ${6}\n\ 119 | }${7}\n\ 120 | \n\ 121 | # auto iterator\n\ 122 | snippet itera\n\ 123 | for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {\n\ 124 | ${2:std::cout << *$1 << std::endl;}\n\ 125 | }${3}\n\ 126 | ##\n\ 127 | ## Lambdas\n\ 128 | # lamda (one line)\n\ 129 | snippet ld\n\ 130 | [${1}](${2}){${3:/* code */}}${4}\n\ 131 | # lambda (multi-line)\n\ 132 | snippet lld\n\ 133 | [${1}](${2}){\n\ 134 | ${3:/* code */}\n\ 135 | }${4}\n\ 136 | "; 137 | exports.scope = "c_cpp"; 138 | }); -------------------------------------------------------------------------------- /public/ace/snippets/cirru.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/cirru', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "cirru"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/clojure.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/clojure', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet comm\n\ 6 | (comment\n\ 7 | ${1}\n\ 8 | )\n\ 9 | snippet condp\n\ 10 | (condp ${1:pred} ${2:expr}\n\ 11 | ${3})\n\ 12 | snippet def\n\ 13 | (def ${1})\n\ 14 | snippet defm\n\ 15 | (defmethod ${1:multifn} \"${2:doc-string}\" ${3:dispatch-val} [${4:args}]\n\ 16 | ${5})\n\ 17 | snippet defmm\n\ 18 | (defmulti ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\ 19 | snippet defma\n\ 20 | (defmacro ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\n\ 21 | snippet defn\n\ 22 | (defn ${1:name} \"${2:doc-string}\" [${3:arg-list}]\n\ 23 | ${4})\n\ 24 | snippet defp\n\ 25 | (defprotocol ${1:name}\n\ 26 | ${2})\n\ 27 | snippet defr\n\ 28 | (defrecord ${1:name} [${2:fields}]\n\ 29 | ${3:protocol}\n\ 30 | ${4})\n\ 31 | snippet deft\n\ 32 | (deftest ${1:name}\n\ 33 | (is (= ${2:assertion})))\n\ 34 | ${3})\n\ 35 | snippet is\n\ 36 | (is (= ${1} ${2}))\n\ 37 | snippet defty\n\ 38 | (deftype ${1:Name} [${2:fields}]\n\ 39 | ${3:Protocol}\n\ 40 | ${4})\n\ 41 | snippet doseq\n\ 42 | (doseq [${1:elem} ${2:coll}]\n\ 43 | ${3})\n\ 44 | snippet fn\n\ 45 | (fn [${1:arg-list}] ${2})\n\ 46 | snippet if\n\ 47 | (if ${1:test-expr}\n\ 48 | ${2:then-expr}\n\ 49 | ${3:else-expr})\n\ 50 | snippet if-let \n\ 51 | (if-let [${1:result} ${2:test-expr}]\n\ 52 | (${3:then-expr} $1)\n\ 53 | (${4:else-expr}))\n\ 54 | snippet imp\n\ 55 | (:import [${1:package}])\n\ 56 | & {:keys [${1:keys}] :or {${2:defaults}}}\n\ 57 | snippet let\n\ 58 | (let [${1:name} ${2:expr}]\n\ 59 | ${3})\n\ 60 | snippet letfn\n\ 61 | (letfn [(${1:name) [${2:args}]\n\ 62 | ${3})])\n\ 63 | snippet map\n\ 64 | (map ${1:func} ${2:coll})\n\ 65 | snippet mapl\n\ 66 | (map #(${1:lambda}) ${2:coll})\n\ 67 | snippet met\n\ 68 | (${1:name} [${2:this} ${3:args}]\n\ 69 | ${4})\n\ 70 | snippet ns\n\ 71 | (ns ${1:name}\n\ 72 | ${2})\n\ 73 | snippet dotimes\n\ 74 | (dotimes [_ 10]\n\ 75 | (time\n\ 76 | (dotimes [_ ${1:times}]\n\ 77 | ${2})))\n\ 78 | snippet pmethod\n\ 79 | (${1:name} [${2:this} ${3:args}])\n\ 80 | snippet refer\n\ 81 | (:refer-clojure :exclude [${1}])\n\ 82 | snippet require\n\ 83 | (:require [${1:namespace} :as [${2}]])\n\ 84 | snippet use\n\ 85 | (:use [${1:namespace} :only [${2}]])\n\ 86 | snippet print\n\ 87 | (println ${1})\n\ 88 | snippet reduce\n\ 89 | (reduce ${1:(fn [p n] ${3})} ${2})\n\ 90 | snippet when\n\ 91 | (when ${1:test} ${2:body})\n\ 92 | snippet when-let\n\ 93 | (when-let [${1:result} ${2:test}]\n\ 94 | ${3:body})\n\ 95 | "; 96 | exports.scope = "clojure"; 97 | }); -------------------------------------------------------------------------------- /public/ace/snippets/cobol.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/cobol', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "cobol"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/coffee.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/coffee', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = '# Closure loop\nsnippet forindo\n\tfor ${1:name} in ${2:array}\n\t\tdo ($1) ->\n\t\t\t${3:// body}\n# Array comprehension\nsnippet fora\n\tfor ${1:name} in ${2:array}\n\t\t${3:// body...}\n# Object comprehension\nsnippet foro\n\tfor ${1:key}, ${2:value} of ${3:object}\n\t\t${4:// body...}\n# Range comprehension (inclusive)\nsnippet forr\n\tfor ${1:name} in [${2:start}..${3:finish}]\n\t\t${4:// body...}\nsnippet forrb\n\tfor ${1:name} in [${2:start}..${3:finish}] by ${4:step}\n\t\t${5:// body...}\n# Range comprehension (exclusive)\nsnippet forrex\n\tfor ${1:name} in [${2:start}...${3:finish}]\n\t\t${4:// body...}\nsnippet forrexb\n\tfor ${1:name} in [${2:start}...${3:finish}] by ${4:step}\n\t\t${5:// body...}\n# Function\nsnippet fun\n\t(${1:args}) ->\n\t\t${2:// body...}\n# Function (bound)\nsnippet bfun\n\t(${1:args}) =>\n\t\t${2:// body...}\n# Class\nsnippet cla class ..\n\tclass ${1:`substitute(Filename(), \'\\(_\\|^\\)\\(.\\)\', \'\\u\\2\', \'g\')`}\n\t\t${2}\nsnippet cla class .. constructor: ..\n\tclass ${1:`substitute(Filename(), \'\\(_\\|^\\)\\(.\\)\', \'\\u\\2\', \'g\')`}\n\t\tconstructor: (${2:args}) ->\n\t\t\t${3}\n\n\t\t${4}\nsnippet cla class .. extends ..\n\tclass ${1:`substitute(Filename(), \'\\(_\\|^\\)\\(.\\)\', \'\\u\\2\', \'g\')`} extends ${2:ParentClass}\n\t\t${3}\nsnippet cla class .. extends .. constructor: ..\n\tclass ${1:`substitute(Filename(), \'\\(_\\|^\\)\\(.\\)\', \'\\u\\2\', \'g\')`} extends ${2:ParentClass}\n\t\tconstructor: (${3:args}) ->\n\t\t\t${4}\n\n\t\t${5}\n# If\nsnippet if\n\tif ${1:condition}\n\t\t${2:// body...}\n# If __ Else\nsnippet ife\n\tif ${1:condition}\n\t\t${2:// body...}\n\telse\n\t\t${3:// body...}\n# Else if\nsnippet elif\n\telse if ${1:condition}\n\t\t${2:// body...}\n# Ternary If\nsnippet ifte\n\tif ${1:condition} then ${2:value} else ${3:other}\n# Unless\nsnippet unl\n\t${1:action} unless ${2:condition}\n# Switch\nsnippet swi\n\tswitch ${1:object}\n\t\twhen ${2:value}\n\t\t\t${3:// body...}\n\n# Log\nsnippet log\n\tconsole.log ${1}\n# Try __ Catch\nsnippet try\n\ttry\n\t\t${1}\n\tcatch ${2:error}\n\t\t${3}\n# Require\nsnippet req\n\t${2:$1} = require \'${1:sys}\'${3}\n# Export\nsnippet exp\n\t${1:root} = exports ? this\n'; 6 | exports.scope = "coffee"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/coldfusion.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/coldfusion', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "coldfusion"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/csharp.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/csharp', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "csharp"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/curly.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/curly', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "curly"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/d.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/d', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "d"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/dart.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/dart', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet lib\n\ 6 | library ${1};\n\ 7 | ${2}\n\ 8 | snippet im\n\ 9 | import '${1}';\n\ 10 | ${2}\n\ 11 | snippet pa\n\ 12 | part '${1}';\n\ 13 | ${2}\n\ 14 | snippet pao\n\ 15 | part of ${1};\n\ 16 | ${2}\n\ 17 | snippet main\n\ 18 | void main() {\n\ 19 | ${1:/* code */}\n\ 20 | }\n\ 21 | snippet st\n\ 22 | static ${1}\n\ 23 | snippet fi\n\ 24 | final ${1}\n\ 25 | snippet re\n\ 26 | return ${1}\n\ 27 | snippet br\n\ 28 | break;\n\ 29 | snippet th\n\ 30 | throw ${1}\n\ 31 | snippet cl\n\ 32 | class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\ 33 | snippet imp\n\ 34 | implements ${1}\n\ 35 | snippet ext\n\ 36 | extends ${1}\n\ 37 | snippet if\n\ 38 | if (${1:true}) {\n\ 39 | ${2}\n\ 40 | }\n\ 41 | snippet ife\n\ 42 | if (${1:true}) {\n\ 43 | ${2}\n\ 44 | } else {\n\ 45 | ${3}\n\ 46 | }\n\ 47 | snippet el\n\ 48 | else\n\ 49 | snippet sw\n\ 50 | switch (${1}) {\n\ 51 | ${2}\n\ 52 | }\n\ 53 | snippet cs\n\ 54 | case ${1}:\n\ 55 | ${2}\n\ 56 | snippet de\n\ 57 | default:\n\ 58 | ${1}\n\ 59 | snippet for\n\ 60 | for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n\ 61 | ${4:$1[$2]}\n\ 62 | }\n\ 63 | snippet fore\n\ 64 | for (final ${2:item} in ${1:itemList}) {\n\ 65 | ${3:/* code */}\n\ 66 | }\n\ 67 | snippet wh\n\ 68 | while (${1:/* condition */}) {\n\ 69 | ${2:/* code */}\n\ 70 | }\n\ 71 | snippet dowh\n\ 72 | do {\n\ 73 | ${2:/* code */}\n\ 74 | } while (${1:/* condition */});\n\ 75 | snippet as\n\ 76 | assert(${1:/* condition */});\n\ 77 | snippet try\n\ 78 | try {\n\ 79 | ${2}\n\ 80 | } catch (${1:Exception e}) {\n\ 81 | }\n\ 82 | snippet tryf\n\ 83 | try {\n\ 84 | ${2}\n\ 85 | } catch (${1:Exception e}) {\n\ 86 | } finally {\n\ 87 | }\n\ 88 | "; 89 | exports.scope = "dart"; 90 | }); -------------------------------------------------------------------------------- /public/ace/snippets/diff.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/diff', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# DEP-3 (http://dep.debian.net/deps/dep3/) style patch header\n\ 6 | snippet header DEP-3 style header\n\ 7 | Description: ${1}\n\ 8 | Origin: ${2:vendor|upstream|other}, ${3:url of the original patch}\n\ 9 | Bug: ${4:url in upstream bugtracker}\n\ 10 | Forwarded: ${5:no|not-needed|url}\n\ 11 | Author: ${6:`g:snips_author`}\n\ 12 | Reviewed-by: ${7:name and email}\n\ 13 | Last-Update: ${8:`strftime(\"%Y-%m-%d\")`}\n\ 14 | Applied-Upstream: ${9:upstream version|url|commit}\n\ 15 | \n\ 16 | "; 17 | exports.scope = "diff"; 18 | }); -------------------------------------------------------------------------------- /public/ace/snippets/django.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/django', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# Model Fields\n\ 6 | \n\ 7 | # Note: Optional arguments are using defaults that match what Django will use\n\ 8 | # as a default, e.g. with max_length fields. Doing this as a form of self\n\ 9 | # documentation and to make it easy to know whether you should override the\n\ 10 | # default or not.\n\ 11 | \n\ 12 | # Note: Optional arguments that are booleans will use the opposite since you\n\ 13 | # can either not specify them, or override them, e.g. auto_now_add=False.\n\ 14 | \n\ 15 | snippet auto\n\ 16 | ${1:FIELDNAME} = models.AutoField(${2})\n\ 17 | snippet bool\n\ 18 | ${1:FIELDNAME} = models.BooleanField(${2:default=True})\n\ 19 | snippet char\n\ 20 | ${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True})\n\ 21 | snippet comma\n\ 22 | ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True})\n\ 23 | snippet date\n\ 24 | ${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\ 25 | snippet datetime\n\ 26 | ${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\ 27 | snippet decimal\n\ 28 | ${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${3})\n\ 29 | snippet email\n\ 30 | ${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True})\n\ 31 | snippet file\n\ 32 | ${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100})\n\ 33 | snippet filepath\n\ 34 | ${1:FIELDNAME} = models.FilePathField(path=${2:\"/abs/path/to/dir\"}${3:, max_length=100}${4:, match=\"*.ext\"}${5:, recursive=True}${6:, blank=True, })\n\ 35 | snippet float\n\ 36 | ${1:FIELDNAME} = models.FloatField(${2})\n\ 37 | snippet image\n\ 38 | ${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100})\n\ 39 | snippet int\n\ 40 | ${1:FIELDNAME} = models.IntegerField(${2})\n\ 41 | snippet ip\n\ 42 | ${1:FIELDNAME} = models.IPAddressField(${2})\n\ 43 | snippet nullbool\n\ 44 | ${1:FIELDNAME} = models.NullBooleanField(${2})\n\ 45 | snippet posint\n\ 46 | ${1:FIELDNAME} = models.PositiveIntegerField(${2})\n\ 47 | snippet possmallint\n\ 48 | ${1:FIELDNAME} = models.PositiveSmallIntegerField(${2})\n\ 49 | snippet slug\n\ 50 | ${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True})\n\ 51 | snippet smallint\n\ 52 | ${1:FIELDNAME} = models.SmallIntegerField(${2})\n\ 53 | snippet text\n\ 54 | ${1:FIELDNAME} = models.TextField(${2:blank=True})\n\ 55 | snippet time\n\ 56 | ${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})\n\ 57 | snippet url\n\ 58 | ${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${4:, blank=True})\n\ 59 | snippet xml\n\ 60 | ${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${3:, blank=True})\n\ 61 | # Relational Fields\n\ 62 | snippet fk\n\ 63 | ${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, to_field=''})\n\ 64 | snippet m2m\n\ 65 | ${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${7:, db_table=''})\n\ 66 | snippet o2o\n\ 67 | ${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})\n\ 68 | \n\ 69 | # Code Skeletons\n\ 70 | \n\ 71 | snippet form\n\ 72 | class ${1:FormName}(forms.Form):\n\ 73 | \"\"\"${2:docstring}\"\"\"\n\ 74 | ${3}\n\ 75 | \n\ 76 | snippet model\n\ 77 | class ${1:ModelName}(models.Model):\n\ 78 | \"\"\"${2:docstring}\"\"\"\n\ 79 | ${3}\n\ 80 | \n\ 81 | class Meta:\n\ 82 | ${4}\n\ 83 | \n\ 84 | def __unicode__(self):\n\ 85 | ${5}\n\ 86 | \n\ 87 | def save(self, force_insert=False, force_update=False):\n\ 88 | ${6}\n\ 89 | \n\ 90 | @models.permalink\n\ 91 | def get_absolute_url(self):\n\ 92 | return ('${7:view_or_url_name}' ${8})\n\ 93 | \n\ 94 | snippet modeladmin\n\ 95 | class ${1:ModelName}Admin(admin.ModelAdmin):\n\ 96 | ${2}\n\ 97 | \n\ 98 | admin.site.register($1, $1Admin)\n\ 99 | \n\ 100 | snippet tabularinline\n\ 101 | class ${1:ModelName}Inline(admin.TabularInline):\n\ 102 | model = $1\n\ 103 | \n\ 104 | snippet stackedinline\n\ 105 | class ${1:ModelName}Inline(admin.StackedInline):\n\ 106 | model = $1\n\ 107 | \n\ 108 | snippet r2r\n\ 109 | return render_to_response('${1:template.html}', {\n\ 110 | ${2}\n\ 111 | }${3:, context_instance=RequestContext(request)}\n\ 112 | )\n\ 113 | "; 114 | exports.scope = "django"; 115 | }); -------------------------------------------------------------------------------- /public/ace/snippets/dot.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/dot', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "dot"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/ejs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/ejs', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "ejs"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/erlang.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/erlang', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# module and export all\n\ 6 | snippet mod\n\ 7 | -module(${1:`Filename('', 'my')`}).\n\ 8 | \n\ 9 | -compile([export_all]).\n\ 10 | \n\ 11 | start() ->\n\ 12 | ${2}\n\ 13 | \n\ 14 | stop() ->\n\ 15 | ok.\n\ 16 | # define directive\n\ 17 | snippet def\n\ 18 | -define(${1:macro}, ${2:body}).${3}\n\ 19 | # export directive\n\ 20 | snippet exp\n\ 21 | -export([${1:function}/${2:arity}]).\n\ 22 | # include directive\n\ 23 | snippet inc\n\ 24 | -include(\"${1:file}\").${2}\n\ 25 | # behavior directive\n\ 26 | snippet beh\n\ 27 | -behaviour(${1:behaviour}).${2}\n\ 28 | # if expression\n\ 29 | snippet if\n\ 30 | if\n\ 31 | ${1:guard} ->\n\ 32 | ${2:body}\n\ 33 | end\n\ 34 | # case expression\n\ 35 | snippet case\n\ 36 | case ${1:expression} of\n\ 37 | ${2:pattern} ->\n\ 38 | ${3:body};\n\ 39 | end\n\ 40 | # anonymous function\n\ 41 | snippet fun\n\ 42 | fun (${1:Parameters}) -> ${2:body} end${3}\n\ 43 | # try...catch\n\ 44 | snippet try\n\ 45 | try\n\ 46 | ${1}\n\ 47 | catch\n\ 48 | ${2:_:_} -> ${3:got_some_exception}\n\ 49 | end\n\ 50 | # record directive\n\ 51 | snippet rec\n\ 52 | -record(${1:record}, {\n\ 53 | ${2:field}=${3:value}}).${4}\n\ 54 | # todo comment\n\ 55 | snippet todo\n\ 56 | %% TODO: ${1}\n\ 57 | ## Snippets below (starting with '%') are in EDoc format.\n\ 58 | ## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details\n\ 59 | # doc comment\n\ 60 | snippet %d\n\ 61 | %% @doc ${1}\n\ 62 | # end of doc comment\n\ 63 | snippet %e\n\ 64 | %% @end\n\ 65 | # specification comment\n\ 66 | snippet %s\n\ 67 | %% @spec ${1}\n\ 68 | # private function marker\n\ 69 | snippet %p\n\ 70 | %% @private\n\ 71 | # OTP application\n\ 72 | snippet application\n\ 73 | -module(${1:`Filename('', 'my')`}).\n\ 74 | \n\ 75 | -behaviour(application).\n\ 76 | \n\ 77 | -export([start/2, stop/1]).\n\ 78 | \n\ 79 | start(_Type, _StartArgs) ->\n\ 80 | case ${2:root_supervisor}:start_link() of\n\ 81 | {ok, Pid} ->\n\ 82 | {ok, Pid};\n\ 83 | Other ->\n\ 84 | {error, Other}\n\ 85 | end.\n\ 86 | \n\ 87 | stop(_State) ->\n\ 88 | ok. \n\ 89 | # OTP supervisor\n\ 90 | snippet supervisor\n\ 91 | -module(${1:`Filename('', 'my')`}).\n\ 92 | \n\ 93 | -behaviour(supervisor).\n\ 94 | \n\ 95 | %% API\n\ 96 | -export([start_link/0]).\n\ 97 | \n\ 98 | %% Supervisor callbacks\n\ 99 | -export([init/1]).\n\ 100 | \n\ 101 | -define(SERVER, ?MODULE).\n\ 102 | \n\ 103 | start_link() ->\n\ 104 | supervisor:start_link({local, ?SERVER}, ?MODULE, []).\n\ 105 | \n\ 106 | init([]) ->\n\ 107 | Server = {${2:my_server}, {$2, start_link, []},\n\ 108 | permanent, 2000, worker, [$2]},\n\ 109 | Children = [Server],\n\ 110 | RestartStrategy = {one_for_one, 0, 1},\n\ 111 | {ok, {RestartStrategy, Children}}.\n\ 112 | # OTP gen_server\n\ 113 | snippet gen_server\n\ 114 | -module(${1:`Filename('', 'my')`}).\n\ 115 | \n\ 116 | -behaviour(gen_server).\n\ 117 | \n\ 118 | %% API\n\ 119 | -export([\n\ 120 | start_link/0\n\ 121 | ]).\n\ 122 | \n\ 123 | %% gen_server callbacks\n\ 124 | -export([init/1, handle_call/3, handle_cast/2, handle_info/2,\n\ 125 | terminate/2, code_change/3]).\n\ 126 | \n\ 127 | -define(SERVER, ?MODULE).\n\ 128 | \n\ 129 | -record(state, {}).\n\ 130 | \n\ 131 | %%%===================================================================\n\ 132 | %%% API\n\ 133 | %%%===================================================================\n\ 134 | \n\ 135 | start_link() ->\n\ 136 | gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).\n\ 137 | \n\ 138 | %%%===================================================================\n\ 139 | %%% gen_server callbacks\n\ 140 | %%%===================================================================\n\ 141 | \n\ 142 | init([]) ->\n\ 143 | {ok, #state{}}.\n\ 144 | \n\ 145 | handle_call(_Request, _From, State) ->\n\ 146 | Reply = ok,\n\ 147 | {reply, Reply, State}.\n\ 148 | \n\ 149 | handle_cast(_Msg, State) ->\n\ 150 | {noreply, State}.\n\ 151 | \n\ 152 | handle_info(_Info, State) ->\n\ 153 | {noreply, State}.\n\ 154 | \n\ 155 | terminate(_Reason, _State) ->\n\ 156 | ok.\n\ 157 | \n\ 158 | code_change(_OldVsn, State, _Extra) ->\n\ 159 | {ok, State}.\n\ 160 | \n\ 161 | %%%===================================================================\n\ 162 | %%% Internal functions\n\ 163 | %%%===================================================================\n\ 164 | \n\ 165 | "; 166 | exports.scope = "erlang"; 167 | }); -------------------------------------------------------------------------------- /public/ace/snippets/forth.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/forth', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "forth"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/ftl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/ftl', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "ftl"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/gherkin.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/gherkin', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "gherkin"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/glsl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/glsl', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "glsl"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/golang.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/golang', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "golang"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/groovy.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/groovy', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "groovy"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/haml.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/haml', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet t\n\ 6 | %table\n\ 7 | %tr\n\ 8 | %th\n\ 9 | ${1:headers}\n\ 10 | %tr\n\ 11 | %td\n\ 12 | ${2:headers}\n\ 13 | snippet ul\n\ 14 | %ul\n\ 15 | %li\n\ 16 | ${1:item}\n\ 17 | %li\n\ 18 | snippet =rp\n\ 19 | = render :partial => '${1:partial}'\n\ 20 | snippet =rpl\n\ 21 | = render :partial => '${1:partial}', :locals => {}\n\ 22 | snippet =rpc\n\ 23 | = render :partial => '${1:partial}', :collection => @$1\n\ 24 | \n\ 25 | "; 26 | exports.scope = "haml"; 27 | }); -------------------------------------------------------------------------------- /public/ace/snippets/handlebars.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/handlebars', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "handlebars"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/haskell.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/haskell', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = 'snippet lang\n\t{-# LANGUAGE ${1:OverloadedStrings} #-}\nsnippet info\n\t-- |\n\t-- Module : ${1:Module.Namespace}\n\t-- Copyright : ${2:Author} ${3:2011-2012}\n\t-- License : ${4:BSD3}\n\t--\n\t-- Maintainer : ${5:email@something.com}\n\t-- Stability : ${6:experimental}\n\t-- Portability : ${7:unknown}\n\t--\n\t-- ${8:Description}\n\t--\nsnippet import\n\timport ${1:Data.Text}\nsnippet import2\n\timport ${1:Data.Text} (${2:head})\nsnippet importq\n\timport qualified ${1:Data.Text} as ${2:T}\nsnippet inst\n\tinstance ${1:Monoid} ${2:Type} where\n\t\t${3}\nsnippet type\n\ttype ${1:Type} = ${2:Type}\nsnippet data\n\tdata ${1:Type} = ${2:$1} ${3:Int}\nsnippet newtype\n\tnewtype ${1:Type} = ${2:$1} ${3:Int}\nsnippet class\n\tclass ${1:Class} a where\n\t\t${2}\nsnippet module\n\tmodule `substitute(substitute(expand(\'%:r\'), \'[/\\\\]\',\'.\',\'g\'),\'^\\%(\\l*\\.\\)\\?\',\'\',\'\')` (\n\t)\twhere\n\t`expand(\'%\') =~ \'Main\' ? "\\n\\nmain = do\\n print \\"hello world\\"" : ""`\n\nsnippet const\n\t${1:name} :: ${2:a}\n\t$1 = ${3:undefined}\nsnippet fn\n\t${1:fn} :: ${2:a} -> ${3:a}\n\t$1 ${4} = ${5:undefined}\nsnippet fn2\n\t${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\t$1 ${5} = ${6:undefined}\nsnippet ap\n\t${1:map} ${2:fn} ${3:list}\nsnippet do\n\tdo\n\t\t\nsnippet \u03BB\n\t\\${1:x} -> ${2}\nsnippet \\\n\t\\${1:x} -> ${2}\nsnippet <-\n\t${1:a} <- ${2:m a}\nsnippet \u2190\n\t${1:a} <- ${2:m a}\nsnippet ->\n\t${1:m a} -> ${2:a}\nsnippet \u2192\n\t${1:m a} -> ${2:a}\nsnippet tup\n\t(${1:a}, ${2:b})\nsnippet tup2\n\t(${1:a}, ${2:b}, ${3:c})\nsnippet tup3\n\t(${1:a}, ${2:b}, ${3:c}, ${4:d})\nsnippet rec\n\t${1:Record} { ${2:recFieldA} = ${3:undefined}\n\t\t\t\t, ${4:recFieldB} = ${5:undefined}\n\t\t\t\t}\nsnippet case\n\tcase ${1:something} of\n\t\t${2} -> ${3}\nsnippet let\n\tlet ${1} = ${2}\n\tin ${3}\nsnippet where\n\twhere\n\t\t${1:fn} = ${2:undefined}\n'; 6 | exports.scope = "haskell"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/haxe.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/haxe', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "haxe"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/html_completions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/html_completions', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "html_completions"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/html_ruby.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/html_ruby', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "html_ruby"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/ini.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/ini', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "ini"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/jack.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/jack', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "jack"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/jade.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/jade', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "jade"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/json.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/json', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "json"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/jsoniq.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/jsoniq', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "jsoniq"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/jsp.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/jsp', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet @page\n\ 6 | <%@page contentType=\"text/html\" pageEncoding=\"UTF-8\"%>\n\ 7 | snippet jstl\n\ 8 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\ 9 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\ 10 | snippet jstl:c\n\ 11 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/core\" prefix=\"c\" %>\n\ 12 | snippet jstl:fn\n\ 13 | <%@ taglib uri=\"http://java.sun.com/jsp/jstl/functions\" prefix=\"fn\" %>\n\ 14 | snippet cpath\n\ 15 | ${pageContext.request.contextPath}\n\ 16 | snippet cout\n\ 17 | \n\ 18 | snippet cset\n\ 19 | \n\ 20 | snippet cremove\n\ 21 | \n\ 22 | snippet ccatch\n\ 23 | \n\ 24 | snippet cif\n\ 25 | \n\ 26 | ${2}\n\ 27 | \n\ 28 | snippet cchoose\n\ 29 | \n\ 30 | ${1}\n\ 31 | \n\ 32 | snippet cwhen\n\ 33 | \n\ 34 | ${2}\n\ 35 | \n\ 36 | snippet cother\n\ 37 | \n\ 38 | ${1}\n\ 39 | \n\ 40 | snippet cfore\n\ 41 | \n\ 42 | ${4:}\n\ 43 | \n\ 44 | snippet cfort\n\ 45 | ${2:item1,item2,item3}\n\ 46 | \n\ 47 | ${5:}\n\ 48 | \n\ 49 | snippet cparam\n\ 50 | \n\ 51 | snippet cparam+\n\ 52 | \n\ 53 | cparam+${3}\n\ 54 | snippet cimport\n\ 55 | \n\ 56 | snippet cimport+\n\ 57 | \n\ 58 | \n\ 59 | cparam+${4}\n\ 60 | \n\ 61 | snippet curl\n\ 62 | \n\ 63 | ${3}\n\ 64 | snippet curl+\n\ 65 | \n\ 66 | \n\ 67 | cparam+${6}\n\ 68 | \n\ 69 | ${3}\n\ 70 | snippet credirect\n\ 71 | \n\ 72 | snippet contains\n\ 73 | ${fn:contains(${1:string}, ${2:substr})}\n\ 74 | snippet contains:i\n\ 75 | ${fn:containsIgnoreCase(${1:string}, ${2:substr})}\n\ 76 | snippet endswith\n\ 77 | ${fn:endsWith(${1:string}, ${2:suffix})}\n\ 78 | snippet escape\n\ 79 | ${fn:escapeXml(${1:string})}\n\ 80 | snippet indexof\n\ 81 | ${fn:indexOf(${1:string}, ${2:substr})}\n\ 82 | snippet join\n\ 83 | ${fn:join(${1:collection}, ${2:delims})}\n\ 84 | snippet length\n\ 85 | ${fn:length(${1:collection_or_string})}\n\ 86 | snippet replace\n\ 87 | ${fn:replace(${1:string}, ${2:substr}, ${3:replace})}\n\ 88 | snippet split\n\ 89 | ${fn:split(${1:string}, ${2:delims})}\n\ 90 | snippet startswith\n\ 91 | ${fn:startsWith(${1:string}, ${2:prefix})}\n\ 92 | snippet substr\n\ 93 | ${fn:substring(${1:string}, ${2:begin}, ${3:end})}\n\ 94 | snippet substr:a\n\ 95 | ${fn:substringAfter(${1:string}, ${2:substr})}\n\ 96 | snippet substr:b\n\ 97 | ${fn:substringBefore(${1:string}, ${2:substr})}\n\ 98 | snippet lc\n\ 99 | ${fn:toLowerCase(${1:string})}\n\ 100 | snippet uc\n\ 101 | ${fn:toUpperCase(${1:string})}\n\ 102 | snippet trim\n\ 103 | ${fn:trim(${1:string})}\n\ 104 | "; 105 | exports.scope = "jsp"; 106 | }); -------------------------------------------------------------------------------- /public/ace/snippets/jsx.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/jsx', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "jsx"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/julia.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/julia', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "julia"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/latex.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/latex', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "latex"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/less.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/less', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "less"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/liquid.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/liquid', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "liquid"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/lisp.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/lisp', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "lisp"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/livescript.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/livescript', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "livescript"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/logiql.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/logiql', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "logiql"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/lua.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/lua', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet #!\n\ 6 | #!/usr/bin/env lua\n\ 7 | $1\n\ 8 | snippet local\n\ 9 | local ${1:x} = ${2:1}\n\ 10 | snippet fun\n\ 11 | function ${1:fname}(${2:...})\n\ 12 | ${3:-- body}\n\ 13 | end\n\ 14 | snippet for\n\ 15 | for ${1:i}=${2:1},${3:10} do\n\ 16 | ${4:print(i)}\n\ 17 | end\n\ 18 | snippet forp\n\ 19 | for ${1:i},${2:v} in pairs(${3:table_name}) do\n\ 20 | ${4:-- body}\n\ 21 | end\n\ 22 | snippet fori\n\ 23 | for ${1:i},${2:v} in ipairs(${3:table_name}) do\n\ 24 | ${4:-- body}\n\ 25 | end\n\ 26 | "; 27 | exports.scope = "lua"; 28 | }); -------------------------------------------------------------------------------- /public/ace/snippets/luapage.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/luapage', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "luapage"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/lucene.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/lucene', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "lucene"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/makefile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/makefile', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet ifeq\n\ 6 | ifeq (${1:cond0},${2:cond1})\n\ 7 | ${3:code}\n\ 8 | endif\n\ 9 | "; 10 | exports.scope = "makefile"; 11 | }); -------------------------------------------------------------------------------- /public/ace/snippets/markdown.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/markdown', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# Markdown\n\ 6 | \n\ 7 | # Includes octopress (http://octopress.org/) snippets\n\ 8 | \n\ 9 | snippet [\n\ 10 | [${1:text}](http://${2:address} \"${3:title}\")\n\ 11 | snippet [*\n\ 12 | [${1:link}](${2:`@*`} \"${3:title}\")${4}\n\ 13 | \n\ 14 | snippet [:\n\ 15 | [${1:id}]: http://${2:url} \"${3:title}\"\n\ 16 | snippet [:*\n\ 17 | [${1:id}]: ${2:`@*`} \"${3:title}\"\n\ 18 | \n\ 19 | snippet ![\n\ 20 | ![${1:alttext}](${2:/images/image.jpg} \"${3:title}\")\n\ 21 | snippet ![*\n\ 22 | ![${1:alt}](${2:`@*`} \"${3:title}\")${4}\n\ 23 | \n\ 24 | snippet ![:\n\ 25 | ![${1:id}]: ${2:url} \"${3:title}\"\n\ 26 | snippet ![:*\n\ 27 | ![${1:id}]: ${2:`@*`} \"${3:title}\"\n\ 28 | \n\ 29 | snippet ===\n\ 30 | regex /^/=+/=*//\n\ 31 | ${PREV_LINE/./=/g}\n\ 32 | \n\ 33 | ${0}\n\ 34 | snippet ---\n\ 35 | regex /^/-+/-*//\n\ 36 | ${PREV_LINE/./-/g}\n\ 37 | \n\ 38 | ${0}\n\ 39 | snippet blockquote\n\ 40 | {% blockquote %}\n\ 41 | ${1:quote}\n\ 42 | {% endblockquote %}\n\ 43 | \n\ 44 | snippet blockquote-author\n\ 45 | {% blockquote ${1:author}, ${2:title} %}\n\ 46 | ${3:quote}\n\ 47 | {% endblockquote %}\n\ 48 | \n\ 49 | snippet blockquote-link\n\ 50 | {% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\ 51 | ${4:quote}\n\ 52 | {% endblockquote %}\n\ 53 | \n\ 54 | snippet bt-codeblock-short\n\ 55 | ```\n\ 56 | ${1:code_snippet}\n\ 57 | ```\n\ 58 | \n\ 59 | snippet bt-codeblock-full\n\ 60 | ``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\ 61 | ${5:code_snippet}\n\ 62 | ```\n\ 63 | \n\ 64 | snippet codeblock-short\n\ 65 | {% codeblock %}\n\ 66 | ${1:code_snippet}\n\ 67 | {% endcodeblock %}\n\ 68 | \n\ 69 | snippet codeblock-full\n\ 70 | {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\ 71 | ${5:code_snippet}\n\ 72 | {% endcodeblock %}\n\ 73 | \n\ 74 | snippet gist-full\n\ 75 | {% gist ${1:gist_id} ${2:filename} %}\n\ 76 | \n\ 77 | snippet gist-short\n\ 78 | {% gist ${1:gist_id} %}\n\ 79 | \n\ 80 | snippet img\n\ 81 | {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\ 82 | \n\ 83 | snippet youtube\n\ 84 | {% youtube ${1:video_id} %}\n\ 85 | \n\ 86 | # The quote should appear only once in the text. It is inherently part of it.\n\ 87 | # See http://octopress.org/docs/plugins/pullquote/ for more info.\n\ 88 | \n\ 89 | snippet pullquote\n\ 90 | {% pullquote %}\n\ 91 | ${1:text} {\" ${2:quote} \"} ${3:text}\n\ 92 | {% endpullquote %}\n\ 93 | "; 94 | exports.scope = "markdown"; 95 | }); -------------------------------------------------------------------------------- /public/ace/snippets/matlab.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/matlab', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "matlab"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/mel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/mel', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "mel"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/mushcode.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/mushcode', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "mushcode"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/mushcode_high_rules.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/mushcode_high_rules', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "mushcode_high_rules"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/mysql.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/mysql', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "mysql"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/nix.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/nix', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "nix"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/objectivec.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/objectivec', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "objectivec"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/ocaml.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/ocaml', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "ocaml"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/pascal.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/pascal', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "pascal"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/pgsql.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/pgsql', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "pgsql"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/plain_text.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/plain_text', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "plain_text"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/powershell.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/powershell', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "powershell"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/prolog.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/prolog', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "prolog"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/properties.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/properties', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "properties"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/protobuf.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/protobuf', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "protobuf"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/python.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/python', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet #!\n\ 6 | #!/usr/bin/env python\n\ 7 | snippet imp\n\ 8 | import ${1:module}\n\ 9 | snippet from\n\ 10 | from ${1:package} import ${2:module}\n\ 11 | # Module Docstring\n\ 12 | snippet docs\n\ 13 | '''\n\ 14 | File: ${1:FILENAME:file_name}\n\ 15 | Author: ${2:author}\n\ 16 | Description: ${3}\n\ 17 | '''\n\ 18 | snippet wh\n\ 19 | while ${1:condition}:\n\ 20 | ${2:# TODO: write code...}\n\ 21 | # dowh - does the same as do...while in other languages\n\ 22 | snippet dowh\n\ 23 | while True:\n\ 24 | ${1:# TODO: write code...}\n\ 25 | if ${2:condition}:\n\ 26 | break\n\ 27 | snippet with\n\ 28 | with ${1:expr} as ${2:var}:\n\ 29 | ${3:# TODO: write code...}\n\ 30 | # New Class\n\ 31 | snippet cl\n\ 32 | class ${1:ClassName}(${2:object}):\n\ 33 | \"\"\"${3:docstring for $1}\"\"\"\n\ 34 | def __init__(self, ${4:arg}):\n\ 35 | ${5:super($1, self).__init__()}\n\ 36 | self.$4 = $4\n\ 37 | ${6}\n\ 38 | # New Function\n\ 39 | snippet def\n\ 40 | def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):\n\ 41 | \"\"\"${3:docstring for $1}\"\"\"\n\ 42 | ${4:# TODO: write code...}\n\ 43 | snippet deff\n\ 44 | def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):\n\ 45 | ${3:# TODO: write code...}\n\ 46 | # New Method\n\ 47 | snippet defs\n\ 48 | def ${1:mname}(self, ${2:arg}):\n\ 49 | ${3:# TODO: write code...}\n\ 50 | # New Property\n\ 51 | snippet property\n\ 52 | def ${1:foo}():\n\ 53 | doc = \"${2:The $1 property.}\"\n\ 54 | def fget(self):\n\ 55 | ${3:return self._$1}\n\ 56 | def fset(self, value):\n\ 57 | ${4:self._$1 = value}\n\ 58 | # Ifs\n\ 59 | snippet if\n\ 60 | if ${1:condition}:\n\ 61 | ${2:# TODO: write code...}\n\ 62 | snippet el\n\ 63 | else:\n\ 64 | ${1:# TODO: write code...}\n\ 65 | snippet ei\n\ 66 | elif ${1:condition}:\n\ 67 | ${2:# TODO: write code...}\n\ 68 | # For\n\ 69 | snippet for\n\ 70 | for ${1:item} in ${2:items}:\n\ 71 | ${3:# TODO: write code...}\n\ 72 | # Encodes\n\ 73 | snippet cutf8\n\ 74 | # -*- coding: utf-8 -*-\n\ 75 | snippet clatin1\n\ 76 | # -*- coding: latin-1 -*-\n\ 77 | snippet cascii\n\ 78 | # -*- coding: ascii -*-\n\ 79 | # Lambda\n\ 80 | snippet ld\n\ 81 | ${1:var} = lambda ${2:vars} : ${3:action}\n\ 82 | snippet .\n\ 83 | self.\n\ 84 | snippet try Try/Except\n\ 85 | try:\n\ 86 | ${1:# TODO: write code...}\n\ 87 | except ${2:Exception}, ${3:e}:\n\ 88 | ${4:raise $3}\n\ 89 | snippet try Try/Except/Else\n\ 90 | try:\n\ 91 | ${1:# TODO: write code...}\n\ 92 | except ${2:Exception}, ${3:e}:\n\ 93 | ${4:raise $3}\n\ 94 | else:\n\ 95 | ${5:# TODO: write code...}\n\ 96 | snippet try Try/Except/Finally\n\ 97 | try:\n\ 98 | ${1:# TODO: write code...}\n\ 99 | except ${2:Exception}, ${3:e}:\n\ 100 | ${4:raise $3}\n\ 101 | finally:\n\ 102 | ${5:# TODO: write code...}\n\ 103 | snippet try Try/Except/Else/Finally\n\ 104 | try:\n\ 105 | ${1:# TODO: write code...}\n\ 106 | except ${2:Exception}, ${3:e}:\n\ 107 | ${4:raise $3}\n\ 108 | else:\n\ 109 | ${5:# TODO: write code...}\n\ 110 | finally:\n\ 111 | ${6:# TODO: write code...}\n\ 112 | # if __name__ == '__main__':\n\ 113 | snippet ifmain\n\ 114 | if __name__ == '__main__':\n\ 115 | ${1:main()}\n\ 116 | # __magic__\n\ 117 | snippet _\n\ 118 | __${1:init}__${2}\n\ 119 | # python debugger (pdb)\n\ 120 | snippet pdb\n\ 121 | import pdb; pdb.set_trace()\n\ 122 | # ipython debugger (ipdb)\n\ 123 | snippet ipdb\n\ 124 | import ipdb; ipdb.set_trace()\n\ 125 | # ipython debugger (pdbbb)\n\ 126 | snippet pdbbb\n\ 127 | import pdbpp; pdbpp.set_trace()\n\ 128 | snippet pprint\n\ 129 | import pprint; pprint.pprint(${1})${2}\n\ 130 | snippet \"\n\ 131 | \"\"\"\n\ 132 | ${1:doc}\n\ 133 | \"\"\"\n\ 134 | # test function/method\n\ 135 | snippet test\n\ 136 | def test_${1:description}(${2:self}):\n\ 137 | ${3:# TODO: write code...}\n\ 138 | # test case\n\ 139 | snippet testcase\n\ 140 | class ${1:ExampleCase}(unittest.TestCase):\n\ 141 | \n\ 142 | def test_${2:description}(self):\n\ 143 | ${3:# TODO: write code...}\n\ 144 | snippet fut\n\ 145 | from __future__ import ${1}\n\ 146 | #getopt\n\ 147 | snippet getopt\n\ 148 | try:\n\ 149 | # Short option syntax: \"hv:\"\n\ 150 | # Long option syntax: \"help\" or \"verbose=\"\n\ 151 | opts, args = getopt.getopt(sys.argv[1:], \"${1:short_options}\", [${2:long_options}])\n\ 152 | \n\ 153 | except getopt.GetoptError, err:\n\ 154 | # Print debug info\n\ 155 | print str(err)\n\ 156 | ${3:error_action}\n\ 157 | \n\ 158 | for option, argument in opts:\n\ 159 | if option in (\"-h\", \"--help\"):\n\ 160 | ${4}\n\ 161 | elif option in (\"-v\", \"--verbose\"):\n\ 162 | verbose = argument\n\ 163 | "; 164 | exports.scope = "python"; 165 | }); -------------------------------------------------------------------------------- /public/ace/snippets/r.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/r', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet #!\n\ 6 | #!/usr/bin/env Rscript\n\ 7 | \n\ 8 | # includes\n\ 9 | snippet lib\n\ 10 | library(${1:package})\n\ 11 | snippet req\n\ 12 | require(${1:package})\n\ 13 | snippet source\n\ 14 | source('${1:file}')\n\ 15 | \n\ 16 | # conditionals\n\ 17 | snippet if\n\ 18 | if (${1:condition}) {\n\ 19 | ${2:code}\n\ 20 | }\n\ 21 | snippet el\n\ 22 | else {\n\ 23 | ${1:code}\n\ 24 | }\n\ 25 | snippet ei\n\ 26 | else if (${1:condition}) {\n\ 27 | ${2:code}\n\ 28 | }\n\ 29 | \n\ 30 | # functions\n\ 31 | snippet fun\n\ 32 | ${1:name} = function (${2:variables}) {\n\ 33 | ${3:code}\n\ 34 | }\n\ 35 | snippet ret\n\ 36 | return(${1:code})\n\ 37 | \n\ 38 | # dataframes, lists, etc\n\ 39 | snippet df\n\ 40 | ${1:name}[${2:rows}, ${3:cols}]\n\ 41 | snippet c\n\ 42 | c(${1:items})\n\ 43 | snippet li\n\ 44 | list(${1:items})\n\ 45 | snippet mat\n\ 46 | matrix(${1:data}, nrow=${2:rows}, ncol=${3:cols})\n\ 47 | \n\ 48 | # apply functions\n\ 49 | snippet apply\n\ 50 | apply(${1:array}, ${2:margin}, ${3:function})\n\ 51 | snippet lapply\n\ 52 | lapply(${1:list}, ${2:function})\n\ 53 | snippet sapply\n\ 54 | lapply(${1:list}, ${2:function})\n\ 55 | snippet vapply\n\ 56 | vapply(${1:list}, ${2:function}, ${3:type})\n\ 57 | snippet mapply\n\ 58 | mapply(${1:function}, ${2:...})\n\ 59 | snippet tapply\n\ 60 | tapply(${1:vector}, ${2:index}, ${3:function})\n\ 61 | snippet rapply\n\ 62 | rapply(${1:list}, ${2:function})\n\ 63 | \n\ 64 | # plyr functions\n\ 65 | snippet dd\n\ 66 | ddply(${1:frame}, ${2:variables}, ${3:function})\n\ 67 | snippet dl\n\ 68 | dlply(${1:frame}, ${2:variables}, ${3:function})\n\ 69 | snippet da\n\ 70 | daply(${1:frame}, ${2:variables}, ${3:function})\n\ 71 | snippet d_\n\ 72 | d_ply(${1:frame}, ${2:variables}, ${3:function})\n\ 73 | \n\ 74 | snippet ad\n\ 75 | adply(${1:array}, ${2:margin}, ${3:function})\n\ 76 | snippet al\n\ 77 | alply(${1:array}, ${2:margin}, ${3:function})\n\ 78 | snippet aa\n\ 79 | aaply(${1:array}, ${2:margin}, ${3:function})\n\ 80 | snippet a_\n\ 81 | a_ply(${1:array}, ${2:margin}, ${3:function})\n\ 82 | \n\ 83 | snippet ld\n\ 84 | ldply(${1:list}, ${2:function})\n\ 85 | snippet ll\n\ 86 | llply(${1:list}, ${2:function})\n\ 87 | snippet la\n\ 88 | laply(${1:list}, ${2:function})\n\ 89 | snippet l_\n\ 90 | l_ply(${1:list}, ${2:function})\n\ 91 | \n\ 92 | snippet md\n\ 93 | mdply(${1:matrix}, ${2:function})\n\ 94 | snippet ml\n\ 95 | mlply(${1:matrix}, ${2:function})\n\ 96 | snippet ma\n\ 97 | maply(${1:matrix}, ${2:function})\n\ 98 | snippet m_\n\ 99 | m_ply(${1:matrix}, ${2:function})\n\ 100 | \n\ 101 | # plot functions\n\ 102 | snippet pl\n\ 103 | plot(${1:x}, ${2:y})\n\ 104 | snippet ggp\n\ 105 | ggplot(${1:data}, aes(${2:aesthetics}))\n\ 106 | snippet img\n\ 107 | ${1:(jpeg,bmp,png,tiff)}(filename=\"${2:filename}\", width=${3}, height=${4}, unit=\"${5}\")\n\ 108 | ${6:plot}\n\ 109 | dev.off()\n\ 110 | \n\ 111 | # statistical test functions\n\ 112 | snippet fis\n\ 113 | fisher.test(${1:x}, ${2:y})\n\ 114 | snippet chi\n\ 115 | chisq.test(${1:x}, ${2:y})\n\ 116 | snippet tt\n\ 117 | t.test(${1:x}, ${2:y})\n\ 118 | snippet wil\n\ 119 | wilcox.test(${1:x}, ${2:y})\n\ 120 | snippet cor\n\ 121 | cor.test(${1:x}, ${2:y})\n\ 122 | snippet fte\n\ 123 | var.test(${1:x}, ${2:y})\n\ 124 | snippet kvt \n\ 125 | kv.test(${1:x}, ${2:y})\n\ 126 | "; 127 | exports.scope = "r"; 128 | }); -------------------------------------------------------------------------------- /public/ace/snippets/rdoc.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/rdoc', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "rdoc"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/rhtml.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/rhtml', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "rhtml"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/rust.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/rust', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "rust"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/sass.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/sass', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "sass"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/scad.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/scad', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "scad"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/scala.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/scala', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "scala"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/scheme.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/scheme', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "scheme"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/scss.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/scss', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "scss"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/sh.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/sh', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# Shebang. Executing bash via /usr/bin/env makes scripts more portable.\n\ 6 | snippet #!\n\ 7 | #!/usr/bin/env bash\n\ 8 | \n\ 9 | snippet if\n\ 10 | if [[ ${1:condition} ]]; then\n\ 11 | ${2:#statements}\n\ 12 | fi\n\ 13 | snippet elif\n\ 14 | elif [[ ${1:condition} ]]; then\n\ 15 | ${2:#statements}\n\ 16 | snippet for\n\ 17 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do\n\ 18 | ${3:#statements}\n\ 19 | done\n\ 20 | snippet fori\n\ 21 | for ${1:needle} in ${2:haystack} ; do\n\ 22 | ${3:#statements}\n\ 23 | done\n\ 24 | snippet wh\n\ 25 | while [[ ${1:condition} ]]; do\n\ 26 | ${2:#statements}\n\ 27 | done\n\ 28 | snippet until\n\ 29 | until [[ ${1:condition} ]]; do\n\ 30 | ${2:#statements}\n\ 31 | done\n\ 32 | snippet case\n\ 33 | case ${1:word} in\n\ 34 | ${2:pattern})\n\ 35 | ${3};;\n\ 36 | esac\n\ 37 | snippet go \n\ 38 | while getopts '${1:o}' ${2:opts} \n\ 39 | do \n\ 40 | case $$2 in\n\ 41 | ${3:o0})\n\ 42 | ${4:#staments};;\n\ 43 | esac\n\ 44 | done\n\ 45 | # Set SCRIPT_DIR variable to directory script is located.\n\ 46 | snippet sdir\n\ 47 | SCRIPT_DIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\n\ 48 | # getopt\n\ 49 | snippet getopt\n\ 50 | __ScriptVersion=\"${1:version}\"\n\ 51 | \n\ 52 | #=== FUNCTION ================================================================\n\ 53 | # NAME: usage\n\ 54 | # DESCRIPTION: Display usage information.\n\ 55 | #===============================================================================\n\ 56 | function usage ()\n\ 57 | {\n\ 58 | cat <<- EOT\n\ 59 | \n\ 60 | Usage : $${0:0} [options] [--] \n\ 61 | \n\ 62 | Options: \n\ 63 | -h|help Display this message\n\ 64 | -v|version Display script version\n\ 65 | \n\ 66 | EOT\n\ 67 | } # ---------- end of function usage ----------\n\ 68 | \n\ 69 | #-----------------------------------------------------------------------\n\ 70 | # Handle command line arguments\n\ 71 | #-----------------------------------------------------------------------\n\ 72 | \n\ 73 | while getopts \":hv\" opt\n\ 74 | do\n\ 75 | case $opt in\n\ 76 | \n\ 77 | h|help ) usage; exit 0 ;;\n\ 78 | \n\ 79 | v|version ) echo \"$${0:0} -- Version $__ScriptVersion\"; exit 0 ;;\n\ 80 | \n\ 81 | \\? ) echo -e \"\\n Option does not exist : $OPTARG\\n\"\n\ 82 | usage; exit 1 ;;\n\ 83 | \n\ 84 | esac # --- end of case ---\n\ 85 | done\n\ 86 | shift $(($OPTIND-1))\n\ 87 | \n\ 88 | "; 89 | exports.scope = "sh"; 90 | }); -------------------------------------------------------------------------------- /public/ace/snippets/sjs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/sjs', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "sjs"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/smarty.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/smarty', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "smarty"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/snippets.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/snippets', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# snippets for making snippets :)\n\ 6 | snippet snip\n\ 7 | snippet ${1:trigger}\n\ 8 | ${2}\n\ 9 | snippet msnip\n\ 10 | snippet ${1:trigger} ${2:description}\n\ 11 | ${3}\n\ 12 | snippet v\n\ 13 | {VISUAL}\n\ 14 | "; 15 | exports.scope = "snippets"; 16 | }); -------------------------------------------------------------------------------- /public/ace/snippets/soy_template.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/soy_template', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "soy_template"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/space.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/space', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "space"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/sql.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/sql', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "snippet tbl\n\ 6 | create table ${1:table} (\n\ 7 | ${2:columns}\n\ 8 | );\n\ 9 | snippet col\n\ 10 | ${1:name} ${2:type} ${3:default ''} ${4:not null}\n\ 11 | snippet ccol\n\ 12 | ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}\n\ 13 | snippet ncol\n\ 14 | ${1:name} number ${3:default 0} ${4:not null}\n\ 15 | snippet dcol\n\ 16 | ${1:name} date ${3:default sysdate} ${4:not null}\n\ 17 | snippet ind\n\ 18 | create index ${3:$1_$2} on ${1:table}(${2:column});\n\ 19 | snippet uind\n\ 20 | create unique index ${1:name} on ${2:table}(${3:column});\n\ 21 | snippet tblcom\n\ 22 | comment on table ${1:table} is '${2:comment}';\n\ 23 | snippet colcom\n\ 24 | comment on column ${1:table}.${2:column} is '${3:comment}';\n\ 25 | snippet addcol\n\ 26 | alter table ${1:table} add (${2:column} ${3:type});\n\ 27 | snippet seq\n\ 28 | create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\n\ 29 | snippet s*\n\ 30 | select * from ${1:table}\n\ 31 | "; 32 | exports.scope = "sql"; 33 | }); -------------------------------------------------------------------------------- /public/ace/snippets/stylus.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/stylus', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "stylus"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/svg.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/svg', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "svg"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/tcl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/tcl', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# #!/usr/bin/env tclsh\n\ 6 | snippet #!\n\ 7 | #!/usr/bin/env tclsh\n\ 8 | \n\ 9 | # Process\n\ 10 | snippet pro\n\ 11 | proc ${1:function_name} {${2:args}} {\n\ 12 | ${3:#body ...}\n\ 13 | }\n\ 14 | #xif\n\ 15 | snippet xif\n\ 16 | ${1:expr}? ${2:true} : ${3:false}\n\ 17 | # Conditional\n\ 18 | snippet if\n\ 19 | if {${1}} {\n\ 20 | ${2:# body...}\n\ 21 | }\n\ 22 | # Conditional if..else\n\ 23 | snippet ife\n\ 24 | if {${1}} {\n\ 25 | ${2:# body...}\n\ 26 | } else {\n\ 27 | ${3:# else...}\n\ 28 | }\n\ 29 | # Conditional if..elsif..else\n\ 30 | snippet ifee\n\ 31 | if {${1}} {\n\ 32 | ${2:# body...}\n\ 33 | } elseif {${3}} {\n\ 34 | ${4:# elsif...}\n\ 35 | } else {\n\ 36 | ${5:# else...}\n\ 37 | }\n\ 38 | # If catch then\n\ 39 | snippet ifc\n\ 40 | if { [catch {${1:#do something...}} ${2:err}] } {\n\ 41 | ${3:# handle failure...}\n\ 42 | }\n\ 43 | # Catch\n\ 44 | snippet catch\n\ 45 | catch {${1}} ${2:err} ${3:options}\n\ 46 | # While Loop\n\ 47 | snippet wh\n\ 48 | while {${1}} {\n\ 49 | ${2:# body...}\n\ 50 | }\n\ 51 | # For Loop\n\ 52 | snippet for\n\ 53 | for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n\ 54 | ${4:# body...}\n\ 55 | }\n\ 56 | # Foreach Loop\n\ 57 | snippet fore\n\ 58 | foreach ${1:x} {${2:#list}} {\n\ 59 | ${3:# body...}\n\ 60 | }\n\ 61 | # after ms script...\n\ 62 | snippet af\n\ 63 | after ${1:ms} ${2:#do something}\n\ 64 | # after cancel id\n\ 65 | snippet afc\n\ 66 | after cancel ${1:id or script}\n\ 67 | # after idle\n\ 68 | snippet afi\n\ 69 | after idle ${1:script}\n\ 70 | # after info id\n\ 71 | snippet afin\n\ 72 | after info ${1:id}\n\ 73 | # Expr\n\ 74 | snippet exp\n\ 75 | expr {${1:#expression here}}\n\ 76 | # Switch\n\ 77 | snippet sw\n\ 78 | switch ${1:var} {\n\ 79 | ${3:pattern 1} {\n\ 80 | ${4:#do something}\n\ 81 | }\n\ 82 | default {\n\ 83 | ${2:#do something}\n\ 84 | }\n\ 85 | }\n\ 86 | # Case\n\ 87 | snippet ca\n\ 88 | ${1:pattern} {\n\ 89 | ${2:#do something}\n\ 90 | }${3}\n\ 91 | # Namespace eval\n\ 92 | snippet ns\n\ 93 | namespace eval ${1:path} {${2:#script...}}\n\ 94 | # Namespace current\n\ 95 | snippet nsc\n\ 96 | namespace current\n\ 97 | "; 98 | exports.scope = "tcl"; 99 | }); -------------------------------------------------------------------------------- /public/ace/snippets/tex.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/tex', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = '#PREAMBLE\n#newcommand\nsnippet nc\n\t\\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}}${4}\n#usepackage\nsnippet up\n\t\\usepackage[${1:[options}]{${2:package}}\n#newunicodechar\nsnippet nuc\n\t\\newunicodechar{${1}}{${2:\\ensuremath}${3:tex-substitute}}}\n#DeclareMathOperator\nsnippet dmo\n\t\\DeclareMathOperator{${1}}{${2}}\n\n#DOCUMENT\n# \\begin{}...\\end{}\nsnippet begin\n\t\\begin{${1:env}}\n\t\t${2}\n\t\\end{$1}\n# Tabular\nsnippet tab\n\t\\begin{${1:tabular}}{${2:c}}\n\t${3}\n\t\\end{$1}\nsnippet thm\n\t\\begin[${1:author}]{${2:thm}}\n\t${3}\n\t\\end{$1}\nsnippet center\n\t\\begin{center}\n\t\t${1}\n\t\\end{center}\n# Align(ed)\nsnippet ali\n\t\\begin{align${1:ed}}\n\t\t${2}\n\t\\end{align$1}\n# Gather(ed)\nsnippet gat\n\t\\begin{gather${1:ed}}\n\t\t${2}\n\t\\end{gather$1}\n# Equation\nsnippet eq\n\t\\begin{equation}\n\t\t${1}\n\t\\end{equation}\n# Equation\nsnippet eq*\n\t\\begin{equation*}\n\t\t${1}\n\t\\end{equation*}\n# Unnumbered Equation\nsnippet \\\n\t\\[\n\t\t${1}\n\t\\]\n# Enumerate\nsnippet enum\n\t\\begin{enumerate}\n\t\t\\item ${1}\n\t\\end{enumerate}\n# Itemize\nsnippet itemize\n\t\\begin{itemize}\n\t\t\\item ${1}\n\t\\end{itemize}\n# Description\nsnippet desc\n\t\\begin{description}\n\t\t\\item[${1}] ${2}\n\t\\end{description}\n# Matrix\nsnippet mat\n\t\\begin{${1:p/b/v/V/B/small}matrix}\n\t\t${2}\n\t\\end{$1matrix}\n# Cases\nsnippet cas\n\t\\begin{cases}\n\t\t${1:equation}, &\\text{ if }${2:case}\\\\\n\t\t${3}\n\t\\end{cases}\n# Split\nsnippet spl\n\t\\begin{split}\n\t\t${1}\n\t\\end{split}\n# Part\nsnippet part\n\t\\part{${1:part name}} % (fold)\n\t\\label{prt:${2:$1}}\n\t${3}\n\t% part $2 (end)\n# Chapter\nsnippet cha\n\t\\chapter{${1:chapter name}}\n\t\\label{cha:${2:$1}}\n\t${3}\n# Section\nsnippet sec\n\t\\section{${1:section name}}\n\t\\label{sec:${2:$1}}\n\t${3}\n# Sub Section\nsnippet sub\n\t\\subsection{${1:subsection name}}\n\t\\label{sub:${2:$1}}\n\t${3}\n# Sub Sub Section\nsnippet subs\n\t\\subsubsection{${1:subsubsection name}}\n\t\\label{ssub:${2:$1}}\n\t${3}\n# Paragraph\nsnippet par\n\t\\paragraph{${1:paragraph name}}\n\t\\label{par:${2:$1}}\n\t${3}\n# Sub Paragraph\nsnippet subp\n\t\\subparagraph{${1:subparagraph name}}\n\t\\label{subp:${2:$1}}\n\t${3}\n#References\nsnippet itd\n\t\\item[${1:description}] ${2:item}\nsnippet figure\n\t${1:Figure}~\\ref{${2:fig:}}${3}\nsnippet table\n\t${1:Table}~\\ref{${2:tab:}}${3}\nsnippet listing\n\t${1:Listing}~\\ref{${2:list}}${3}\nsnippet section\n\t${1:Section}~\\ref{${2:sec:}}${3}\nsnippet page\n\t${1:page}~\\pageref{${2}}${3}\nsnippet index\n\t\\index{${1:index}}${2}\n#Citations\nsnippet cite\n\t\\cite[${1}]{${2}}${3}\nsnippet fcite\n\t\\footcite[${1}]{${2}}${3}\n#Formating text: italic, bold, underline, small capital, emphase ..\nsnippet it\n\t\\textit{${1:text}}\nsnippet bf\n\t\\textbf{${1:text}}\nsnippet under\n\t\\underline{${1:text}}\nsnippet emp\n\t\\emph{${1:text}}\nsnippet sc\n\t\\textsc{${1:text}}\n#Choosing font\nsnippet sf\n\t\\textsf{${1:text}}\nsnippet rm\n\t\\textrm{${1:text}}\nsnippet tt\n\t\\texttt{${1:text}}\n#misc\nsnippet ft\n\t\\footnote{${1:text}}\nsnippet fig\n\t\\begin{figure}\n\t\\begin{center}\n\t \\includegraphics[scale=${1}]{Figures/${2}}\n\t\\end{center}\n\t\\caption{${3}}\n\t\\label{fig:${4}}\n\t\\end{figure}\nsnippet tikz\n\t\\begin{figure}\n\t\\begin{center}\n\t\\begin{tikzpicture}[scale=${1:1}]\n\t\t${2}\n\t\\end{tikzpicture}\n\t\\end{center}\n\t\\caption{${3}}\n\t\\label{fig:${4}}\n\t\\end{figure}\n#math\nsnippet stackrel\n\t\\stackrel{${1:above}}{${2:below}} ${3}\nsnippet frac\n\t\\frac{${1:num}}{${2:denom}}\nsnippet sum\n\t\\sum^{${1:n}}_{${2:i=1}}{${3}}'; 6 | exports.scope = "tex"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/text.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/text', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "text"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/textile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/textile', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# Jekyll post header\n\ 6 | snippet header\n\ 7 | ---\n\ 8 | title: ${1:title}\n\ 9 | layout: post\n\ 10 | date: ${2:date} ${3:hour:minute:second} -05:00\n\ 11 | ---\n\ 12 | \n\ 13 | # Image\n\ 14 | snippet img\n\ 15 | !${1:url}(${2:title}):${3:link}!\n\ 16 | \n\ 17 | # Table\n\ 18 | snippet |\n\ 19 | |${1}|${2}\n\ 20 | \n\ 21 | # Link\n\ 22 | snippet link\n\ 23 | \"${1:link text}\":${2:url}\n\ 24 | \n\ 25 | # Acronym\n\ 26 | snippet (\n\ 27 | (${1:Expand acronym})${2}\n\ 28 | \n\ 29 | # Footnote\n\ 30 | snippet fn\n\ 31 | [${1:ref number}] ${3}\n\ 32 | \n\ 33 | fn$1. ${2:footnote}\n\ 34 | \n\ 35 | "; 36 | exports.scope = "textile"; 37 | }); -------------------------------------------------------------------------------- /public/ace/snippets/toml.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/toml', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "toml"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/twig.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/twig', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "twig"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/typescript.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/typescript', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "typescript"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/vbscript.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/vbscript', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "vbscript"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/velocity.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/velocity', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = "# macro\n\ 6 | snippet #macro\n\ 7 | #macro ( ${1:macroName} ${2:\\$var1, [\\$var2, ...]} )\n\ 8 | ${3:## macro code}\n\ 9 | #end\n\ 10 | # foreach\n\ 11 | snippet #foreach\n\ 12 | #foreach ( ${1:\\$item} in ${2:\\$collection} )\n\ 13 | ${3:## foreach code}\n\ 14 | #end\n\ 15 | # if\n\ 16 | snippet #if\n\ 17 | #if ( ${1:true} )\n\ 18 | ${0}\n\ 19 | #end\n\ 20 | # if ... else\n\ 21 | snippet #ife\n\ 22 | #if ( ${1:true} )\n\ 23 | ${2}\n\ 24 | #else\n\ 25 | ${0}\n\ 26 | #end\n\ 27 | #import\n\ 28 | snippet #import\n\ 29 | #import ( \"${1:path/to/velocity/format}\" )\n\ 30 | # set\n\ 31 | snippet #set\n\ 32 | #set ( $${1:var} = ${0} )\n\ 33 | "; 34 | exports.scope = "velocity"; 35 | exports.includeScopes = ["html", "javascript", "css"]; 36 | }); -------------------------------------------------------------------------------- /public/ace/snippets/verilog.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/verilog', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "verilog"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/vhdl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/vhdl', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "vhdl"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/xml.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/xml', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "xml"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/xquery.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/xquery', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "xquery"; 7 | }); -------------------------------------------------------------------------------- /public/ace/snippets/yaml.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | define('ace/snippets/yaml', ['require', 'exports', 'module'], function (require, exports, module) { 4 | 5 | exports.snippetText = ""; 6 | exports.scope = "yaml"; 7 | }); -------------------------------------------------------------------------------- /public/ace/theme-chaos.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright 2011 Irakli Gozalishvili. All rights reserved. 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to 9 | * deal in the Software without restriction, including without limitation the 10 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 23 | * IN THE SOFTWARE. 24 | * ***** END LICENSE BLOCK ***** */ 25 | 26 | define('ace/theme/chaos', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 27 | 28 | exports.isDark = true; 29 | exports.cssClass = "ace-chaos"; 30 | exports.cssText = '.ace-chaos .ace_gutter {background: #141414;color: #595959;border-right: 1px solid #282828;}.ace-chaos .ace_gutter-cell.ace_warning {background-image: none;background: #FC0;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_gutter-cell.ace_error {background-position: -6px center;background-image: none;background: #F10;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_print-margin {border-left: 1px solid #555;right: 0;background: #1D1D1D;}.ace-chaos {background-color: #161616;color: #E6E1DC;}.ace-chaos .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-chaos .ace_cursor.ace_overwrite {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-chaos .ace_marker-layer .ace_selection {background: #494836;}.ace-chaos .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-chaos .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #FCE94F;}.ace-chaos .ace_marker-layer .ace_active-line {background: #333;}.ace-chaos .ace_gutter-active-line {background-color: #222;}.ace-chaos .ace_invisible {color: #404040;}.ace-chaos .ace_keyword {color:#00698F;}.ace-chaos .ace_keyword.ace_operator {color:#FF308F;}.ace-chaos .ace_constant {color:#1EDAFB;}.ace-chaos .ace_constant.ace_language {color:#FDC251;}.ace-chaos .ace_constant.ace_library {color:#8DFF0A;}.ace-chaos .ace_constant.ace_numeric {color:#58C554;}.ace-chaos .ace_invalid {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_invalid.ace_deprecated {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_support {color: #999;}.ace-chaos .ace_support.ace_function {color:#00AEEF;}.ace-chaos .ace_function {color:#00AEEF;}.ace-chaos .ace_string {color:#58C554;}.ace-chaos .ace_comment {color:#555;font-style:italic;padding-bottom: 0px;}.ace-chaos .ace_variable {color:#997744;}.ace-chaos .ace_meta.ace_tag {color:#BE53E6;}.ace-chaos .ace_entity.ace_other.ace_attribute-name {color:#FFFF89;}.ace-chaos .ace_markup.ace_underline {text-decoration: underline;}.ace-chaos .ace_fold-widget {text-align: center;}.ace-chaos .ace_fold-widget:hover {color: #777;}.ace-chaos .ace_fold-widget.ace_start,.ace-chaos .ace_fold-widget.ace_end,.ace-chaos .ace_fold-widget.ace_closed{background: none;border: none;box-shadow: none;}.ace-chaos .ace_fold-widget.ace_start:after {content: \'\u25BE\'}.ace-chaos .ace_fold-widget.ace_end:after {content: \'\u25B4\'}.ace-chaos .ace_fold-widget.ace_closed:after {content: \'\u2023\'}.ace-chaos .ace_indent-guide {border-right:1px dotted #333;margin-right:-1px;}.ace-chaos .ace_fold { background: #222; border-radius: 3px; color: #7AF; border: none; }.ace-chaos .ace_fold:hover {background: #CCC; color: #000;}'; 31 | 32 | var dom = require("../lib/dom"); 33 | dom.importCssString(exports.cssText, exports.cssClass); 34 | }); -------------------------------------------------------------------------------- /public/ace/theme-clouds.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/clouds', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-clouds"; 37 | exports.cssText = ".ace-clouds .ace_gutter {\ 38 | background: #ebebeb;\ 39 | color: #333\ 40 | }\ 41 | .ace-clouds .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #e8e8e8\ 44 | }\ 45 | .ace-clouds {\ 46 | background-color: #FFFFFF;\ 47 | color: #000000\ 48 | }\ 49 | .ace-clouds .ace_cursor {\ 50 | color: #000000\ 51 | }\ 52 | .ace-clouds .ace_marker-layer .ace_selection {\ 53 | background: #BDD5FC\ 54 | }\ 55 | .ace-clouds.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #FFFFFF;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-clouds .ace_marker-layer .ace_step {\ 60 | background: rgb(255, 255, 0)\ 61 | }\ 62 | .ace-clouds .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #BFBFBF\ 65 | }\ 66 | .ace-clouds .ace_marker-layer .ace_active-line {\ 67 | background: #FFFBD1\ 68 | }\ 69 | .ace-clouds .ace_gutter-active-line {\ 70 | background-color : #dcdcdc\ 71 | }\ 72 | .ace-clouds .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #BDD5FC\ 74 | }\ 75 | .ace-clouds .ace_invisible {\ 76 | color: #BFBFBF\ 77 | }\ 78 | .ace-clouds .ace_keyword,\ 79 | .ace-clouds .ace_meta,\ 80 | .ace-clouds .ace_support.ace_constant.ace_property-value {\ 81 | color: #AF956F\ 82 | }\ 83 | .ace-clouds .ace_keyword.ace_operator {\ 84 | color: #484848\ 85 | }\ 86 | .ace-clouds .ace_keyword.ace_other.ace_unit {\ 87 | color: #96DC5F\ 88 | }\ 89 | .ace-clouds .ace_constant.ace_language {\ 90 | color: #39946A\ 91 | }\ 92 | .ace-clouds .ace_constant.ace_numeric {\ 93 | color: #46A609\ 94 | }\ 95 | .ace-clouds .ace_constant.ace_character.ace_entity {\ 96 | color: #BF78CC\ 97 | }\ 98 | .ace-clouds .ace_invalid {\ 99 | background-color: #FF002A\ 100 | }\ 101 | .ace-clouds .ace_fold {\ 102 | background-color: #AF956F;\ 103 | border-color: #000000\ 104 | }\ 105 | .ace-clouds .ace_storage,\ 106 | .ace-clouds .ace_support.ace_class,\ 107 | .ace-clouds .ace_support.ace_function,\ 108 | .ace-clouds .ace_support.ace_other,\ 109 | .ace-clouds .ace_support.ace_type {\ 110 | color: #C52727\ 111 | }\ 112 | .ace-clouds .ace_string {\ 113 | color: #5D90CD\ 114 | }\ 115 | .ace-clouds .ace_comment {\ 116 | color: #BCC8BA\ 117 | }\ 118 | .ace-clouds .ace_entity.ace_name.ace_tag,\ 119 | .ace-clouds .ace_entity.ace_other.ace_attribute-name {\ 120 | color: #606060\ 121 | }\ 122 | .ace-clouds .ace_indent-guide {\ 123 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y\ 124 | }"; 125 | 126 | var dom = require("../lib/dom"); 127 | dom.importCssString(exports.cssText, exports.cssClass); 128 | }); -------------------------------------------------------------------------------- /public/ace/theme-clouds_midnight.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/clouds_midnight', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-clouds-midnight"; 37 | exports.cssText = ".ace-clouds-midnight .ace_gutter {\ 38 | background: #232323;\ 39 | color: #929292\ 40 | }\ 41 | .ace-clouds-midnight .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #232323\ 44 | }\ 45 | .ace-clouds-midnight {\ 46 | background-color: #191919;\ 47 | color: #929292\ 48 | }\ 49 | .ace-clouds-midnight .ace_cursor {\ 50 | color: #7DA5DC\ 51 | }\ 52 | .ace-clouds-midnight .ace_marker-layer .ace_selection {\ 53 | background: #000000\ 54 | }\ 55 | .ace-clouds-midnight.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #191919;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-clouds-midnight .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-clouds-midnight .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #BFBFBF\ 65 | }\ 66 | .ace-clouds-midnight .ace_marker-layer .ace_active-line {\ 67 | background: rgba(215, 215, 215, 0.031)\ 68 | }\ 69 | .ace-clouds-midnight .ace_gutter-active-line {\ 70 | background-color: rgba(215, 215, 215, 0.031)\ 71 | }\ 72 | .ace-clouds-midnight .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #000000\ 74 | }\ 75 | .ace-clouds-midnight .ace_invisible {\ 76 | color: #BFBFBF\ 77 | }\ 78 | .ace-clouds-midnight .ace_keyword,\ 79 | .ace-clouds-midnight .ace_meta,\ 80 | .ace-clouds-midnight .ace_support.ace_constant.ace_property-value {\ 81 | color: #927C5D\ 82 | }\ 83 | .ace-clouds-midnight .ace_keyword.ace_operator {\ 84 | color: #4B4B4B\ 85 | }\ 86 | .ace-clouds-midnight .ace_keyword.ace_other.ace_unit {\ 87 | color: #366F1A\ 88 | }\ 89 | .ace-clouds-midnight .ace_constant.ace_language {\ 90 | color: #39946A\ 91 | }\ 92 | .ace-clouds-midnight .ace_constant.ace_numeric {\ 93 | color: #46A609\ 94 | }\ 95 | .ace-clouds-midnight .ace_constant.ace_character.ace_entity {\ 96 | color: #A165AC\ 97 | }\ 98 | .ace-clouds-midnight .ace_invalid {\ 99 | color: #FFFFFF;\ 100 | background-color: #E92E2E\ 101 | }\ 102 | .ace-clouds-midnight .ace_fold {\ 103 | background-color: #927C5D;\ 104 | border-color: #929292\ 105 | }\ 106 | .ace-clouds-midnight .ace_storage,\ 107 | .ace-clouds-midnight .ace_support.ace_class,\ 108 | .ace-clouds-midnight .ace_support.ace_function,\ 109 | .ace-clouds-midnight .ace_support.ace_other,\ 110 | .ace-clouds-midnight .ace_support.ace_type {\ 111 | color: #E92E2E\ 112 | }\ 113 | .ace-clouds-midnight .ace_string {\ 114 | color: #5D90CD\ 115 | }\ 116 | .ace-clouds-midnight .ace_comment {\ 117 | color: #3C403B\ 118 | }\ 119 | .ace-clouds-midnight .ace_entity.ace_name.ace_tag,\ 120 | .ace-clouds-midnight .ace_entity.ace_other.ace_attribute-name {\ 121 | color: #606060\ 122 | }\ 123 | .ace-clouds-midnight .ace_indent-guide {\ 124 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\ 125 | }"; 126 | 127 | var dom = require("../lib/dom"); 128 | dom.importCssString(exports.cssText, exports.cssClass); 129 | }); -------------------------------------------------------------------------------- /public/ace/theme-cobalt.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/cobalt', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-cobalt"; 37 | exports.cssText = ".ace-cobalt .ace_gutter {\ 38 | background: #011e3a;\ 39 | color: #fff\ 40 | }\ 41 | .ace-cobalt .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #011e3a\ 44 | }\ 45 | .ace-cobalt {\ 46 | background-color: #002240;\ 47 | color: #FFFFFF\ 48 | }\ 49 | .ace-cobalt .ace_cursor {\ 50 | color: #FFFFFF\ 51 | }\ 52 | .ace-cobalt .ace_marker-layer .ace_selection {\ 53 | background: rgba(179, 101, 57, 0.75)\ 54 | }\ 55 | .ace-cobalt.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #002240;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-cobalt .ace_marker-layer .ace_step {\ 60 | background: rgb(127, 111, 19)\ 61 | }\ 62 | .ace-cobalt .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid rgba(255, 255, 255, 0.15)\ 65 | }\ 66 | .ace-cobalt .ace_marker-layer .ace_active-line {\ 67 | background: rgba(0, 0, 0, 0.35)\ 68 | }\ 69 | .ace-cobalt .ace_gutter-active-line {\ 70 | background-color: rgba(0, 0, 0, 0.35)\ 71 | }\ 72 | .ace-cobalt .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid rgba(179, 101, 57, 0.75)\ 74 | }\ 75 | .ace-cobalt .ace_invisible {\ 76 | color: rgba(255, 255, 255, 0.15)\ 77 | }\ 78 | .ace-cobalt .ace_keyword,\ 79 | .ace-cobalt .ace_meta {\ 80 | color: #FF9D00\ 81 | }\ 82 | .ace-cobalt .ace_constant,\ 83 | .ace-cobalt .ace_constant.ace_character,\ 84 | .ace-cobalt .ace_constant.ace_character.ace_escape,\ 85 | .ace-cobalt .ace_constant.ace_other {\ 86 | color: #FF628C\ 87 | }\ 88 | .ace-cobalt .ace_invalid {\ 89 | color: #F8F8F8;\ 90 | background-color: #800F00\ 91 | }\ 92 | .ace-cobalt .ace_support {\ 93 | color: #80FFBB\ 94 | }\ 95 | .ace-cobalt .ace_support.ace_constant {\ 96 | color: #EB939A\ 97 | }\ 98 | .ace-cobalt .ace_fold {\ 99 | background-color: #FF9D00;\ 100 | border-color: #FFFFFF\ 101 | }\ 102 | .ace-cobalt .ace_support.ace_function {\ 103 | color: #FFB054\ 104 | }\ 105 | .ace-cobalt .ace_storage {\ 106 | color: #FFEE80\ 107 | }\ 108 | .ace-cobalt .ace_entity {\ 109 | color: #FFDD00\ 110 | }\ 111 | .ace-cobalt .ace_string {\ 112 | color: #3AD900\ 113 | }\ 114 | .ace-cobalt .ace_string.ace_regexp {\ 115 | color: #80FFC2\ 116 | }\ 117 | .ace-cobalt .ace_comment {\ 118 | font-style: italic;\ 119 | color: #0088FF\ 120 | }\ 121 | .ace-cobalt .ace_heading,\ 122 | .ace-cobalt .ace_markup.ace_heading {\ 123 | color: #C8E4FD;\ 124 | background-color: #001221\ 125 | }\ 126 | .ace-cobalt .ace_list,\ 127 | .ace-cobalt .ace_markup.ace_list {\ 128 | background-color: #130D26\ 129 | }\ 130 | .ace-cobalt .ace_variable {\ 131 | color: #CCCCCC\ 132 | }\ 133 | .ace-cobalt .ace_variable.ace_language {\ 134 | color: #FF80E1\ 135 | }\ 136 | .ace-cobalt .ace_meta.ace_tag {\ 137 | color: #9EFFFF\ 138 | }\ 139 | .ace-cobalt .ace_indent-guide {\ 140 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHCLSvkPAAP3AgSDTRd4AAAAAElFTkSuQmCC) right repeat-y\ 141 | }"; 142 | 143 | var dom = require("../lib/dom"); 144 | dom.importCssString(exports.cssText, exports.cssClass); 145 | }); -------------------------------------------------------------------------------- /public/ace/theme-dawn.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/dawn', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-dawn"; 37 | exports.cssText = ".ace-dawn .ace_gutter {\ 38 | background: #ebebeb;\ 39 | color: #333\ 40 | }\ 41 | .ace-dawn .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #e8e8e8\ 44 | }\ 45 | .ace-dawn {\ 46 | background-color: #F9F9F9;\ 47 | color: #080808\ 48 | }\ 49 | .ace-dawn .ace_cursor {\ 50 | color: #000000\ 51 | }\ 52 | .ace-dawn .ace_marker-layer .ace_selection {\ 53 | background: rgba(39, 95, 255, 0.30)\ 54 | }\ 55 | .ace-dawn.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #F9F9F9;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-dawn .ace_marker-layer .ace_step {\ 60 | background: rgb(255, 255, 0)\ 61 | }\ 62 | .ace-dawn .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid rgba(75, 75, 126, 0.50)\ 65 | }\ 66 | .ace-dawn .ace_marker-layer .ace_active-line {\ 67 | background: rgba(36, 99, 180, 0.12)\ 68 | }\ 69 | .ace-dawn .ace_gutter-active-line {\ 70 | background-color : #dcdcdc\ 71 | }\ 72 | .ace-dawn .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid rgba(39, 95, 255, 0.30)\ 74 | }\ 75 | .ace-dawn .ace_invisible {\ 76 | color: rgba(75, 75, 126, 0.50)\ 77 | }\ 78 | .ace-dawn .ace_keyword,\ 79 | .ace-dawn .ace_meta {\ 80 | color: #794938\ 81 | }\ 82 | .ace-dawn .ace_constant,\ 83 | .ace-dawn .ace_constant.ace_character,\ 84 | .ace-dawn .ace_constant.ace_character.ace_escape,\ 85 | .ace-dawn .ace_constant.ace_other {\ 86 | color: #811F24\ 87 | }\ 88 | .ace-dawn .ace_invalid.ace_illegal {\ 89 | text-decoration: underline;\ 90 | font-style: italic;\ 91 | color: #F8F8F8;\ 92 | background-color: #B52A1D\ 93 | }\ 94 | .ace-dawn .ace_invalid.ace_deprecated {\ 95 | text-decoration: underline;\ 96 | font-style: italic;\ 97 | color: #B52A1D\ 98 | }\ 99 | .ace-dawn .ace_support {\ 100 | color: #691C97\ 101 | }\ 102 | .ace-dawn .ace_support.ace_constant {\ 103 | color: #B4371F\ 104 | }\ 105 | .ace-dawn .ace_fold {\ 106 | background-color: #794938;\ 107 | border-color: #080808\ 108 | }\ 109 | .ace-dawn .ace_list,\ 110 | .ace-dawn .ace_markup.ace_list,\ 111 | .ace-dawn .ace_support.ace_function {\ 112 | color: #693A17\ 113 | }\ 114 | .ace-dawn .ace_storage {\ 115 | font-style: italic;\ 116 | color: #A71D5D\ 117 | }\ 118 | .ace-dawn .ace_string {\ 119 | color: #0B6125\ 120 | }\ 121 | .ace-dawn .ace_string.ace_regexp {\ 122 | color: #CF5628\ 123 | }\ 124 | .ace-dawn .ace_comment {\ 125 | font-style: italic;\ 126 | color: #5A525F\ 127 | }\ 128 | .ace-dawn .ace_heading,\ 129 | .ace-dawn .ace_markup.ace_heading {\ 130 | color: #19356D\ 131 | }\ 132 | .ace-dawn .ace_variable {\ 133 | color: #234A97\ 134 | }\ 135 | .ace-dawn .ace_indent-guide {\ 136 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y\ 137 | }"; 138 | 139 | var dom = require("../lib/dom"); 140 | dom.importCssString(exports.cssText, exports.cssClass); 141 | }); -------------------------------------------------------------------------------- /public/ace/theme-eclipse.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/eclipse', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssText = ".ace-eclipse .ace_gutter {\ 37 | background: #ebebeb;\ 38 | border-right: 1px solid rgb(159, 159, 159);\ 39 | color: rgb(136, 136, 136);\ 40 | }\ 41 | .ace-eclipse .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #ebebeb;\ 44 | }\ 45 | .ace-eclipse {\ 46 | background-color: #FFFFFF;\ 47 | color: black;\ 48 | }\ 49 | .ace-eclipse .ace_fold {\ 50 | background-color: rgb(60, 76, 114);\ 51 | }\ 52 | .ace-eclipse .ace_cursor {\ 53 | color: black;\ 54 | }\ 55 | .ace-eclipse .ace_storage,\ 56 | .ace-eclipse .ace_keyword,\ 57 | .ace-eclipse .ace_variable {\ 58 | color: rgb(127, 0, 85);\ 59 | }\ 60 | .ace-eclipse .ace_constant.ace_buildin {\ 61 | color: rgb(88, 72, 246);\ 62 | }\ 63 | .ace-eclipse .ace_constant.ace_library {\ 64 | color: rgb(6, 150, 14);\ 65 | }\ 66 | .ace-eclipse .ace_function {\ 67 | color: rgb(60, 76, 114);\ 68 | }\ 69 | .ace-eclipse .ace_string {\ 70 | color: rgb(42, 0, 255);\ 71 | }\ 72 | .ace-eclipse .ace_comment {\ 73 | color: rgb(113, 150, 130);\ 74 | }\ 75 | .ace-eclipse .ace_comment.ace_doc {\ 76 | color: rgb(63, 95, 191);\ 77 | }\ 78 | .ace-eclipse .ace_comment.ace_doc.ace_tag {\ 79 | color: rgb(127, 159, 191);\ 80 | }\ 81 | .ace-eclipse .ace_constant.ace_numeric {\ 82 | color: darkblue;\ 83 | }\ 84 | .ace-eclipse .ace_tag {\ 85 | color: rgb(25, 118, 116);\ 86 | }\ 87 | .ace-eclipse .ace_type {\ 88 | color: rgb(127, 0, 127);\ 89 | }\ 90 | .ace-eclipse .ace_xml-pe {\ 91 | color: rgb(104, 104, 91);\ 92 | }\ 93 | .ace-eclipse .ace_marker-layer .ace_selection {\ 94 | background: rgb(181, 213, 255);\ 95 | }\ 96 | .ace-eclipse .ace_marker-layer .ace_bracket {\ 97 | margin: -1px 0 0 -1px;\ 98 | border: 1px solid rgb(192, 192, 192);\ 99 | }\ 100 | .ace-eclipse .ace_meta.ace_tag {\ 101 | color:rgb(25, 118, 116);\ 102 | }\ 103 | .ace-eclipse .ace_invisible {\ 104 | color: #ddd;\ 105 | }\ 106 | .ace-eclipse .ace_entity.ace_other.ace_attribute-name {\ 107 | color:rgb(127, 0, 127);\ 108 | }\ 109 | .ace-eclipse .ace_marker-layer .ace_step {\ 110 | background: rgb(255, 255, 0);\ 111 | }\ 112 | .ace-eclipse .ace_marker-layer .ace_active-line {\ 113 | background: rgb(232, 242, 254);\ 114 | }\ 115 | .ace-eclipse .ace_marker-layer .ace_selected-word {\ 116 | border: 1px solid rgb(181, 213, 255);\ 117 | }\ 118 | .ace-eclipse .ace_indent-guide {\ 119 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\ 120 | }"; 121 | 122 | exports.cssClass = "ace-eclipse"; 123 | 124 | var dom = require("../lib/dom"); 125 | dom.importCssString(exports.cssText, exports.cssClass); 126 | }); -------------------------------------------------------------------------------- /public/ace/theme-github.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/github', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-github"; 37 | exports.cssText = "/* CSS style content from github's default pygments highlighter template.\ 38 | Cursor and selection styles from textmate.css. */\ 39 | .ace-github .ace_gutter {\ 40 | background: #e8e8e8;\ 41 | color: #AAA;\ 42 | }\ 43 | .ace-github {\ 44 | background: #fff;\ 45 | color: #000;\ 46 | }\ 47 | .ace-github .ace_keyword {\ 48 | font-weight: bold;\ 49 | }\ 50 | .ace-github .ace_string {\ 51 | color: #D14;\ 52 | }\ 53 | .ace-github .ace_variable.ace_class {\ 54 | color: teal;\ 55 | }\ 56 | .ace-github .ace_constant.ace_numeric {\ 57 | color: #099;\ 58 | }\ 59 | .ace-github .ace_constant.ace_buildin {\ 60 | color: #0086B3;\ 61 | }\ 62 | .ace-github .ace_support.ace_function {\ 63 | color: #0086B3;\ 64 | }\ 65 | .ace-github .ace_comment {\ 66 | color: #998;\ 67 | font-style: italic;\ 68 | }\ 69 | .ace-github .ace_variable.ace_language {\ 70 | color: #0086B3;\ 71 | }\ 72 | .ace-github .ace_paren {\ 73 | font-weight: bold;\ 74 | }\ 75 | .ace-github .ace_boolean {\ 76 | font-weight: bold;\ 77 | }\ 78 | .ace-github .ace_string.ace_regexp {\ 79 | color: #009926;\ 80 | font-weight: normal;\ 81 | }\ 82 | .ace-github .ace_variable.ace_instance {\ 83 | color: teal;\ 84 | }\ 85 | .ace-github .ace_constant.ace_language {\ 86 | font-weight: bold;\ 87 | }\ 88 | .ace-github .ace_cursor {\ 89 | color: black;\ 90 | }\ 91 | .ace-github .ace_marker-layer .ace_active-line {\ 92 | background: rgb(255, 255, 204);\ 93 | }\ 94 | .ace-github .ace_marker-layer .ace_selection {\ 95 | background: rgb(181, 213, 255);\ 96 | }\ 97 | .ace-github.ace_multiselect .ace_selection.ace_start {\ 98 | box-shadow: 0 0 3px 0px white;\ 99 | border-radius: 2px;\ 100 | }\ 101 | /* bold keywords cause cursor issues for some fonts */\ 102 | /* this disables bold style for editor and keeps for static highlighter */\ 103 | .ace-github.ace_nobold .ace_line > span {\ 104 | font-weight: normal !important;\ 105 | }\ 106 | .ace-github .ace_marker-layer .ace_step {\ 107 | background: rgb(252, 255, 0);\ 108 | }\ 109 | .ace-github .ace_marker-layer .ace_stack {\ 110 | background: rgb(164, 229, 101);\ 111 | }\ 112 | .ace-github .ace_marker-layer .ace_bracket {\ 113 | margin: -1px 0 0 -1px;\ 114 | border: 1px solid rgb(192, 192, 192);\ 115 | }\ 116 | .ace-github .ace_gutter-active-line {\ 117 | background-color : rgba(0, 0, 0, 0.07);\ 118 | }\ 119 | .ace-github .ace_marker-layer .ace_selected-word {\ 120 | background: rgb(250, 250, 255);\ 121 | border: 1px solid rgb(200, 200, 250);\ 122 | }\ 123 | .ace-github .ace_print-margin {\ 124 | width: 1px;\ 125 | background: #e8e8e8;\ 126 | }\ 127 | .ace-github .ace_indent-guide {\ 128 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\ 129 | }"; 130 | 131 | var dom = require("../lib/dom"); 132 | dom.importCssString(exports.cssText, exports.cssClass); 133 | }); -------------------------------------------------------------------------------- /public/ace/theme-idle_fingers.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/idle_fingers', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-idle-fingers"; 37 | exports.cssText = ".ace-idle-fingers .ace_gutter {\ 38 | background: #3b3b3b;\ 39 | color: #fff\ 40 | }\ 41 | .ace-idle-fingers .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #3b3b3b\ 44 | }\ 45 | .ace-idle-fingers {\ 46 | background-color: #323232;\ 47 | color: #FFFFFF\ 48 | }\ 49 | .ace-idle-fingers .ace_cursor {\ 50 | color: #91FF00\ 51 | }\ 52 | .ace-idle-fingers .ace_marker-layer .ace_selection {\ 53 | background: rgba(90, 100, 126, 0.88)\ 54 | }\ 55 | .ace-idle-fingers.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #323232;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-idle-fingers .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-idle-fingers .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #404040\ 65 | }\ 66 | .ace-idle-fingers .ace_marker-layer .ace_active-line {\ 67 | background: #353637\ 68 | }\ 69 | .ace-idle-fingers .ace_gutter-active-line {\ 70 | background-color: #353637\ 71 | }\ 72 | .ace-idle-fingers .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid rgba(90, 100, 126, 0.88)\ 74 | }\ 75 | .ace-idle-fingers .ace_invisible {\ 76 | color: #404040\ 77 | }\ 78 | .ace-idle-fingers .ace_keyword,\ 79 | .ace-idle-fingers .ace_meta {\ 80 | color: #CC7833\ 81 | }\ 82 | .ace-idle-fingers .ace_constant,\ 83 | .ace-idle-fingers .ace_constant.ace_character,\ 84 | .ace-idle-fingers .ace_constant.ace_character.ace_escape,\ 85 | .ace-idle-fingers .ace_constant.ace_other,\ 86 | .ace-idle-fingers .ace_support.ace_constant {\ 87 | color: #6C99BB\ 88 | }\ 89 | .ace-idle-fingers .ace_invalid {\ 90 | color: #FFFFFF;\ 91 | background-color: #FF0000\ 92 | }\ 93 | .ace-idle-fingers .ace_fold {\ 94 | background-color: #CC7833;\ 95 | border-color: #FFFFFF\ 96 | }\ 97 | .ace-idle-fingers .ace_support.ace_function {\ 98 | color: #B83426\ 99 | }\ 100 | .ace-idle-fingers .ace_variable.ace_parameter {\ 101 | font-style: italic\ 102 | }\ 103 | .ace-idle-fingers .ace_string {\ 104 | color: #A5C261\ 105 | }\ 106 | .ace-idle-fingers .ace_string.ace_regexp {\ 107 | color: #CCCC33\ 108 | }\ 109 | .ace-idle-fingers .ace_comment {\ 110 | font-style: italic;\ 111 | color: #BC9458\ 112 | }\ 113 | .ace-idle-fingers .ace_meta.ace_tag {\ 114 | color: #FFE5BB\ 115 | }\ 116 | .ace-idle-fingers .ace_entity.ace_name {\ 117 | color: #FFC66D\ 118 | }\ 119 | .ace-idle-fingers .ace_collab.ace_user1 {\ 120 | color: #323232;\ 121 | background-color: #FFF980\ 122 | }\ 123 | .ace-idle-fingers .ace_indent-guide {\ 124 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMwMjLyZYiPj/8PAAreAwAI1+g0AAAAAElFTkSuQmCC) right repeat-y\ 125 | }"; 126 | 127 | var dom = require("../lib/dom"); 128 | dom.importCssString(exports.cssText, exports.cssClass); 129 | }); -------------------------------------------------------------------------------- /public/ace/theme-kr.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/kr_theme', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-kr-theme"; 37 | exports.cssText = ".ace-kr-theme .ace_gutter {\ 38 | background: #1c1917;\ 39 | color: #FCFFE0\ 40 | }\ 41 | .ace-kr-theme .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #1c1917\ 44 | }\ 45 | .ace-kr-theme {\ 46 | background-color: #0B0A09;\ 47 | color: #FCFFE0\ 48 | }\ 49 | .ace-kr-theme .ace_cursor {\ 50 | color: #FF9900\ 51 | }\ 52 | .ace-kr-theme .ace_marker-layer .ace_selection {\ 53 | background: rgba(170, 0, 255, 0.45)\ 54 | }\ 55 | .ace-kr-theme.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #0B0A09;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-kr-theme .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-kr-theme .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid rgba(255, 177, 111, 0.32)\ 65 | }\ 66 | .ace-kr-theme .ace_marker-layer .ace_active-line {\ 67 | background: #38403D\ 68 | }\ 69 | .ace-kr-theme .ace_gutter-active-line {\ 70 | background-color : #38403D\ 71 | }\ 72 | .ace-kr-theme .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid rgba(170, 0, 255, 0.45)\ 74 | }\ 75 | .ace-kr-theme .ace_invisible {\ 76 | color: rgba(255, 177, 111, 0.32)\ 77 | }\ 78 | .ace-kr-theme .ace_keyword,\ 79 | .ace-kr-theme .ace_meta {\ 80 | color: #949C8B\ 81 | }\ 82 | .ace-kr-theme .ace_constant,\ 83 | .ace-kr-theme .ace_constant.ace_character,\ 84 | .ace-kr-theme .ace_constant.ace_character.ace_escape,\ 85 | .ace-kr-theme .ace_constant.ace_other {\ 86 | color: rgba(210, 117, 24, 0.76)\ 87 | }\ 88 | .ace-kr-theme .ace_invalid {\ 89 | color: #F8F8F8;\ 90 | background-color: #A41300\ 91 | }\ 92 | .ace-kr-theme .ace_support {\ 93 | color: #9FC28A\ 94 | }\ 95 | .ace-kr-theme .ace_support.ace_constant {\ 96 | color: #C27E66\ 97 | }\ 98 | .ace-kr-theme .ace_fold {\ 99 | background-color: #949C8B;\ 100 | border-color: #FCFFE0\ 101 | }\ 102 | .ace-kr-theme .ace_support.ace_function {\ 103 | color: #85873A\ 104 | }\ 105 | .ace-kr-theme .ace_storage {\ 106 | color: #FFEE80\ 107 | }\ 108 | .ace-kr-theme .ace_string {\ 109 | color: rgba(164, 161, 181, 0.8)\ 110 | }\ 111 | .ace-kr-theme .ace_string.ace_regexp {\ 112 | color: rgba(125, 255, 192, 0.65)\ 113 | }\ 114 | .ace-kr-theme .ace_comment {\ 115 | font-style: italic;\ 116 | color: #706D5B\ 117 | }\ 118 | .ace-kr-theme .ace_variable {\ 119 | color: #D1A796\ 120 | }\ 121 | .ace-kr-theme .ace_list,\ 122 | .ace-kr-theme .ace_markup.ace_list {\ 123 | background-color: #0F0040\ 124 | }\ 125 | .ace-kr-theme .ace_variable.ace_language {\ 126 | color: #FF80E1\ 127 | }\ 128 | .ace-kr-theme .ace_meta.ace_tag {\ 129 | color: #BABD9C\ 130 | }\ 131 | .ace-kr-theme .ace_indent-guide {\ 132 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y\ 133 | }"; 134 | 135 | var dom = require("../lib/dom"); 136 | dom.importCssString(exports.cssText, exports.cssClass); 137 | }); -------------------------------------------------------------------------------- /public/ace/theme-kuroir.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/kuroir', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-kuroir"; 37 | exports.cssText = "/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 467560D0-6ACE-4409-82FD-4791420837AC) */\ 38 | .ace-kuroir .ace_gutter {\ 39 | background: #e8e8e8;\ 40 | color: #333;\ 41 | }\ 42 | .ace-kuroir .ace_print-margin {\ 43 | width: 1px;\ 44 | background: #e8e8e8;\ 45 | }\ 46 | .ace-kuroir {\ 47 | background-color: #E8E9E8;\ 48 | color: #363636;\ 49 | }\ 50 | .ace-kuroir .ace_cursor {\ 51 | color: #202020;\ 52 | }\ 53 | .ace-kuroir .ace_marker-layer .ace_selection {\ 54 | background: rgba(245, 170, 0, 0.57);\ 55 | }\ 56 | .ace-kuroir.ace_multiselect .ace_selection.ace_start {\ 57 | box-shadow: 0 0 3px 0px #E8E9E8;\ 58 | border-radius: 2px;\ 59 | }\ 60 | .ace-kuroir .ace_marker-layer .ace_step {\ 61 | background: rgb(198, 219, 174);\ 62 | }\ 63 | .ace-kuroir .ace_marker-layer .ace_bracket {\ 64 | margin: -1px 0 0 -1px;\ 65 | border: 1px solid rgba(0, 0, 0, 0.29);\ 66 | }\ 67 | .ace-kuroir .ace_marker-layer .ace_active-line {\ 68 | background: rgba(203, 220, 47, 0.22);\ 69 | }\ 70 | .ace-kuroir .ace_gutter-active-line {\ 71 | background-color: rgba(203, 220, 47, 0.22);\ 72 | }\ 73 | .ace-kuroir .ace_marker-layer .ace_selected-word {\ 74 | border: 1px solid rgba(245, 170, 0, 0.57);\ 75 | }\ 76 | .ace-kuroir .ace_fold {\ 77 | border-color: #363636;\ 78 | }\ 79 | .ace-kuroir .ace_constant{color:#CD6839;}.ace-kuroir .ace_constant.ace_numeric{color:#9A5925;}.ace-kuroir .ace_support{color:#104E8B;}.ace-kuroir .ace_support.ace_function{color:#005273;}.ace-kuroir .ace_support.ace_constant{color:#CF6A4C;}.ace-kuroir .ace_storage{color:#A52A2A;}.ace-kuroir .ace_invalid.ace_illegal{color:#FD1224;\ 80 | background-color:rgba(255, 6, 0, 0.15);}.ace-kuroir .ace_invalid.ace_deprecated{text-decoration:underline;\ 81 | font-style:italic;\ 82 | color:#FD1732;\ 83 | background-color:#E8E9E8;}.ace-kuroir .ace_string{color:#639300;}.ace-kuroir .ace_string.ace_regexp{color:#417E00;\ 84 | background-color:#C9D4BE;}.ace-kuroir .ace_comment{color:rgba(148, 148, 148, 0.91);\ 85 | background-color:rgba(220, 220, 220, 0.56);}.ace-kuroir .ace_variable{color:#009ACD;}.ace-kuroir .ace_meta.ace_tag{color:#005273;}.ace-kuroir .ace_markup.ace_heading{color:#B8012D;\ 86 | background-color:rgba(191, 97, 51, 0.051);}.ace-kuroir .ace_markup.ace_list{color:#8F5B26;}\ 87 | "; 88 | 89 | var dom = require("../lib/dom"); 90 | dom.importCssString(exports.cssText, exports.cssClass); 91 | }); -------------------------------------------------------------------------------- /public/ace/theme-merbivore.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/merbivore', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-merbivore"; 37 | exports.cssText = ".ace-merbivore .ace_gutter {\ 38 | background: #202020;\ 39 | color: #E6E1DC\ 40 | }\ 41 | .ace-merbivore .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #555651\ 44 | }\ 45 | .ace-merbivore {\ 46 | background-color: #161616;\ 47 | color: #E6E1DC\ 48 | }\ 49 | .ace-merbivore .ace_cursor {\ 50 | color: #FFFFFF\ 51 | }\ 52 | .ace-merbivore .ace_marker-layer .ace_selection {\ 53 | background: #454545\ 54 | }\ 55 | .ace-merbivore.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #161616;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-merbivore .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-merbivore .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #404040\ 65 | }\ 66 | .ace-merbivore .ace_marker-layer .ace_active-line {\ 67 | background: #333435\ 68 | }\ 69 | .ace-merbivore .ace_gutter-active-line {\ 70 | background-color: #333435\ 71 | }\ 72 | .ace-merbivore .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #454545\ 74 | }\ 75 | .ace-merbivore .ace_invisible {\ 76 | color: #404040\ 77 | }\ 78 | .ace-merbivore .ace_entity.ace_name.ace_tag,\ 79 | .ace-merbivore .ace_keyword,\ 80 | .ace-merbivore .ace_meta,\ 81 | .ace-merbivore .ace_meta.ace_tag,\ 82 | .ace-merbivore .ace_storage,\ 83 | .ace-merbivore .ace_support.ace_function {\ 84 | color: #FC6F09\ 85 | }\ 86 | .ace-merbivore .ace_constant,\ 87 | .ace-merbivore .ace_constant.ace_character,\ 88 | .ace-merbivore .ace_constant.ace_character.ace_escape,\ 89 | .ace-merbivore .ace_constant.ace_other,\ 90 | .ace-merbivore .ace_support.ace_type {\ 91 | color: #1EDAFB\ 92 | }\ 93 | .ace-merbivore .ace_constant.ace_character.ace_escape {\ 94 | color: #519F50\ 95 | }\ 96 | .ace-merbivore .ace_constant.ace_language {\ 97 | color: #FDC251\ 98 | }\ 99 | .ace-merbivore .ace_constant.ace_library,\ 100 | .ace-merbivore .ace_string,\ 101 | .ace-merbivore .ace_support.ace_constant {\ 102 | color: #8DFF0A\ 103 | }\ 104 | .ace-merbivore .ace_constant.ace_numeric {\ 105 | color: #58C554\ 106 | }\ 107 | .ace-merbivore .ace_invalid {\ 108 | color: #FFFFFF;\ 109 | background-color: #990000\ 110 | }\ 111 | .ace-merbivore .ace_fold {\ 112 | background-color: #FC6F09;\ 113 | border-color: #E6E1DC\ 114 | }\ 115 | .ace-merbivore .ace_comment {\ 116 | font-style: italic;\ 117 | color: #AD2EA4\ 118 | }\ 119 | .ace-merbivore .ace_entity.ace_other.ace_attribute-name {\ 120 | color: #FFFF89\ 121 | }\ 122 | .ace-merbivore .ace_indent-guide {\ 123 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQFxf3ZXB1df0PAAdsAmERTkEHAAAAAElFTkSuQmCC) right repeat-y\ 124 | }"; 125 | 126 | var dom = require("../lib/dom"); 127 | dom.importCssString(exports.cssText, exports.cssClass); 128 | }); -------------------------------------------------------------------------------- /public/ace/theme-merbivore_soft.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/merbivore_soft', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-merbivore-soft"; 37 | exports.cssText = ".ace-merbivore-soft .ace_gutter {\ 38 | background: #262424;\ 39 | color: #E6E1DC\ 40 | }\ 41 | .ace-merbivore-soft .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #262424\ 44 | }\ 45 | .ace-merbivore-soft {\ 46 | background-color: #1C1C1C;\ 47 | color: #E6E1DC\ 48 | }\ 49 | .ace-merbivore-soft .ace_cursor {\ 50 | color: #FFFFFF\ 51 | }\ 52 | .ace-merbivore-soft .ace_marker-layer .ace_selection {\ 53 | background: #494949\ 54 | }\ 55 | .ace-merbivore-soft.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #1C1C1C;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-merbivore-soft .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-merbivore-soft .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #404040\ 65 | }\ 66 | .ace-merbivore-soft .ace_marker-layer .ace_active-line {\ 67 | background: #333435\ 68 | }\ 69 | .ace-merbivore-soft .ace_gutter-active-line {\ 70 | background-color: #333435\ 71 | }\ 72 | .ace-merbivore-soft .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #494949\ 74 | }\ 75 | .ace-merbivore-soft .ace_invisible {\ 76 | color: #404040\ 77 | }\ 78 | .ace-merbivore-soft .ace_entity.ace_name.ace_tag,\ 79 | .ace-merbivore-soft .ace_keyword,\ 80 | .ace-merbivore-soft .ace_meta,\ 81 | .ace-merbivore-soft .ace_meta.ace_tag,\ 82 | .ace-merbivore-soft .ace_storage {\ 83 | color: #FC803A\ 84 | }\ 85 | .ace-merbivore-soft .ace_constant,\ 86 | .ace-merbivore-soft .ace_constant.ace_character,\ 87 | .ace-merbivore-soft .ace_constant.ace_character.ace_escape,\ 88 | .ace-merbivore-soft .ace_constant.ace_other,\ 89 | .ace-merbivore-soft .ace_support.ace_type {\ 90 | color: #68C1D8\ 91 | }\ 92 | .ace-merbivore-soft .ace_constant.ace_character.ace_escape {\ 93 | color: #B3E5B4\ 94 | }\ 95 | .ace-merbivore-soft .ace_constant.ace_language {\ 96 | color: #E1C582\ 97 | }\ 98 | .ace-merbivore-soft .ace_constant.ace_library,\ 99 | .ace-merbivore-soft .ace_string,\ 100 | .ace-merbivore-soft .ace_support.ace_constant {\ 101 | color: #8EC65F\ 102 | }\ 103 | .ace-merbivore-soft .ace_constant.ace_numeric {\ 104 | color: #7FC578\ 105 | }\ 106 | .ace-merbivore-soft .ace_invalid,\ 107 | .ace-merbivore-soft .ace_invalid.ace_deprecated {\ 108 | color: #FFFFFF;\ 109 | background-color: #FE3838\ 110 | }\ 111 | .ace-merbivore-soft .ace_fold {\ 112 | background-color: #FC803A;\ 113 | border-color: #E6E1DC\ 114 | }\ 115 | .ace-merbivore-soft .ace_comment,\ 116 | .ace-merbivore-soft .ace_meta {\ 117 | font-style: italic;\ 118 | color: #AC4BB8\ 119 | }\ 120 | .ace-merbivore-soft .ace_entity.ace_other.ace_attribute-name {\ 121 | color: #EAF1A3\ 122 | }\ 123 | .ace-merbivore-soft .ace_indent-guide {\ 124 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWOQkpLyZfD09PwPAAfYAnaStpHRAAAAAElFTkSuQmCC) right repeat-y\ 125 | }"; 126 | 127 | var dom = require("../lib/dom"); 128 | dom.importCssString(exports.cssText, exports.cssClass); 129 | }); -------------------------------------------------------------------------------- /public/ace/theme-monokai.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/monokai', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-monokai"; 37 | exports.cssText = ".ace-monokai .ace_gutter {\ 38 | background: #2F3129;\ 39 | color: #8F908A\ 40 | }\ 41 | .ace-monokai .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #555651\ 44 | }\ 45 | .ace-monokai {\ 46 | background-color: #272822;\ 47 | color: #F8F8F2\ 48 | }\ 49 | .ace-monokai .ace_cursor {\ 50 | color: #F8F8F0\ 51 | }\ 52 | .ace-monokai .ace_marker-layer .ace_selection {\ 53 | background: #49483E\ 54 | }\ 55 | .ace-monokai.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #272822;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-monokai .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-monokai .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #49483E\ 65 | }\ 66 | .ace-monokai .ace_marker-layer .ace_active-line {\ 67 | background: #202020\ 68 | }\ 69 | .ace-monokai .ace_gutter-active-line {\ 70 | background-color: #272727\ 71 | }\ 72 | .ace-monokai .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #49483E\ 74 | }\ 75 | .ace-monokai .ace_invisible {\ 76 | color: #52524d\ 77 | }\ 78 | .ace-monokai .ace_entity.ace_name.ace_tag,\ 79 | .ace-monokai .ace_keyword,\ 80 | .ace-monokai .ace_meta.ace_tag,\ 81 | .ace-monokai .ace_storage {\ 82 | color: #F92672\ 83 | }\ 84 | .ace-monokai .ace_punctuation,\ 85 | .ace-monokai .ace_punctuation.ace_tag {\ 86 | color: #fff\ 87 | }\ 88 | .ace-monokai .ace_constant.ace_character,\ 89 | .ace-monokai .ace_constant.ace_language,\ 90 | .ace-monokai .ace_constant.ace_numeric,\ 91 | .ace-monokai .ace_constant.ace_other {\ 92 | color: #AE81FF\ 93 | }\ 94 | .ace-monokai .ace_invalid {\ 95 | color: #F8F8F0;\ 96 | background-color: #F92672\ 97 | }\ 98 | .ace-monokai .ace_invalid.ace_deprecated {\ 99 | color: #F8F8F0;\ 100 | background-color: #AE81FF\ 101 | }\ 102 | .ace-monokai .ace_support.ace_constant,\ 103 | .ace-monokai .ace_support.ace_function {\ 104 | color: #66D9EF\ 105 | }\ 106 | .ace-monokai .ace_fold {\ 107 | background-color: #A6E22E;\ 108 | border-color: #F8F8F2\ 109 | }\ 110 | .ace-monokai .ace_storage.ace_type,\ 111 | .ace-monokai .ace_support.ace_class,\ 112 | .ace-monokai .ace_support.ace_type {\ 113 | font-style: italic;\ 114 | color: #66D9EF\ 115 | }\ 116 | .ace-monokai .ace_entity.ace_name.ace_function,\ 117 | .ace-monokai .ace_entity.ace_other,\ 118 | .ace-monokai .ace_entity.ace_other.ace_attribute-name,\ 119 | .ace-monokai .ace_variable {\ 120 | color: #A6E22E\ 121 | }\ 122 | .ace-monokai .ace_variable.ace_parameter {\ 123 | font-style: italic;\ 124 | color: #FD971F\ 125 | }\ 126 | .ace-monokai .ace_string {\ 127 | color: #E6DB74\ 128 | }\ 129 | .ace-monokai .ace_comment {\ 130 | color: #75715E\ 131 | }\ 132 | .ace-monokai .ace_indent-guide {\ 133 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y\ 134 | }"; 135 | 136 | var dom = require("../lib/dom"); 137 | dom.importCssString(exports.cssText, exports.cssClass); 138 | }); -------------------------------------------------------------------------------- /public/ace/theme-pastel_on_dark.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/pastel_on_dark', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-pastel-on-dark"; 37 | exports.cssText = ".ace-pastel-on-dark .ace_gutter {\ 38 | background: #353030;\ 39 | color: #8F938F\ 40 | }\ 41 | .ace-pastel-on-dark .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #353030\ 44 | }\ 45 | .ace-pastel-on-dark {\ 46 | background-color: #2C2828;\ 47 | color: #8F938F\ 48 | }\ 49 | .ace-pastel-on-dark .ace_cursor {\ 50 | color: #A7A7A7\ 51 | }\ 52 | .ace-pastel-on-dark .ace_marker-layer .ace_selection {\ 53 | background: rgba(221, 240, 255, 0.20)\ 54 | }\ 55 | .ace-pastel-on-dark.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #2C2828;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-pastel-on-dark .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-pastel-on-dark .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid rgba(255, 255, 255, 0.25)\ 65 | }\ 66 | .ace-pastel-on-dark .ace_marker-layer .ace_active-line {\ 67 | background: rgba(255, 255, 255, 0.031)\ 68 | }\ 69 | .ace-pastel-on-dark .ace_gutter-active-line {\ 70 | background-color: rgba(255, 255, 255, 0.031)\ 71 | }\ 72 | .ace-pastel-on-dark .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid rgba(221, 240, 255, 0.20)\ 74 | }\ 75 | .ace-pastel-on-dark .ace_invisible {\ 76 | color: rgba(255, 255, 255, 0.25)\ 77 | }\ 78 | .ace-pastel-on-dark .ace_keyword,\ 79 | .ace-pastel-on-dark .ace_meta {\ 80 | color: #757aD8\ 81 | }\ 82 | .ace-pastel-on-dark .ace_constant,\ 83 | .ace-pastel-on-dark .ace_constant.ace_character,\ 84 | .ace-pastel-on-dark .ace_constant.ace_character.ace_escape,\ 85 | .ace-pastel-on-dark .ace_constant.ace_other {\ 86 | color: #4FB7C5\ 87 | }\ 88 | .ace-pastel-on-dark .ace_keyword.ace_operator {\ 89 | color: #797878\ 90 | }\ 91 | .ace-pastel-on-dark .ace_constant.ace_character {\ 92 | color: #AFA472\ 93 | }\ 94 | .ace-pastel-on-dark .ace_constant.ace_language {\ 95 | color: #DE8E30\ 96 | }\ 97 | .ace-pastel-on-dark .ace_constant.ace_numeric {\ 98 | color: #CCCCCC\ 99 | }\ 100 | .ace-pastel-on-dark .ace_invalid,\ 101 | .ace-pastel-on-dark .ace_invalid.ace_illegal {\ 102 | color: #F8F8F8;\ 103 | background-color: rgba(86, 45, 86, 0.75)\ 104 | }\ 105 | .ace-pastel-on-dark .ace_invalid.ace_deprecated {\ 106 | text-decoration: underline;\ 107 | font-style: italic;\ 108 | color: #D2A8A1\ 109 | }\ 110 | .ace-pastel-on-dark .ace_fold {\ 111 | background-color: #757aD8;\ 112 | border-color: #8F938F\ 113 | }\ 114 | .ace-pastel-on-dark .ace_support.ace_function {\ 115 | color: #AEB2F8\ 116 | }\ 117 | .ace-pastel-on-dark .ace_string {\ 118 | color: #66A968\ 119 | }\ 120 | .ace-pastel-on-dark .ace_string.ace_regexp {\ 121 | color: #E9C062\ 122 | }\ 123 | .ace-pastel-on-dark .ace_comment {\ 124 | color: #A6C6FF\ 125 | }\ 126 | .ace-pastel-on-dark .ace_variable {\ 127 | color: #BEBF55\ 128 | }\ 129 | .ace-pastel-on-dark .ace_variable.ace_language {\ 130 | color: #C1C144\ 131 | }\ 132 | .ace-pastel-on-dark .ace_xml-pe {\ 133 | color: #494949\ 134 | }\ 135 | .ace-pastel-on-dark .ace_indent-guide {\ 136 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYIiPj/8PAARgAh2NTMh8AAAAAElFTkSuQmCC) right repeat-y\ 137 | }"; 138 | 139 | var dom = require("../lib/dom"); 140 | dom.importCssString(exports.cssText, exports.cssClass); 141 | }); -------------------------------------------------------------------------------- /public/ace/theme-solarized_dark.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/solarized_dark', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-solarized-dark"; 37 | exports.cssText = ".ace-solarized-dark .ace_gutter {\ 38 | background: #01313f;\ 39 | color: #d0edf7\ 40 | }\ 41 | .ace-solarized-dark .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #33555E\ 44 | }\ 45 | .ace-solarized-dark {\ 46 | background-color: #002B36;\ 47 | color: #93A1A1\ 48 | }\ 49 | .ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,\ 50 | .ace-solarized-dark .ace_storage {\ 51 | color: #93A1A1\ 52 | }\ 53 | .ace-solarized-dark .ace_cursor,\ 54 | .ace-solarized-dark .ace_string.ace_regexp {\ 55 | color: #D30102\ 56 | }\ 57 | .ace-solarized-dark .ace_marker-layer .ace_active-line,\ 58 | .ace-solarized-dark .ace_marker-layer .ace_selection {\ 59 | background: rgba(255, 255, 255, 0.1)\ 60 | }\ 61 | .ace-solarized-dark.ace_multiselect .ace_selection.ace_start {\ 62 | box-shadow: 0 0 3px 0px #002B36;\ 63 | border-radius: 2px\ 64 | }\ 65 | .ace-solarized-dark .ace_marker-layer .ace_step {\ 66 | background: rgb(102, 82, 0)\ 67 | }\ 68 | .ace-solarized-dark .ace_marker-layer .ace_bracket {\ 69 | margin: -1px 0 0 -1px;\ 70 | border: 1px solid rgba(147, 161, 161, 0.50)\ 71 | }\ 72 | .ace-solarized-dark .ace_gutter-active-line {\ 73 | background-color: #0d3440\ 74 | }\ 75 | .ace-solarized-dark .ace_marker-layer .ace_selected-word {\ 76 | border: 1px solid #073642\ 77 | }\ 78 | .ace-solarized-dark .ace_invisible {\ 79 | color: rgba(147, 161, 161, 0.50)\ 80 | }\ 81 | .ace-solarized-dark .ace_keyword,\ 82 | .ace-solarized-dark .ace_meta,\ 83 | .ace-solarized-dark .ace_support.ace_class,\ 84 | .ace-solarized-dark .ace_support.ace_type {\ 85 | color: #859900\ 86 | }\ 87 | .ace-solarized-dark .ace_constant.ace_character,\ 88 | .ace-solarized-dark .ace_constant.ace_other {\ 89 | color: #CB4B16\ 90 | }\ 91 | .ace-solarized-dark .ace_constant.ace_language {\ 92 | color: #B58900\ 93 | }\ 94 | .ace-solarized-dark .ace_constant.ace_numeric {\ 95 | color: #D33682\ 96 | }\ 97 | .ace-solarized-dark .ace_fold {\ 98 | background-color: #268BD2;\ 99 | border-color: #93A1A1\ 100 | }\ 101 | .ace-solarized-dark .ace_entity.ace_name.ace_function,\ 102 | .ace-solarized-dark .ace_entity.ace_name.ace_tag,\ 103 | .ace-solarized-dark .ace_support.ace_function,\ 104 | .ace-solarized-dark .ace_variable,\ 105 | .ace-solarized-dark .ace_variable.ace_language {\ 106 | color: #268BD2\ 107 | }\ 108 | .ace-solarized-dark .ace_string {\ 109 | color: #2AA198\ 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 | }); -------------------------------------------------------------------------------- /public/ace/theme-solarized_light.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/solarized_light', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-solarized-light"; 37 | exports.cssText = ".ace-solarized-light .ace_gutter {\ 38 | background: #fbf1d3;\ 39 | color: #333\ 40 | }\ 41 | .ace-solarized-light .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #e8e8e8\ 44 | }\ 45 | .ace-solarized-light {\ 46 | background-color: #FDF6E3;\ 47 | color: #586E75\ 48 | }\ 49 | .ace-solarized-light .ace_cursor {\ 50 | color: #000000\ 51 | }\ 52 | .ace-solarized-light .ace_marker-layer .ace_selection {\ 53 | background: rgba(7, 54, 67, 0.09)\ 54 | }\ 55 | .ace-solarized-light.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #FDF6E3;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-solarized-light .ace_marker-layer .ace_step {\ 60 | background: rgb(255, 255, 0)\ 61 | }\ 62 | .ace-solarized-light .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid rgba(147, 161, 161, 0.50)\ 65 | }\ 66 | .ace-solarized-light .ace_marker-layer .ace_active-line {\ 67 | background: #EEE8D5\ 68 | }\ 69 | .ace-solarized-light .ace_gutter-active-line {\ 70 | background-color : #EDE5C1\ 71 | }\ 72 | .ace-solarized-light .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #073642\ 74 | }\ 75 | .ace-solarized-light .ace_invisible {\ 76 | color: rgba(147, 161, 161, 0.50)\ 77 | }\ 78 | .ace-solarized-light .ace_keyword,\ 79 | .ace-solarized-light .ace_meta,\ 80 | .ace-solarized-light .ace_support.ace_class,\ 81 | .ace-solarized-light .ace_support.ace_type {\ 82 | color: #859900\ 83 | }\ 84 | .ace-solarized-light .ace_constant.ace_character,\ 85 | .ace-solarized-light .ace_constant.ace_other {\ 86 | color: #CB4B16\ 87 | }\ 88 | .ace-solarized-light .ace_constant.ace_language {\ 89 | color: #B58900\ 90 | }\ 91 | .ace-solarized-light .ace_constant.ace_numeric {\ 92 | color: #D33682\ 93 | }\ 94 | .ace-solarized-light .ace_fold {\ 95 | background-color: #268BD2;\ 96 | border-color: #586E75\ 97 | }\ 98 | .ace-solarized-light .ace_entity.ace_name.ace_function,\ 99 | .ace-solarized-light .ace_entity.ace_name.ace_tag,\ 100 | .ace-solarized-light .ace_support.ace_function,\ 101 | .ace-solarized-light .ace_variable,\ 102 | .ace-solarized-light .ace_variable.ace_language {\ 103 | color: #268BD2\ 104 | }\ 105 | .ace-solarized-light .ace_storage {\ 106 | color: #073642\ 107 | }\ 108 | .ace-solarized-light .ace_string {\ 109 | color: #2AA198\ 110 | }\ 111 | .ace-solarized-light .ace_string.ace_regexp {\ 112 | color: #D30102\ 113 | }\ 114 | .ace-solarized-light .ace_comment,\ 115 | .ace-solarized-light .ace_entity.ace_other.ace_attribute-name {\ 116 | color: #93A1A1\ 117 | }\ 118 | .ace-solarized-light .ace_indent-guide {\ 119 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHjy8NJ/AAjgA5fzQUmBAAAAAElFTkSuQmCC) right repeat-y\ 120 | }"; 121 | 122 | var dom = require("../lib/dom"); 123 | dom.importCssString(exports.cssText, exports.cssClass); 124 | }); -------------------------------------------------------------------------------- /public/ace/theme-textmate.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/textmate', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-tm"; 37 | exports.cssText = ".ace-tm .ace_gutter {\ 38 | background: #f0f0f0;\ 39 | color: #333;\ 40 | }\ 41 | .ace-tm .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #e8e8e8;\ 44 | }\ 45 | .ace-tm .ace_fold {\ 46 | background-color: #6B72E6;\ 47 | }\ 48 | .ace-tm {\ 49 | background-color: #FFFFFF;\ 50 | color: black;\ 51 | }\ 52 | .ace-tm .ace_cursor {\ 53 | color: black;\ 54 | }\ 55 | .ace-tm .ace_invisible {\ 56 | color: rgb(191, 191, 191);\ 57 | }\ 58 | .ace-tm .ace_storage,\ 59 | .ace-tm .ace_keyword {\ 60 | color: blue;\ 61 | }\ 62 | .ace-tm .ace_constant {\ 63 | color: rgb(197, 6, 11);\ 64 | }\ 65 | .ace-tm .ace_constant.ace_buildin {\ 66 | color: rgb(88, 72, 246);\ 67 | }\ 68 | .ace-tm .ace_constant.ace_language {\ 69 | color: rgb(88, 92, 246);\ 70 | }\ 71 | .ace-tm .ace_constant.ace_library {\ 72 | color: rgb(6, 150, 14);\ 73 | }\ 74 | .ace-tm .ace_invalid {\ 75 | background-color: rgba(255, 0, 0, 0.1);\ 76 | color: red;\ 77 | }\ 78 | .ace-tm .ace_support.ace_function {\ 79 | color: rgb(60, 76, 114);\ 80 | }\ 81 | .ace-tm .ace_support.ace_constant {\ 82 | color: rgb(6, 150, 14);\ 83 | }\ 84 | .ace-tm .ace_support.ace_type,\ 85 | .ace-tm .ace_support.ace_class {\ 86 | color: rgb(109, 121, 222);\ 87 | }\ 88 | .ace-tm .ace_keyword.ace_operator {\ 89 | color: rgb(104, 118, 135);\ 90 | }\ 91 | .ace-tm .ace_string {\ 92 | color: rgb(3, 106, 7);\ 93 | }\ 94 | .ace-tm .ace_comment {\ 95 | color: rgb(76, 136, 107);\ 96 | }\ 97 | .ace-tm .ace_comment.ace_doc {\ 98 | color: rgb(0, 102, 255);\ 99 | }\ 100 | .ace-tm .ace_comment.ace_doc.ace_tag {\ 101 | color: rgb(128, 159, 191);\ 102 | }\ 103 | .ace-tm .ace_constant.ace_numeric {\ 104 | color: rgb(0, 0, 205);\ 105 | }\ 106 | .ace-tm .ace_variable {\ 107 | color: rgb(49, 132, 149);\ 108 | }\ 109 | .ace-tm .ace_xml-pe {\ 110 | color: rgb(104, 104, 91);\ 111 | }\ 112 | .ace-tm .ace_entity.ace_name.ace_function {\ 113 | color: #0000A2;\ 114 | }\ 115 | .ace-tm .ace_heading {\ 116 | color: rgb(12, 7, 255);\ 117 | }\ 118 | .ace-tm .ace_list {\ 119 | color:rgb(185, 6, 144);\ 120 | }\ 121 | .ace-tm .ace_meta.ace_tag {\ 122 | color:rgb(0, 22, 142);\ 123 | }\ 124 | .ace-tm .ace_string.ace_regex {\ 125 | color: rgb(255, 0, 0)\ 126 | }\ 127 | .ace-tm .ace_marker-layer .ace_selection {\ 128 | background: rgb(181, 213, 255);\ 129 | }\ 130 | .ace-tm.ace_multiselect .ace_selection.ace_start {\ 131 | box-shadow: 0 0 3px 0px white;\ 132 | border-radius: 2px;\ 133 | }\ 134 | .ace-tm .ace_marker-layer .ace_step {\ 135 | background: rgb(252, 255, 0);\ 136 | }\ 137 | .ace-tm .ace_marker-layer .ace_stack {\ 138 | background: rgb(164, 229, 101);\ 139 | }\ 140 | .ace-tm .ace_marker-layer .ace_bracket {\ 141 | margin: -1px 0 0 -1px;\ 142 | border: 1px solid rgb(192, 192, 192);\ 143 | }\ 144 | .ace-tm .ace_marker-layer .ace_active-line {\ 145 | background: rgba(0, 0, 0, 0.07);\ 146 | }\ 147 | .ace-tm .ace_gutter-active-line {\ 148 | background-color : #dcdcdc;\ 149 | }\ 150 | .ace-tm .ace_marker-layer .ace_selected-word {\ 151 | background: rgb(250, 250, 255);\ 152 | border: 1px solid rgb(200, 200, 250);\ 153 | }\ 154 | .ace-tm .ace_indent-guide {\ 155 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\ 156 | }\ 157 | "; 158 | 159 | var dom = require("../lib/dom"); 160 | dom.importCssString(exports.cssText, exports.cssClass); 161 | }); -------------------------------------------------------------------------------- /public/ace/theme-tomorrow.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/tomorrow', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-tomorrow"; 37 | exports.cssText = ".ace-tomorrow .ace_gutter {\ 38 | background: #f6f6f6;\ 39 | color: #4D4D4C\ 40 | }\ 41 | .ace-tomorrow .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #f6f6f6\ 44 | }\ 45 | .ace-tomorrow {\ 46 | background-color: #FFFFFF;\ 47 | color: #4D4D4C\ 48 | }\ 49 | .ace-tomorrow .ace_cursor {\ 50 | color: #AEAFAD\ 51 | }\ 52 | .ace-tomorrow .ace_marker-layer .ace_selection {\ 53 | background: #D6D6D6\ 54 | }\ 55 | .ace-tomorrow.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #FFFFFF;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-tomorrow .ace_marker-layer .ace_step {\ 60 | background: rgb(255, 255, 0)\ 61 | }\ 62 | .ace-tomorrow .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #D1D1D1\ 65 | }\ 66 | .ace-tomorrow .ace_marker-layer .ace_active-line {\ 67 | background: #EFEFEF\ 68 | }\ 69 | .ace-tomorrow .ace_gutter-active-line {\ 70 | background-color : #dcdcdc\ 71 | }\ 72 | .ace-tomorrow .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #D6D6D6\ 74 | }\ 75 | .ace-tomorrow .ace_invisible {\ 76 | color: #D1D1D1\ 77 | }\ 78 | .ace-tomorrow .ace_keyword,\ 79 | .ace-tomorrow .ace_meta,\ 80 | .ace-tomorrow .ace_storage,\ 81 | .ace-tomorrow .ace_storage.ace_type,\ 82 | .ace-tomorrow .ace_support.ace_type {\ 83 | color: #8959A8\ 84 | }\ 85 | .ace-tomorrow .ace_keyword.ace_operator {\ 86 | color: #3E999F\ 87 | }\ 88 | .ace-tomorrow .ace_constant.ace_character,\ 89 | .ace-tomorrow .ace_constant.ace_language,\ 90 | .ace-tomorrow .ace_constant.ace_numeric,\ 91 | .ace-tomorrow .ace_keyword.ace_other.ace_unit,\ 92 | .ace-tomorrow .ace_support.ace_constant,\ 93 | .ace-tomorrow .ace_variable.ace_parameter {\ 94 | color: #F5871F\ 95 | }\ 96 | .ace-tomorrow .ace_constant.ace_other {\ 97 | color: #666969\ 98 | }\ 99 | .ace-tomorrow .ace_invalid {\ 100 | color: #FFFFFF;\ 101 | background-color: #C82829\ 102 | }\ 103 | .ace-tomorrow .ace_invalid.ace_deprecated {\ 104 | color: #FFFFFF;\ 105 | background-color: #8959A8\ 106 | }\ 107 | .ace-tomorrow .ace_fold {\ 108 | background-color: #4271AE;\ 109 | border-color: #4D4D4C\ 110 | }\ 111 | .ace-tomorrow .ace_entity.ace_name.ace_function,\ 112 | .ace-tomorrow .ace_support.ace_function,\ 113 | .ace-tomorrow .ace_variable {\ 114 | color: #4271AE\ 115 | }\ 116 | .ace-tomorrow .ace_support.ace_class,\ 117 | .ace-tomorrow .ace_support.ace_type {\ 118 | color: #C99E00\ 119 | }\ 120 | .ace-tomorrow .ace_heading,\ 121 | .ace-tomorrow .ace_markup.ace_heading,\ 122 | .ace-tomorrow .ace_string {\ 123 | color: #718C00\ 124 | }\ 125 | .ace-tomorrow .ace_entity.ace_name.ace_tag,\ 126 | .ace-tomorrow .ace_entity.ace_other.ace_attribute-name,\ 127 | .ace-tomorrow .ace_meta.ace_tag,\ 128 | .ace-tomorrow .ace_string.ace_regexp,\ 129 | .ace-tomorrow .ace_variable {\ 130 | color: #C82829\ 131 | }\ 132 | .ace-tomorrow .ace_comment {\ 133 | color: #8E908C\ 134 | }\ 135 | .ace-tomorrow .ace_indent-guide {\ 136 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y\ 137 | }"; 138 | 139 | var dom = require("../lib/dom"); 140 | dom.importCssString(exports.cssText, exports.cssClass); 141 | }); -------------------------------------------------------------------------------- /public/ace/theme-twilight.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/twilight', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-twilight"; 37 | exports.cssText = ".ace-twilight .ace_gutter {\ 38 | background: #232323;\ 39 | color: #E2E2E2\ 40 | }\ 41 | .ace-twilight .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #232323\ 44 | }\ 45 | .ace-twilight {\ 46 | background-color: #141414;\ 47 | color: #F8F8F8\ 48 | }\ 49 | .ace-twilight .ace_cursor {\ 50 | color: #A7A7A7\ 51 | }\ 52 | .ace-twilight .ace_marker-layer .ace_selection {\ 53 | background: rgba(221, 240, 255, 0.20)\ 54 | }\ 55 | .ace-twilight.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #141414;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-twilight .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-twilight .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid rgba(255, 255, 255, 0.25)\ 65 | }\ 66 | .ace-twilight .ace_marker-layer .ace_active-line {\ 67 | background: rgba(255, 255, 255, 0.031)\ 68 | }\ 69 | .ace-twilight .ace_gutter-active-line {\ 70 | background-color: rgba(255, 255, 255, 0.031)\ 71 | }\ 72 | .ace-twilight .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid rgba(221, 240, 255, 0.20)\ 74 | }\ 75 | .ace-twilight .ace_invisible {\ 76 | color: rgba(255, 255, 255, 0.25)\ 77 | }\ 78 | .ace-twilight .ace_keyword,\ 79 | .ace-twilight .ace_meta {\ 80 | color: #CDA869\ 81 | }\ 82 | .ace-twilight .ace_constant,\ 83 | .ace-twilight .ace_constant.ace_character,\ 84 | .ace-twilight .ace_constant.ace_character.ace_escape,\ 85 | .ace-twilight .ace_constant.ace_other,\ 86 | .ace-twilight .ace_heading,\ 87 | .ace-twilight .ace_markup.ace_heading,\ 88 | .ace-twilight .ace_support.ace_constant {\ 89 | color: #CF6A4C\ 90 | }\ 91 | .ace-twilight .ace_invalid.ace_illegal {\ 92 | color: #F8F8F8;\ 93 | background-color: rgba(86, 45, 86, 0.75)\ 94 | }\ 95 | .ace-twilight .ace_invalid.ace_deprecated {\ 96 | text-decoration: underline;\ 97 | font-style: italic;\ 98 | color: #D2A8A1\ 99 | }\ 100 | .ace-twilight .ace_support {\ 101 | color: #9B859D\ 102 | }\ 103 | .ace-twilight .ace_fold {\ 104 | background-color: #AC885B;\ 105 | border-color: #F8F8F8\ 106 | }\ 107 | .ace-twilight .ace_support.ace_function {\ 108 | color: #DAD085\ 109 | }\ 110 | .ace-twilight .ace_list,\ 111 | .ace-twilight .ace_markup.ace_list,\ 112 | .ace-twilight .ace_storage {\ 113 | color: #F9EE98\ 114 | }\ 115 | .ace-twilight .ace_entity.ace_name.ace_function,\ 116 | .ace-twilight .ace_meta.ace_tag,\ 117 | .ace-twilight .ace_variable {\ 118 | color: #AC885B\ 119 | }\ 120 | .ace-twilight .ace_string {\ 121 | color: #8F9D6A\ 122 | }\ 123 | .ace-twilight .ace_string.ace_regexp {\ 124 | color: #E9C062\ 125 | }\ 126 | .ace-twilight .ace_comment {\ 127 | font-style: italic;\ 128 | color: #5F5A60\ 129 | }\ 130 | .ace-twilight .ace_variable {\ 131 | color: #7587A6\ 132 | }\ 133 | .ace-twilight .ace_xml-pe {\ 134 | color: #494949\ 135 | }\ 136 | .ace-twilight .ace_indent-guide {\ 137 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y\ 138 | }"; 139 | 140 | var dom = require("../lib/dom"); 141 | dom.importCssString(exports.cssText, exports.cssClass); 142 | }); -------------------------------------------------------------------------------- /public/ace/theme-vibrant_ink.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/vibrant_ink', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = true; 36 | exports.cssClass = "ace-vibrant-ink"; 37 | exports.cssText = ".ace-vibrant-ink .ace_gutter {\ 38 | background: #1a1a1a;\ 39 | color: #BEBEBE\ 40 | }\ 41 | .ace-vibrant-ink .ace_print-margin {\ 42 | width: 1px;\ 43 | background: #1a1a1a\ 44 | }\ 45 | .ace-vibrant-ink {\ 46 | background-color: #0F0F0F;\ 47 | color: #FFFFFF\ 48 | }\ 49 | .ace-vibrant-ink .ace_cursor {\ 50 | color: #FFFFFF\ 51 | }\ 52 | .ace-vibrant-ink .ace_marker-layer .ace_selection {\ 53 | background: #6699CC\ 54 | }\ 55 | .ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {\ 56 | box-shadow: 0 0 3px 0px #0F0F0F;\ 57 | border-radius: 2px\ 58 | }\ 59 | .ace-vibrant-ink .ace_marker-layer .ace_step {\ 60 | background: rgb(102, 82, 0)\ 61 | }\ 62 | .ace-vibrant-ink .ace_marker-layer .ace_bracket {\ 63 | margin: -1px 0 0 -1px;\ 64 | border: 1px solid #404040\ 65 | }\ 66 | .ace-vibrant-ink .ace_marker-layer .ace_active-line {\ 67 | background: #333333\ 68 | }\ 69 | .ace-vibrant-ink .ace_gutter-active-line {\ 70 | background-color: #333333\ 71 | }\ 72 | .ace-vibrant-ink .ace_marker-layer .ace_selected-word {\ 73 | border: 1px solid #6699CC\ 74 | }\ 75 | .ace-vibrant-ink .ace_invisible {\ 76 | color: #404040\ 77 | }\ 78 | .ace-vibrant-ink .ace_keyword,\ 79 | .ace-vibrant-ink .ace_meta {\ 80 | color: #FF6600\ 81 | }\ 82 | .ace-vibrant-ink .ace_constant,\ 83 | .ace-vibrant-ink .ace_constant.ace_character,\ 84 | .ace-vibrant-ink .ace_constant.ace_character.ace_escape,\ 85 | .ace-vibrant-ink .ace_constant.ace_other {\ 86 | color: #339999\ 87 | }\ 88 | .ace-vibrant-ink .ace_constant.ace_numeric {\ 89 | color: #99CC99\ 90 | }\ 91 | .ace-vibrant-ink .ace_invalid,\ 92 | .ace-vibrant-ink .ace_invalid.ace_deprecated {\ 93 | color: #CCFF33;\ 94 | background-color: #000000\ 95 | }\ 96 | .ace-vibrant-ink .ace_fold {\ 97 | background-color: #FFCC00;\ 98 | border-color: #FFFFFF\ 99 | }\ 100 | .ace-vibrant-ink .ace_entity.ace_name.ace_function,\ 101 | .ace-vibrant-ink .ace_support.ace_function,\ 102 | .ace-vibrant-ink .ace_variable {\ 103 | color: #FFCC00\ 104 | }\ 105 | .ace-vibrant-ink .ace_variable.ace_parameter {\ 106 | font-style: italic\ 107 | }\ 108 | .ace-vibrant-ink .ace_string {\ 109 | color: #66FF00\ 110 | }\ 111 | .ace-vibrant-ink .ace_string.ace_regexp {\ 112 | color: #44B4CC\ 113 | }\ 114 | .ace-vibrant-ink .ace_comment {\ 115 | color: #9933CC\ 116 | }\ 117 | .ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name {\ 118 | font-style: italic;\ 119 | color: #99CC99\ 120 | }\ 121 | .ace-vibrant-ink .ace_indent-guide {\ 122 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYNDTc/oPAALPAZ7hxlbYAAAAAElFTkSuQmCC) right repeat-y\ 123 | }"; 124 | 125 | var dom = require("../lib/dom"); 126 | dom.importCssString(exports.cssText, exports.cssClass); 127 | }); -------------------------------------------------------------------------------- /public/ace/theme-xcode.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* ***** BEGIN LICENSE BLOCK ***** 4 | * Distributed under the BSD license: 5 | * 6 | * Copyright (c) 2010, Ajax.org B.V. 7 | * All rights reserved. 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 | define('ace/theme/xcode', ['require', 'exports', 'module', 'ace/lib/dom'], function (require, exports, module) { 34 | 35 | exports.isDark = false; 36 | exports.cssClass = "ace-xcode"; 37 | exports.cssText = "/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: EE3AD170-2B7F-4DE1-B724-C75F13FE0085) */\ 38 | .ace-xcode .ace_gutter {\ 39 | background: #e8e8e8;\ 40 | color: #333\ 41 | }\ 42 | .ace-xcode .ace_print-margin {\ 43 | width: 1px;\ 44 | background: #e8e8e8\ 45 | }\ 46 | .ace-xcode {\ 47 | background-color: #FFFFFF;\ 48 | color: #000000\ 49 | }\ 50 | .ace-xcode .ace_cursor {\ 51 | color: #000000\ 52 | }\ 53 | .ace-xcode .ace_marker-layer .ace_selection {\ 54 | background: #B5D5FF\ 55 | }\ 56 | .ace-xcode.ace_multiselect .ace_selection.ace_start {\ 57 | box-shadow: 0 0 3px 0px #FFFFFF;\ 58 | border-radius: 2px\ 59 | }\ 60 | .ace-xcode .ace_marker-layer .ace_step {\ 61 | background: rgb(198, 219, 174)\ 62 | }\ 63 | .ace-xcode .ace_marker-layer .ace_bracket {\ 64 | margin: -1px 0 0 -1px;\ 65 | border: 1px solid #BFBFBF\ 66 | }\ 67 | .ace-xcode .ace_marker-layer .ace_active-line {\ 68 | background: rgba(0, 0, 0, 0.071)\ 69 | }\ 70 | .ace-xcode .ace_gutter-active-line {\ 71 | background-color: rgba(0, 0, 0, 0.071)\ 72 | }\ 73 | .ace-xcode .ace_marker-layer .ace_selected-word {\ 74 | border: 1px solid #B5D5FF\ 75 | }\ 76 | .ace-xcode .ace_constant.ace_language,\ 77 | .ace-xcode .ace_keyword,\ 78 | .ace-xcode .ace_meta,\ 79 | .ace-xcode .ace_variable.ace_language {\ 80 | color: #C800A4\ 81 | }\ 82 | .ace-xcode .ace_invisible {\ 83 | color: #BFBFBF\ 84 | }\ 85 | .ace-xcode .ace_constant.ace_character,\ 86 | .ace-xcode .ace_constant.ace_other {\ 87 | color: #275A5E\ 88 | }\ 89 | .ace-xcode .ace_constant.ace_numeric {\ 90 | color: #3A00DC\ 91 | }\ 92 | .ace-xcode .ace_entity.ace_other.ace_attribute-name,\ 93 | .ace-xcode .ace_support.ace_constant,\ 94 | .ace-xcode .ace_support.ace_function {\ 95 | color: #450084\ 96 | }\ 97 | .ace-xcode .ace_fold {\ 98 | background-color: #C800A4;\ 99 | border-color: #000000\ 100 | }\ 101 | .ace-xcode .ace_entity.ace_name.ace_tag,\ 102 | .ace-xcode .ace_support.ace_class,\ 103 | .ace-xcode .ace_support.ace_type {\ 104 | color: #790EAD\ 105 | }\ 106 | .ace-xcode .ace_storage {\ 107 | color: #C900A4\ 108 | }\ 109 | .ace-xcode .ace_string {\ 110 | color: #DF0002\ 111 | }\ 112 | .ace-xcode .ace_comment {\ 113 | color: #008E00\ 114 | }\ 115 | .ace-xcode .ace_indent-guide {\ 116 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y\ 117 | }"; 118 | 119 | var dom = require("../lib/dom"); 120 | dom.importCssString(exports.cssText, exports.cssClass); 121 | }); -------------------------------------------------------------------------------- /public/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | YouTube API Editor 6 | 7 | 8 | 9 | 39 | 40 | 41 | 42 |
Youtube.subscriptions.list({ 43 | "part": "id" 44 | , "mySubscribers": true 45 | , "maxResults": 50 46 | }, _CALLBACK);
47 |
Click the blue button to run the requests.
48 | 49 | 50 | -------------------------------------------------------------------------------- /public/js/main.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | window.addEventListener("load", function () { 4 | var editor = ace.edit("editor"); 5 | var session = editor.getSession(); 6 | 7 | var responseEditor = ace.edit("response-editor"); 8 | var responseEditorSession = responseEditor.getSession(); 9 | 10 | /** 11 | * runCode 12 | * The function that sends the code to the server side and waits for the response. 13 | * 14 | * @name runCode 15 | * @function 16 | * @param {String} code The code that is passed on the server side via HTTP request. 17 | * @param {Function} callback The callback function that is called after the response comes. 18 | * @return {XMLHttpRequest} The XHR that is made. 19 | */ 20 | function runCode(code, callback) { 21 | var res = null; 22 | fetch("/api/run_code", { 23 | method: "POST", 24 | headers: { 25 | "Accept": "application/json", 26 | "Content-Type": "application/json" 27 | }, 28 | body: JSON.stringify({ 29 | code: code 30 | }) 31 | }).then(function (_res) { 32 | res = _res; 33 | return _res.text(); 34 | }).then(function (text) { 35 | if (res.status > 400) { 36 | callback(text); 37 | } 38 | callback(null, text); 39 | }); 40 | } 41 | 42 | //setup editor 43 | editor.setTheme("ace/theme/textmate"); 44 | editor.setFontSize(13); 45 | session.setMode("ace/mode/javascript"); 46 | 47 | // response editor 48 | responseEditor.setTheme("ace/theme/textmate"); 49 | responseEditor.setFontSize(13); 50 | responseEditorSession.setMode("ace/mode/json"); 51 | 52 | // auto-complete 53 | ace.require("ace/ext/language_tools"); 54 | editor.setOptions({ 55 | enableBasicAutocompletion: true 56 | }); 57 | 58 | editor.commands.on("afterExec", function (e) { 59 | console.log(e.args); 60 | if (e.command.name == "insertstring" && e.args === ".") { 61 | editor.execCommand("startAutocomplete"); 62 | } 63 | }); 64 | 65 | // click handler 66 | document.querySelectorAll(".run-code-btn")[0].addEventListener("click", function () { 67 | runCode(editor.getValue(), function (err, data) { 68 | responseEditor.setValue(err || data, -1); 69 | }); 70 | }); 71 | }); -------------------------------------------------------------------------------- /routes/yt.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var Youtube = require("youtube-api"); 4 | for (var i in Youtube) { 5 | console.log(i); 6 | } 7 | 8 | var autenticated = false; 9 | 10 | function autenticate() { 11 | Youtube.authenticate({ 12 | type: "oauth", 13 | token: ACCESS_TOKEN 14 | }); 15 | autenticated = true; 16 | } 17 | 18 | function getResponseActivities(options, req, res) { 19 | if (!autenticated) { 20 | autenticate(); 21 | } 22 | 23 | Youtube.activities.list(options, function (err, data) { 24 | var response = ""; 25 | response += "Error: " + JSON.stringify(err, null, 4) + "\n"; 26 | response += "Data: " + JSON.stringify(data, null, 4); 27 | res.end(response); 28 | }); 29 | } 30 | 31 | exports.listAllActivities = function (req, res) { 32 | if (req.params.maxResults) { 33 | var maxResults = req.params.maxResults; 34 | } else { 35 | var maxResults = 50; 36 | } 37 | 38 | getResponseActivities({ "part": "snippet,contentDetails", "home": true, "maxResults": maxResults }, req, res); 39 | }; 40 | 41 | exports.listActivitiesAfter = function (req, res) { 42 | getResponseActivities({ "part": "snippet,contentDetails", "home": true, "maxResults": 50, "publishedAfter": req.params.date }, req, res); 43 | }; 44 | 45 | exports.listActivitiesBefore = function (req, res) { 46 | getResponseActivities({ "part": "snippet,contentDetails", "home": true, "maxResults": 50, "publishedBefore": req.params.date }, req, res); 47 | }; --------------------------------------------------------------------------------