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

66 |     
67 | 
68 | 


--------------------------------------------------------------------------------
/browser-client/js/main.js:
--------------------------------------------------------------------------------
 1 | window.addEventListener("load", function () {
 2 |     var editor = ace.edit("editor");
 3 |     var session = editor.getSession();
 4 | 
 5 |     function runCode (code) {
 6 |         eval(code);
 7 |         document.querySelector("pre").innerHTML = __graph;
 8 |     }
 9 | 
10 |     //setup editor
11 |     editor.setTheme("ace/theme/textmate");
12 |     editor.setFontSize(13);
13 |     session.setMode("ace/mode/javascript");
14 | 
15 |     // auto-complete
16 |     ace.require("ace/ext/language_tools");
17 |     editor.setOptions({
18 |         enableBasicAutocompletion: true,
19 |     });
20 | 
21 |     editor.commands.on("afterExec", function(e){
22 |          if (e.command.name == "insertstring"&& e.args === ".") {
23 |              editor.execCommand("startAutocomplete")
24 |          }
25 |     });
26 | 
27 |     // click handler
28 |     document.querySelector(".run-code-btn").addEventListener("click", function () {
29 |         runCode(editor.getValue());
30 |     });
31 | });
32 | 


--------------------------------------------------------------------------------
/example/index.js:
--------------------------------------------------------------------------------
  1 | // Dependencies
  2 | var CliGraph = require("../lib");
  3 | 
  4 | // Create a new function graph
  5 | var g1 = new CliGraph({
  6 |     height: 20
  7 |   , width: 20
  8 |   , center: { y: 18 }
  9 | }).setFunctionX(function (x) {
 10 |     return x * x / 5;
 11 | });
 12 | console.log(g1.toString());
 13 | // =>
 14 | //                     ▲
 15 | //                     │
 16 | //   •                 │                 •
 17 | //                     │
 18 | //                     │
 19 | //     •               │               •
 20 | //                     │
 21 | //                     │
 22 | //       •             │             •
 23 | //                     │
 24 | //                     │
 25 | //         •           │           •
 26 | //                     │
 27 | //           •         │         •
 28 | //                     │
 29 | //             •       │       •
 30 | //               •     │     •
 31 | //                 •   │   •
 32 | // ──────────────────•─•─•────────────────▶
 33 | //                     │
 34 | 
 35 | // Another function
 36 | var g2 = new CliGraph({
 37 |     height: 30
 38 |   , width: 30
 39 |   , marks: {
 40 |         hAxis: '-'
 41 |       , vAxis: '|'
 42 |       , center: '+'
 43 |       , point: '.'
 44 |   }
 45 | });
 46 | 
 47 | g2.setFunctionX(function (x) {
 48 |     return x;
 49 | });
 50 | 
 51 | console.log(g2.toString());
 52 | // =>
 53 | //                               ▲
 54 | //                               |                           .
 55 | //                               |                         .
 56 | //                               |                       .
 57 | //                               |                     .
 58 | //                               |                   .
 59 | //                               |                 .
 60 | //                               |               .
 61 | //                               |             .
 62 | //                               |           .
 63 | //                               |         .
 64 | //                               |       .
 65 | //                               |     .
 66 | //                               |   .
 67 | //                               | .
 68 | // ------------------------------.----------------------------▶
 69 | //                             . |
 70 | //                           .   |
 71 | //                         .     |
 72 | //                       .       |
 73 | //                     .         |
 74 | //                   .           |
 75 | //                 .             |
 76 | //               .               |
 77 | //             .                 |
 78 | //           .                   |
 79 | //         .                     |
 80 | //       .                       |
 81 | //     .                         |
 82 | //   .                           |
 83 | 
 84 | var circle = new CliGraph({ height: 32, width: 32 }).setFunctionX(function (x) {
 85 |     return Math.sqrt(200 - x * x);
 86 | }).setFunctionX(function (x) {
 87 |     return -Math.sqrt(200 - x * x);
 88 | }).setFunctionY(function (y) {
 89 |     return Math.sqrt(200 - y * y);
 90 | }).setFunctionY(function (y) {
 91 |     return -Math.sqrt(200 - y * y);
 92 | });
 93 | 
 94 | 
 95 | console.log(circle.toString());
 96 | // =>
 97 | //                                 ▲
 98 | //                                 │
 99 | //                         • • • • • • • • •
100 | //                     • •         │         • •
101 | //                 • •             │             • •
102 | //               •                 │                 •
103 | //             •                   │                   •
104 | //           •                     │                     •
105 | //         •                       │                       •
106 | //         •                       │                       •
107 | //       •                         │                         •
108 | //       •                         │                         •
109 | //     •                           │                           •
110 | //     •                           │                           •
111 | //     •                           │                           •
112 | //     •                           │                           •
113 | // ────•───────────────────────────┼───────────────────────────•──▶
114 | //     •                           │                           •
115 | //     •                           │                           •
116 | //     •                           │                           •
117 | //     •                           │                           •
118 | //       •                         │                         •
119 | //       •                         │                         •
120 | //         •                       │                       •
121 | //         •                       │                       •
122 | //           •                     │                     •
123 | //             •                   │                   •
124 | //               •                 │                 •
125 | //                 • •             │             • •
126 | //                     • •         │         • •
127 | //                         • • • • • • • • •
128 | //                                 │
129 | 


--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "cli-graph",
 3 |   "version": "3.2.3",
 4 |   "description": "Easily draw function graphs in text mode.",
 5 |   "author": "Ionică Bizău  (https://ionicabizau.net)",
 6 |   "contributors": [
 7 |     "Ionică Bizău ",
 8 |     "Radu-Bogdan Croitoru "
 9 |   ],
10 |   "main": "lib/index.js",
11 |   "directories": {
12 |     "test": "test"
13 |   },
14 |   "scripts": {
15 |     "test": "mocha test"
16 |   },
17 |   "repository": {
18 |     "type": "git",
19 |     "url": "https://github.com/IonicaBizau/node-cli-graph"
20 |   },
21 |   "keywords": [
22 |     "ascii",
23 |     "function",
24 |     "graphs",
25 |     "math",
26 |     "node",
27 |     "terminal"
28 |   ],
29 |   "license": "MIT",
30 |   "bugs": {
31 |     "url": "https://github.com/IonicaBizau/node-cli-graph/issues"
32 |   },
33 |   "homepage": "https://github.com/IonicaBizau/node-cli-graph",
34 |   "devDependencies": {
35 |     "mocha": "*"
36 |   },
37 |   "dependencies": {
38 |     "ul": "5.0.0"
39 |   },
40 |   "blah": {
41 |     "h_img": "http://i.imgur.com/WMdX9YR.png",
42 |     "installation": "Or you can check out [**the browser version, online**](https://ionicabizau.github.io/node-cli-graph)."
43 |   },
44 |   "files": [
45 |     "bin/",
46 |     "app/",
47 |     "lib/",
48 |     "dist/",
49 |     "src/",
50 |     "scripts/",
51 |     "resources/",
52 |     "menu/",
53 |     "cli.js",
54 |     "index.js",
55 |     "index.d.ts",
56 |     "package-lock.json",
57 |     "bloggify.js",
58 |     "bloggify.json",
59 |     "bloggify/"
60 |   ]
61 | }


--------------------------------------------------------------------------------
/test/index.js:
--------------------------------------------------------------------------------
 1 | // Dependencies
 2 | var Assert = require("assert")
 3 |   , CliGraph = require("../lib")
 4 |   , Fs = require("fs")
 5 |   ;
 6 | 
 7 | const CIRCLE = Fs.readFileSync(__dirname + "/circle", "utf-8");
 8 | 
 9 | it("should merge the options correctly", function (cb) {
10 |     var circle = new CliGraph({ marks: { point: "foo" } });
11 |     Assert.equal(circle.options.marks.point, "foo");
12 |     cb();
13 | });
14 | 
15 | it("should create the graph and stringify it", function (cb) {
16 |     var radius = 49
17 |       , circle = new CliGraph({ height: 100, width: 100 }).setFunctionX(function (x) {
18 |             return Math.sqrt(radius * radius - x * x);
19 |         }).setFunctionX(function (x) {
20 |             return -Math.sqrt(radius * radius - x * x);
21 |         }).setFunctionY(function (y) {
22 |             return Math.sqrt(radius * radius - y * y);
23 |         }).setFunctionY(function (y) {
24 |             return -Math.sqrt(radius * radius - y * y);
25 |         })
26 |       ;
27 | 
28 |     Assert.equal(circle.toString(), CIRCLE);
29 |     cb();
30 | });
31 | 


--------------------------------------------------------------------------------