├── .autorc
├── .github
└── FUNDING.yml
├── .gitignore
├── CHANGELOG.md
├── README.md
├── package-lock.json
├── package.json
├── prisma
├── datamodel_large.json
├── datamodel_small.json
└── schema.prisma
├── public
├── datamodel.json
├── index.html
├── index.js
├── index.js.map
└── schema.prisma
├── src
├── ace
│ ├── ace.js
│ ├── ext-beautify.js
│ ├── ext-code_lens.js
│ ├── ext-elastic_tabstops_lite.js
│ ├── ext-emmet.js
│ ├── ext-error_marker.js
│ ├── ext-keybinding_menu.js
│ ├── ext-language_tools.js
│ ├── ext-linking.js
│ ├── ext-modelist.js
│ ├── ext-options.js
│ ├── ext-prompt.js
│ ├── ext-rtl.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-sublime.js
│ ├── keybinding-vim.js
│ ├── keybinding-vscode.js
│ ├── mode-prisma.js
│ ├── snippets
│ │ ├── abap.js
│ │ ├── abc.js
│ │ ├── actionscript.js
│ │ ├── ada.js
│ │ ├── apache_conf.js
│ │ ├── apex.js
│ │ ├── applescript.js
│ │ ├── aql.js
│ │ ├── asciidoc.js
│ │ ├── asl.js
│ │ ├── assembly_x86.js
│ │ ├── autohotkey.js
│ │ ├── batchfile.js
│ │ ├── c9search.js
│ │ ├── c_cpp.js
│ │ ├── cirru.js
│ │ ├── clojure.js
│ │ ├── cobol.js
│ │ ├── coffee.js
│ │ ├── coldfusion.js
│ │ ├── crystal.js
│ │ ├── csharp.js
│ │ ├── csound_document.js
│ │ ├── csound_orchestra.js
│ │ ├── csound_score.js
│ │ ├── csp.js
│ │ ├── css.js
│ │ ├── curly.js
│ │ ├── d.js
│ │ ├── dart.js
│ │ ├── diff.js
│ │ ├── django.js
│ │ ├── dockerfile.js
│ │ ├── dot.js
│ │ ├── drools.js
│ │ ├── edifact.js
│ │ ├── eiffel.js
│ │ ├── ejs.js
│ │ ├── elixir.js
│ │ ├── elm.js
│ │ ├── erlang.js
│ │ ├── forth.js
│ │ ├── fortran.js
│ │ ├── fsharp.js
│ │ ├── fsl.js
│ │ ├── ftl.js
│ │ ├── gcode.js
│ │ ├── gherkin.js
│ │ ├── gitignore.js
│ │ ├── glsl.js
│ │ ├── gobstones.js
│ │ ├── golang.js
│ │ ├── graphqlschema.js
│ │ ├── groovy.js
│ │ ├── haml.js
│ │ ├── handlebars.js
│ │ ├── haskell.js
│ │ ├── haskell_cabal.js
│ │ ├── haxe.js
│ │ ├── hjson.js
│ │ ├── html.js
│ │ ├── html_elixir.js
│ │ ├── html_ruby.js
│ │ ├── ini.js
│ │ ├── io.js
│ │ ├── jack.js
│ │ ├── jade.js
│ │ ├── java.js
│ │ ├── javascript.js
│ │ ├── json.js
│ │ ├── json5.js
│ │ ├── jsoniq.js
│ │ ├── jsp.js
│ │ ├── jssm.js
│ │ ├── jsx.js
│ │ ├── julia.js
│ │ ├── kotlin.js
│ │ ├── latex.js
│ │ ├── less.js
│ │ ├── liquid.js
│ │ ├── lisp.js
│ │ ├── livescript.js
│ │ ├── logiql.js
│ │ ├── logtalk.js
│ │ ├── lsl.js
│ │ ├── lua.js
│ │ ├── luapage.js
│ │ ├── lucene.js
│ │ ├── makefile.js
│ │ ├── markdown.js
│ │ ├── mask.js
│ │ ├── matlab.js
│ │ ├── maze.js
│ │ ├── mel.js
│ │ ├── mixal.js
│ │ ├── mushcode.js
│ │ ├── mysql.js
│ │ ├── nginx.js
│ │ ├── nim.js
│ │ ├── nix.js
│ │ ├── nsis.js
│ │ ├── nunjucks.js
│ │ ├── objectivec.js
│ │ ├── ocaml.js
│ │ ├── pascal.js
│ │ ├── perl.js
│ │ ├── perl6.js
│ │ ├── pgsql.js
│ │ ├── php.js
│ │ ├── php_laravel_blade.js
│ │ ├── pig.js
│ │ ├── plain_text.js
│ │ ├── powershell.js
│ │ ├── praat.js
│ │ ├── prisma.js
│ │ ├── prolog.js
│ │ ├── properties.js
│ │ ├── protobuf.js
│ │ ├── puppet.js
│ │ ├── python.js
│ │ ├── r.js
│ │ ├── razor.js
│ │ ├── rdoc.js
│ │ ├── red.js
│ │ ├── redshift.js
│ │ ├── rhtml.js
│ │ ├── rst.js
│ │ ├── ruby.js
│ │ ├── rust.js
│ │ ├── sass.js
│ │ ├── scad.js
│ │ ├── scala.js
│ │ ├── scheme.js
│ │ ├── scss.js
│ │ ├── sh.js
│ │ ├── sjs.js
│ │ ├── slim.js
│ │ ├── smarty.js
│ │ ├── snippets.js
│ │ ├── soy_template.js
│ │ ├── space.js
│ │ ├── sparql.js
│ │ ├── sql.js
│ │ ├── sqlserver.js
│ │ ├── stylus.js
│ │ ├── svg.js
│ │ ├── swift.js
│ │ ├── tcl.js
│ │ ├── terraform.js
│ │ ├── tex.js
│ │ ├── text.js
│ │ ├── textile.js
│ │ ├── toml.js
│ │ ├── tsx.js
│ │ ├── turtle.js
│ │ ├── twig.js
│ │ ├── typescript.js
│ │ ├── vala.js
│ │ ├── vbscript.js
│ │ ├── velocity.js
│ │ ├── verilog.js
│ │ ├── vhdl.js
│ │ ├── visualforce.js
│ │ ├── wollok.js
│ │ ├── xml.js
│ │ ├── xquery.js
│ │ ├── yaml.js
│ │ └── zeek.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-dracula.js
│ ├── theme-dreamweaver.js
│ ├── theme-eclipse.js
│ ├── theme-github.js
│ ├── theme-gob.js
│ ├── theme-gruvbox.js
│ ├── theme-idle_fingers.js
│ ├── theme-iplastic.js
│ ├── theme-katzenmilch.js
│ ├── theme-kr_theme.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-sqlserver.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
├── bin.ts
├── canvas.ts
├── cli
│ ├── help.ts
│ ├── helpers
│ │ ├── types.ts
│ │ └── utils.ts
│ ├── index.ts
│ ├── run.ts
│ └── version.ts
├── connection.ts
├── constants.ts
├── darge.ts
├── index.ts
├── model.ts
├── timer.ts
├── utils.ts
└── vector.ts
├── tsconfig.json
└── viewer.png
/.autorc:
--------------------------------------------------------------------------------
1 | {
2 | "owner": "williamluke4",
3 | "repo": "prisma-viewer",
4 | "plugins": [
5 | "npm",
6 | "conventional-commits"
7 | ]
8 | }
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | .vscode
4 | .cache
5 | *.env
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # v1.3.1 (Wed Aug 19 2020)
2 |
3 | #### 🐛 Bug Fix
4 |
5 | - fix: Bump Deps ([@williamluke4](https://github.com/williamluke4))
6 |
7 | #### Authors: 1
8 |
9 | - William Luke ([@williamluke4](https://github.com/williamluke4))
10 |
11 | ---
12 |
13 | # v1.3.0 (Wed Aug 19 2020)
14 |
15 | #### 🚀 Enhancement
16 |
17 | - feat: Add Auto Open ([@williamluke4](https://github.com/williamluke4))
18 |
19 | #### ⚠️ Pushed to master
20 |
21 | - chore: Add Title To Page ([@williamluke4](https://github.com/williamluke4))
22 | - chore: Update Readme ([@williamluke4](https://github.com/williamluke4))
23 | - chore: Build Before Release 🙈 ([@williamluke4](https://github.com/williamluke4))
24 |
25 | #### Authors: 1
26 |
27 | - William Luke ([@williamluke4](https://github.com/williamluke4))
28 |
29 | ---
30 |
31 | # v1.2.2 (Wed Aug 19 2020)
32 |
33 | #### 🐛 Bug Fix
34 |
35 | - fix: Error Handling ([@williamluke4](https://github.com/williamluke4))
36 |
37 | #### Authors: 1
38 |
39 | - William Luke ([@williamluke4](https://github.com/williamluke4))
40 |
41 | ---
42 |
43 | # v1.2.1 (Wed Aug 19 2020)
44 |
45 | #### 🐛 Bug Fix
46 |
47 | - fix: Missing global-dirs ([@williamluke4](https://github.com/williamluke4))
48 |
49 | #### Authors: 1
50 |
51 | - William Luke ([@williamluke4](https://github.com/williamluke4))
52 |
53 | ---
54 |
55 | # v1.2.0 (Tue Aug 18 2020)
56 |
57 | #### 🚀 Enhancement
58 |
59 | - feat: Ace editor and Prisma Bump [#9](https://github.com/williamluke4/prisma-viewer/pull/9) ([@williamluke4](https://github.com/williamluke4))
60 |
61 | #### Authors: 1
62 |
63 | - William Luke ([@williamluke4](https://github.com/williamluke4))
64 |
65 | ---
66 |
67 | # v1.1.0 (Sat Feb 22 2020)
68 |
69 | #### 🚀 Enhancement
70 |
71 | - feat: Display if Field isList or Optional ([@williamluke4](https://github.com/williamluke4))
72 |
73 | #### 🐛 Bug Fix
74 |
75 | - fix: Bug where selfrelations were not rendering ([@williamluke4](https://github.com/williamluke4))
76 |
77 | #### Authors: 1
78 |
79 | - William Luke ([@williamluke4](https://github.com/williamluke4))
80 |
81 | ---
82 |
83 | # v1.0.5 (Tue Feb 18 2020)
84 |
85 | #### 🐛 Bug Fix
86 |
87 | - fix(:-|): Repo name ([@williamluke4](https://github.com/williamluke4))
88 | - fix(Test): Auto Release Test ([@williamluke4](https://github.com/williamluke4))
89 | - fix(CLI): Search Default Prisma Paths ([@williamluke4](https://github.com/williamluke4))
90 | - 🐉 [#1](https://github.com/williamluke4/prisma-viewer/pull/1) ([@williamluke4](https://github.com/williamluke4))
91 |
92 | #### ⚠️ Pushed to master
93 |
94 | - Create FUNDING.yml ([@williamluke4](https://github.com/williamluke4))
95 | - Prisma Link ([@williamluke4](https://github.com/williamluke4))
96 | - v1.0.3 ([@williamluke4](https://github.com/williamluke4))
97 | - It is too late for this ([@williamluke4](https://github.com/williamluke4))
98 | - initial commit ([@williamluke4](https://github.com/williamluke4))
99 | - initial splines ([@williamluke4](https://github.com/williamluke4))
100 | - fixed ([@williamluke4](https://github.com/williamluke4))
101 |
102 | #### Authors: 1
103 |
104 | - William Luke ([@williamluke4](https://github.com/williamluke4))
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Prisma Viewer
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | 🐉 Here be dragons!!
16 |
17 |
18 | ### For use with [Prisma](https://www.prisma.io/) Datamodels
19 |
20 | ## Installation
21 |
22 | ```
23 | npm i -g prisma-viewer
24 | ```
25 |
26 | canary
27 |
28 | ## Usage CLI
29 |
30 | ```
31 | Prisma Viewer ಠ_ಠ
32 |
33 | Usage
34 | $ pv [path]
35 |
36 | Options
37 | -h, --help Displays this help message
38 | Examples
39 | $ pv
40 | $ pv ./schema.prisma
41 | ```
42 |
43 | ## Usage Playground
44 |
45 | When viewing the schema/datamodel:
46 |
47 | - Press the `a` key to change the layout
48 | - Use a `scroll wheel` to `zoom in/out`
49 | - `Click and drag` to `pan`
50 |
51 | ## Development
52 |
53 | `npm run dev [path/to/datamodel]`
54 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "prisma-viewer",
3 | "version": "1.3.1",
4 | "description": "Displays Prisma Datamodels/Schemas",
5 | "main": "index.js",
6 | "scripts": {
7 | "build:cli": "tsc -d",
8 | "build:web": "parcel build src/index.ts -d public",
9 | "build": "npm run clean && npm run build:cli && npm run build:web",
10 | "dev:web": "parcel watch src/index.ts -d public",
11 | "dev:cli": "ts-node ./src/bin.ts",
12 | "clean": "rimraf ./dist",
13 | "dev": "npm run dev:web & npm run dev:cli",
14 | "release": "auto shipit"
15 | },
16 | "bin": {
17 | "pv": "dist/bin.js"
18 | },
19 | "author": "",
20 | "license": "ISC",
21 | "browserslist": [
22 | "last 1 Chrome versions"
23 | ],
24 | "repository": {
25 | "type": "git",
26 | "url": "https://github.com/williamluke4/prisma-viewer.git"
27 | },
28 | "dependencies": {
29 | "@prisma/sdk": "2.5.0",
30 | "ace": "^1.3.0",
31 | "arg": "^4.1.3",
32 | "chalk": "^4.1.0",
33 | "dagre": "^0.8.5",
34 | "express": "^4.17.1",
35 | "fastify": "^3.2.1",
36 | "fastify-static": "^3.2.0",
37 | "global-dirs": "^2.0.1",
38 | "lodash": "^4.17.20",
39 | "npm-run-all": "^4.1.5",
40 | "open": "^7.1.0",
41 | "parcel": "^1.12.4",
42 | "parcel-bundler": "^1.12.4",
43 | "rimraf": "^3.0.2",
44 | "strip-indent": "^3.0.0",
45 | "tslib": "^2.0.1"
46 | },
47 | "devDependencies": {
48 | "@auto-it/conventional-commits": "^9.50.11",
49 | "auto": "^9.50.11",
50 | "@types/dagre": "^0.7.44",
51 | "@types/lodash": "^4.14.159",
52 | "@zeit/ncc": "^0.22.3",
53 | "nodemon": "^2.0.4",
54 | "typescript": "^3.9.7"
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Prisma Viewer
4 |
5 |
6 |
7 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/ace/ext-error_marker.js:
--------------------------------------------------------------------------------
1 |
2 | ; (function() {
3 | ace.require(["ace/ext/error_marker"], function(m) {
4 | if (typeof module == "object" && typeof exports == "object" && module) {
5 | module.exports = m;
6 | }
7 | });
8 | })();
9 |
--------------------------------------------------------------------------------
/src/ace/ext-linking.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"], function(require, exports, module) {
2 |
3 | var Editor = require("../editor").Editor;
4 |
5 | require("../config").defineOptions(Editor.prototype, "editor", {
6 | enableLinking: {
7 | set: function(val) {
8 | if (val) {
9 | this.on("click", onClick);
10 | this.on("mousemove", onMouseMove);
11 | } else {
12 | this.off("click", onClick);
13 | this.off("mousemove", onMouseMove);
14 | }
15 | },
16 | value: false
17 | }
18 | });
19 |
20 | exports.previousLinkingHover = false;
21 |
22 | function onMouseMove(e) {
23 | var editor = e.editor;
24 | var ctrl = e.getAccelKey();
25 |
26 | if (ctrl) {
27 | var editor = e.editor;
28 | var docPos = e.getDocumentPosition();
29 | var session = editor.session;
30 | var token = session.getTokenAt(docPos.row, docPos.column);
31 |
32 | if (exports.previousLinkingHover && exports.previousLinkingHover != token) {
33 | editor._emit("linkHoverOut");
34 | }
35 | editor._emit("linkHover", {position: docPos, token: token});
36 | exports.previousLinkingHover = token;
37 | } else if (exports.previousLinkingHover) {
38 | editor._emit("linkHoverOut");
39 | exports.previousLinkingHover = false;
40 | }
41 | }
42 |
43 | function onClick(e) {
44 | var ctrl = e.getAccelKey();
45 | var button = e.getButton();
46 |
47 | if (button == 0 && ctrl) {
48 | var editor = e.editor;
49 | var docPos = e.getDocumentPosition();
50 | var session = editor.session;
51 | var token = session.getTokenAt(docPos.row, docPos.column);
52 |
53 | editor._emit("linkClick", {position: docPos, token: token});
54 | }
55 | }
56 |
57 | }); (function() {
58 | ace.require(["ace/ext/linking"], function(m) {
59 | if (typeof module == "object" && typeof exports == "object" && module) {
60 | module.exports = m;
61 | }
62 | });
63 | })();
64 |
--------------------------------------------------------------------------------
/src/ace/ext-spellcheck.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/ext/spellcheck",["require","exports","module","ace/lib/event","ace/editor","ace/config"], function(require, exports, module) {
2 | "use strict";
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 | if (newVal == value)
32 | return '';
33 | if (newVal.lastIndexOf(value, 0) === 0)
34 | return newVal.slice(value.length);
35 | if (newVal.substr(text.selectionEnd) == value)
36 | return newVal.slice(0, -value.length);
37 | if (newVal.slice(-2) == PLACEHOLDER) {
38 | var val = newVal.slice(0, -2);
39 | if (val.slice(-1) == " ") {
40 | if (afterKeydown)
41 | return val.substring(0, text.selectionEnd);
42 | val = val.slice(0, -1);
43 | host.session.replace(r, val);
44 | return "";
45 | }
46 | }
47 |
48 | return newVal;
49 | });
50 | };
51 | var Editor = require("../editor").Editor;
52 | require("../config").defineOptions(Editor.prototype, "editor", {
53 | spellcheck: {
54 | set: function(val) {
55 | var text = this.textInput.getElement();
56 | text.spellcheck = !!val;
57 | if (!val)
58 | this.removeListener("nativecontextmenu", exports.contextMenuHandler);
59 | else
60 | this.on("nativecontextmenu", exports.contextMenuHandler);
61 | },
62 | value: true
63 | }
64 | });
65 |
66 | }); (function() {
67 | ace.require(["ace/ext/spellcheck"], function(m) {
68 | if (typeof module == "object" && typeof exports == "object" && module) {
69 | module.exports = m;
70 | }
71 | });
72 | })();
73 |
--------------------------------------------------------------------------------
/src/ace/ext-statusbar.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"], function(require, exports, module) {
2 | "use strict";
3 | var dom = require("../lib/dom");
4 | var lang = require("../lib/lang");
5 |
6 | var StatusBar = function(editor, parentNode) {
7 | this.element = dom.createElement("div");
8 | this.element.className = "ace_status-indicator";
9 | this.element.style.cssText = "display: inline-block;";
10 | parentNode.appendChild(this.element);
11 |
12 | var statusUpdate = lang.delayedCall(function(){
13 | this.updateStatus(editor);
14 | }.bind(this)).schedule.bind(null, 100);
15 |
16 | editor.on("changeStatus", statusUpdate);
17 | editor.on("changeSelection", statusUpdate);
18 | editor.on("keyboardActivity", statusUpdate);
19 | };
20 |
21 | (function(){
22 | this.updateStatus = function(editor) {
23 | var status = [];
24 | function add(str, separator) {
25 | str && status.push(str, separator || "|");
26 | }
27 |
28 | add(editor.keyBinding.getStatusText(editor));
29 | if (editor.commands.recording)
30 | add("REC");
31 |
32 | var sel = editor.selection;
33 | var c = sel.lead;
34 |
35 | if (!sel.isEmpty()) {
36 | var r = editor.getSelectionRange();
37 | add("(" + (r.end.row - r.start.row) + ":" +(r.end.column - r.start.column) + ")", " ");
38 | }
39 | add(c.row + ":" + c.column, " ");
40 | if (sel.rangeCount)
41 | add("[" + sel.rangeCount + "]", " ");
42 | status.pop();
43 | this.element.textContent = status.join("");
44 | };
45 | }).call(StatusBar.prototype);
46 |
47 | exports.StatusBar = StatusBar;
48 |
49 | }); (function() {
50 | ace.require(["ace/ext/statusbar"], function(m) {
51 | if (typeof module == "object" && typeof exports == "object" && module) {
52 | module.exports = m;
53 | }
54 | });
55 | })();
56 |
--------------------------------------------------------------------------------
/src/ace/ext-themelist.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/ext/themelist",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | var themeData = [
5 | ["Chrome" ],
6 | ["Clouds" ],
7 | ["Crimson Editor" ],
8 | ["Dawn" ],
9 | ["Dreamweaver" ],
10 | ["Eclipse" ],
11 | ["GitHub" ],
12 | ["IPlastic" ],
13 | ["Solarized Light"],
14 | ["TextMate" ],
15 | ["Tomorrow" ],
16 | ["Xcode" ],
17 | ["Kuroir"],
18 | ["KatzenMilch"],
19 | ["SQL Server" ,"sqlserver" , "light"],
20 | ["Ambiance" ,"ambiance" , "dark"],
21 | ["Chaos" ,"chaos" , "dark"],
22 | ["Clouds Midnight" ,"clouds_midnight" , "dark"],
23 | ["Dracula" ,"" , "dark"],
24 | ["Cobalt" ,"cobalt" , "dark"],
25 | ["Gruvbox" ,"gruvbox" , "dark"],
26 | ["Green on Black" ,"gob" , "dark"],
27 | ["idle Fingers" ,"idle_fingers" , "dark"],
28 | ["krTheme" ,"kr_theme" , "dark"],
29 | ["Merbivore" ,"merbivore" , "dark"],
30 | ["Merbivore Soft" ,"merbivore_soft" , "dark"],
31 | ["Mono Industrial" ,"mono_industrial" , "dark"],
32 | ["Monokai" ,"monokai" , "dark"],
33 | ["Pastel on dark" ,"pastel_on_dark" , "dark"],
34 | ["Solarized Dark" ,"solarized_dark" , "dark"],
35 | ["Terminal" ,"terminal" , "dark"],
36 | ["Tomorrow Night" ,"tomorrow_night" , "dark"],
37 | ["Tomorrow Night Blue" ,"tomorrow_night_blue" , "dark"],
38 | ["Tomorrow Night Bright","tomorrow_night_bright" , "dark"],
39 | ["Tomorrow Night 80s" ,"tomorrow_night_eighties" , "dark"],
40 | ["Twilight" ,"twilight" , "dark"],
41 | ["Vibrant Ink" ,"vibrant_ink" , "dark"]
42 | ];
43 |
44 |
45 | exports.themesByName = {};
46 | exports.themes = themeData.map(function(data) {
47 | var name = data[1] || data[0].replace(/ /g, "_").toLowerCase();
48 | var theme = {
49 | caption: data[0],
50 | theme: "ace/theme/" + name,
51 | isDark: data[2] == "dark",
52 | name: name
53 | };
54 | exports.themesByName[name] = theme;
55 | return theme;
56 | });
57 |
58 | }); (function() {
59 | ace.require(["ace/ext/themelist"], function(m) {
60 | if (typeof module == "object" && typeof exports == "object" && module) {
61 | module.exports = m;
62 | }
63 | });
64 | })();
65 |
--------------------------------------------------------------------------------
/src/ace/snippets/abap.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/abap",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "abap";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/abap"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/abc.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/abc",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "\n\
5 | snippet zupfnoter.print\n\
6 | %%%%hn.print {\"startpos\": ${1:pos_y}, \"t\":\"${2:title}\", \"v\":[${3:voices}], \"s\":[[${4:syncvoices}1,2]], \"f\":[${5:flowlines}], \"sf\":[${6:subflowlines}], \"j\":[${7:jumplines}]}\n\
7 | \n\
8 | snippet zupfnoter.note\n\
9 | %%%%hn.note {\"pos\": [${1:pos_x},${2:pos_y}], \"text\": \"${3:text}\", \"style\": \"${4:style}\"}\n\
10 | \n\
11 | snippet zupfnoter.annotation\n\
12 | %%%%hn.annotation {\"id\": \"${1:id}\", \"pos\": [${2:pos}], \"text\": \"${3:text}\"}\n\
13 | \n\
14 | snippet zupfnoter.lyrics\n\
15 | %%%%hn.lyrics {\"pos\": [${1:x_pos},${2:y_pos}]}\n\
16 | \n\
17 | snippet zupfnoter.legend\n\
18 | %%%%hn.legend {\"pos\": [${1:x_pos},${2:y_pos}]}\n\
19 | \n\
20 | \n\
21 | \n\
22 | snippet zupfnoter.target\n\
23 | \"^:${1:target}\"\n\
24 | \n\
25 | snippet zupfnoter.goto\n\
26 | \"^@${1:target}@${2:distance}\"\n\
27 | \n\
28 | snippet zupfnoter.annotationref\n\
29 | \"^#${1:target}\"\n\
30 | \n\
31 | snippet zupfnoter.annotation\n\
32 | \"^!${1:text}@${2:x_offset},${3:y_offset}\"\n\
33 | \n\
34 | \n\
35 | ";
36 | exports.scope = "abc";
37 |
38 | }); (function() {
39 | ace.require(["ace/snippets/abc"], function(m) {
40 | if (typeof module == "object" && typeof exports == "object" && module) {
41 | module.exports = m;
42 | }
43 | });
44 | })();
45 |
--------------------------------------------------------------------------------
/src/ace/snippets/ada.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/ada",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "ada";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/ada"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/apache_conf.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/apache_conf",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "apache_conf";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/apache_conf"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/apex.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/apex",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "apex";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/apex"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/applescript.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/applescript",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "applescript";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/applescript"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/aql.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/aql",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "aql";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/aql"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/asciidoc.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/asciidoc",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "asciidoc";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/asciidoc"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/asl.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/asl",["require","exports","module"], function (require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "asl";
6 | }); (function() {
7 | ace.require(["ace/snippets/asl"], function(m) {
8 | if (typeof module == "object" && typeof exports == "object" && module) {
9 | module.exports = m;
10 | }
11 | });
12 | })();
13 |
--------------------------------------------------------------------------------
/src/ace/snippets/assembly_x86.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/assembly_x86",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "assembly_x86";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/assembly_x86"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/autohotkey.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/autohotkey",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "autohotkey";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/autohotkey"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/batchfile.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/batchfile",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "batchfile";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/batchfile"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/c9search.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/c9search",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "c9search";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/c9search"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/cirru.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/cirru",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "cirru";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/cirru"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/clojure.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/clojure",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
98 | ace.require(["ace/snippets/clojure"], function(m) {
99 | if (typeof module == "object" && typeof exports == "object" && module) {
100 | module.exports = m;
101 | }
102 | });
103 | })();
104 |
--------------------------------------------------------------------------------
/src/ace/snippets/cobol.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/cobol",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "cobol";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/cobol"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/coffee.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/coffee",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
103 | ace.require(["ace/snippets/coffee"], function(m) {
104 | if (typeof module == "object" && typeof exports == "object" && module) {
105 | module.exports = m;
106 | }
107 | });
108 | })();
109 |
--------------------------------------------------------------------------------
/src/ace/snippets/coldfusion.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/coldfusion",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "coldfusion";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/coldfusion"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/crystal.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/crystal",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "crystal";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/crystal"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/csharp.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/csharp",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "csharp";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/csharp"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/csound_document.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/csound_document",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# \n\
5 | snippet synth\n\
6 | \n\
7 | \n\
8 | ${1}\n\
9 | \n\
10 | \n\
11 | e\n\
12 | \n\
13 | \n\
14 | ";
15 | exports.scope = "csound_document";
16 |
17 | }); (function() {
18 | ace.require(["ace/snippets/csound_document"], function(m) {
19 | if (typeof module == "object" && typeof exports == "object" && module) {
20 | module.exports = m;
21 | }
22 | });
23 | })();
24 |
--------------------------------------------------------------------------------
/src/ace/snippets/csound_orchestra.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/csound_orchestra",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# else\n\
5 | snippet else\n\
6 | else\n\
7 | ${1:/* statements */}\n\
8 | # elseif\n\
9 | snippet elseif\n\
10 | elseif ${1:/* condition */} then\n\
11 | ${2:/* statements */}\n\
12 | # if\n\
13 | snippet if\n\
14 | if ${1:/* condition */} then\n\
15 | ${2:/* statements */}\n\
16 | endif\n\
17 | # instrument block\n\
18 | snippet instr\n\
19 | instr ${1:name}\n\
20 | ${2:/* statements */}\n\
21 | endin\n\
22 | # i-time while loop\n\
23 | snippet iwhile\n\
24 | i${1:Index} = ${2:0}\n\
25 | while i${1:Index} < ${3:/* count */} do\n\
26 | ${4:/* statements */}\n\
27 | i${1:Index} += 1\n\
28 | od\n\
29 | # k-rate while loop\n\
30 | snippet kwhile\n\
31 | k${1:Index} = ${2:0}\n\
32 | while k${1:Index} < ${3:/* count */} do\n\
33 | ${4:/* statements */}\n\
34 | k${1:Index} += 1\n\
35 | od\n\
36 | # opcode\n\
37 | snippet opcode\n\
38 | opcode ${1:name}, ${2:/* output types */ 0}, ${3:/* input types */ 0}\n\
39 | ${4:/* statements */}\n\
40 | endop\n\
41 | # until loop\n\
42 | snippet until\n\
43 | until ${1:/* condition */} do\n\
44 | ${2:/* statements */}\n\
45 | od\n\
46 | # while loop\n\
47 | snippet while\n\
48 | while ${1:/* condition */} do\n\
49 | ${2:/* statements */}\n\
50 | od\n\
51 | ";
52 | exports.scope = "csound_orchestra";
53 |
54 | }); (function() {
55 | ace.require(["ace/snippets/csound_orchestra"], function(m) {
56 | if (typeof module == "object" && typeof exports == "object" && module) {
57 | module.exports = m;
58 | }
59 | });
60 | })();
61 |
--------------------------------------------------------------------------------
/src/ace/snippets/csound_score.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/csound_score",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "csound_score";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/csound_score"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/csp.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/csp",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/csp"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/curly.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/curly",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "curly";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/curly"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/d.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/d",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "d";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/d"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/dart.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/dart",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
91 | ace.require(["ace/snippets/dart"], function(m) {
92 | if (typeof module == "object" && typeof exports == "object" && module) {
93 | module.exports = m;
94 | }
95 | });
96 | })();
97 |
--------------------------------------------------------------------------------
/src/ace/snippets/diff.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/diff",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
19 | ace.require(["ace/snippets/diff"], function(m) {
20 | if (typeof module == "object" && typeof exports == "object" && module) {
21 | module.exports = m;
22 | }
23 | });
24 | })();
25 |
--------------------------------------------------------------------------------
/src/ace/snippets/dockerfile.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/dockerfile",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "dockerfile";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/dockerfile"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/dot.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/dot",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "dot";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/dot"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/drools.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/drools",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "\n\
5 | snippet rule\n\
6 | rule \"${1?:rule_name}\"\n\
7 | when\n\
8 | ${2:// when...} \n\
9 | then\n\
10 | ${3:// then...}\n\
11 | end\n\
12 | \n\
13 | snippet query\n\
14 | query ${1?:query_name}\n\
15 | ${2:// find} \n\
16 | end\n\
17 | \n\
18 | snippet declare\n\
19 | declare ${1?:type_name}\n\
20 | ${2:// attributes} \n\
21 | end\n\
22 | \n\
23 | ";
24 | exports.scope = "drools";
25 |
26 | }); (function() {
27 | ace.require(["ace/snippets/drools"], function(m) {
28 | if (typeof module == "object" && typeof exports == "object" && module) {
29 | module.exports = m;
30 | }
31 | });
32 | })();
33 |
--------------------------------------------------------------------------------
/src/ace/snippets/eiffel.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/eiffel",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "eiffel";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/eiffel"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/ejs.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/ejs",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "ejs";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/ejs"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/elixir.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/elixir",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/elixir"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/elm.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/elm",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "elm";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/elm"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/forth.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/forth",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "forth";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/forth"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/fortran.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/fortran",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "fortran";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/fortran"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/fsharp.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/fsharp",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "fsharp";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/fsharp"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/fsl.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/fsl",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/fsl"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/ftl.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/ftl",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "ftl";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/ftl"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/gcode.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/gcode",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "gcode";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/gcode"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/gherkin.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/gherkin",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "gherkin";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/gherkin"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/gitignore.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/gitignore",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "gitignore";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/gitignore"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/glsl.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/glsl",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "glsl";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/glsl"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/golang.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/golang",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "golang";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/golang"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/graphqlschema.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/graphqlschema",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# Type Snippet\n\
5 | trigger type\n\
6 | snippet type\n\
7 | type ${1:type_name} {\n\
8 | ${2:type_siblings}\n\
9 | }\n\
10 | \n\
11 | # Input Snippet\n\
12 | trigger input\n\
13 | snippet input\n\
14 | input ${1:input_name} {\n\
15 | ${2:input_siblings}\n\
16 | }\n\
17 | \n\
18 | # Interface Snippet\n\
19 | trigger interface\n\
20 | snippet interface\n\
21 | interface ${1:interface_name} {\n\
22 | ${2:interface_siblings}\n\
23 | }\n\
24 | \n\
25 | # Interface Snippet\n\
26 | trigger union\n\
27 | snippet union\n\
28 | union ${1:union_name} = ${2:type} | ${3: type}\n\
29 | \n\
30 | # Enum Snippet\n\
31 | trigger enum\n\
32 | snippet enum\n\
33 | enum ${1:enum_name} {\n\
34 | ${2:enum_siblings}\n\
35 | }\n\
36 | ";
37 | exports.scope = "graphqlschema";
38 |
39 | }); (function() {
40 | ace.require(["ace/snippets/graphqlschema"], function(m) {
41 | if (typeof module == "object" && typeof exports == "object" && module) {
42 | module.exports = m;
43 | }
44 | });
45 | })();
46 |
--------------------------------------------------------------------------------
/src/ace/snippets/groovy.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/groovy",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "groovy";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/groovy"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/haml.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/haml",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
28 | ace.require(["ace/snippets/haml"], function(m) {
29 | if (typeof module == "object" && typeof exports == "object" && module) {
30 | module.exports = m;
31 | }
32 | });
33 | })();
34 |
--------------------------------------------------------------------------------
/src/ace/snippets/handlebars.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/handlebars",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "handlebars";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/handlebars"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/haskell.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/haskell",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet lang\n\
5 | {-# LANGUAGE ${1:OverloadedStrings} #-}\n\
6 | snippet info\n\
7 | -- |\n\
8 | -- Module : ${1:Module.Namespace}\n\
9 | -- Copyright : ${2:Author} ${3:2011-2012}\n\
10 | -- License : ${4:BSD3}\n\
11 | --\n\
12 | -- Maintainer : ${5:email@something.com}\n\
13 | -- Stability : ${6:experimental}\n\
14 | -- Portability : ${7:unknown}\n\
15 | --\n\
16 | -- ${8:Description}\n\
17 | --\n\
18 | snippet import\n\
19 | import ${1:Data.Text}\n\
20 | snippet import2\n\
21 | import ${1:Data.Text} (${2:head})\n\
22 | snippet importq\n\
23 | import qualified ${1:Data.Text} as ${2:T}\n\
24 | snippet inst\n\
25 | instance ${1:Monoid} ${2:Type} where\n\
26 | ${3}\n\
27 | snippet type\n\
28 | type ${1:Type} = ${2:Type}\n\
29 | snippet data\n\
30 | data ${1:Type} = ${2:$1} ${3:Int}\n\
31 | snippet newtype\n\
32 | newtype ${1:Type} = ${2:$1} ${3:Int}\n\
33 | snippet class\n\
34 | class ${1:Class} a where\n\
35 | ${2}\n\
36 | snippet module\n\
37 | module `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\
38 | ) where\n\
39 | `expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\
40 | \n\
41 | snippet const\n\
42 | ${1:name} :: ${2:a}\n\
43 | $1 = ${3:undefined}\n\
44 | snippet fn\n\
45 | ${1:fn} :: ${2:a} -> ${3:a}\n\
46 | $1 ${4} = ${5:undefined}\n\
47 | snippet fn2\n\
48 | ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\
49 | $1 ${5} = ${6:undefined}\n\
50 | snippet ap\n\
51 | ${1:map} ${2:fn} ${3:list}\n\
52 | snippet do\n\
53 | do\n\
54 | \n\
55 | snippet λ\n\
56 | \\${1:x} -> ${2}\n\
57 | snippet \\\n\
58 | \\${1:x} -> ${2}\n\
59 | snippet <-\n\
60 | ${1:a} <- ${2:m a}\n\
61 | snippet ←\n\
62 | ${1:a} <- ${2:m a}\n\
63 | snippet ->\n\
64 | ${1:m a} -> ${2:a}\n\
65 | snippet →\n\
66 | ${1:m a} -> ${2:a}\n\
67 | snippet tup\n\
68 | (${1:a}, ${2:b})\n\
69 | snippet tup2\n\
70 | (${1:a}, ${2:b}, ${3:c})\n\
71 | snippet tup3\n\
72 | (${1:a}, ${2:b}, ${3:c}, ${4:d})\n\
73 | snippet rec\n\
74 | ${1:Record} { ${2:recFieldA} = ${3:undefined}\n\
75 | , ${4:recFieldB} = ${5:undefined}\n\
76 | }\n\
77 | snippet case\n\
78 | case ${1:something} of\n\
79 | ${2} -> ${3}\n\
80 | snippet let\n\
81 | let ${1} = ${2}\n\
82 | in ${3}\n\
83 | snippet where\n\
84 | where\n\
85 | ${1:fn} = ${2:undefined}\n\
86 | ";
87 | exports.scope = "haskell";
88 |
89 | }); (function() {
90 | ace.require(["ace/snippets/haskell"], function(m) {
91 | if (typeof module == "object" && typeof exports == "object" && module) {
92 | module.exports = m;
93 | }
94 | });
95 | })();
96 |
--------------------------------------------------------------------------------
/src/ace/snippets/haskell_cabal.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/haskell_cabal",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "haskell_cabal";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/haskell_cabal"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/haxe.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/haxe",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "haxe";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/haxe"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/hjson.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/hjson",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/hjson"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/html_elixir.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/html_elixir",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "html_elixir";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/html_elixir"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/html_ruby.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/html_ruby",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "html_ruby";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/html_ruby"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/ini.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/ini",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "ini";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/ini"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/io.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/io",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippets = [
5 | {
6 | "content": "assertEquals(${1:expected}, ${2:expr})",
7 | "name": "assertEquals",
8 | "scope": "io",
9 | "tabTrigger": "ae"
10 | },
11 | {
12 | "content": "${1:${2:newValue} := ${3:Object} }clone do(\n\t$0\n)",
13 | "name": "clone do",
14 | "scope": "io",
15 | "tabTrigger": "cdo"
16 | },
17 | {
18 | "content": "docSlot(\"${1:slotName}\", \"${2:documentation}\")",
19 | "name": "docSlot",
20 | "scope": "io",
21 | "tabTrigger": "ds"
22 | },
23 | {
24 | "content": "(${1:header,}\n\t${2:body}\n)$0",
25 | "keyEquivalent": "@(",
26 | "name": "Indented Bracketed Line",
27 | "scope": "io",
28 | "tabTrigger": "("
29 | },
30 | {
31 | "content": "\n\t$0\n",
32 | "keyEquivalent": "\r",
33 | "name": "Special: Return Inside Empty Parenthesis",
34 | "scope": "io meta.empty-parenthesis.io, io meta.comma-parenthesis.io"
35 | },
36 | {
37 | "content": "${1:methodName} := method(${2:args,}\n\t$0\n)",
38 | "name": "method",
39 | "scope": "io",
40 | "tabTrigger": "m"
41 | },
42 | {
43 | "content": "newSlot(\"${1:slotName}\", ${2:defaultValue}, \"${3:docString}\")$0",
44 | "name": "newSlot",
45 | "scope": "io",
46 | "tabTrigger": "ns"
47 | },
48 | {
49 | "content": "${1:name} := Object clone do(\n\t$0\n)",
50 | "name": "Object clone do",
51 | "scope": "io",
52 | "tabTrigger": "ocdo"
53 | },
54 | {
55 | "content": "test${1:SomeFeature} := method(\n\t$0\n)",
56 | "name": "testMethod",
57 | "scope": "io",
58 | "tabTrigger": "ts"
59 | },
60 | {
61 | "content": "${1:Something}Test := ${2:UnitTest} clone do(\n\t$0\n)",
62 | "name": "UnitTest",
63 | "scope": "io",
64 | "tabTrigger": "ut"
65 | }
66 | ];
67 | exports.scope = "io";
68 |
69 | }); (function() {
70 | ace.require(["ace/snippets/io"], function(m) {
71 | if (typeof module == "object" && typeof exports == "object" && module) {
72 | module.exports = m;
73 | }
74 | });
75 | })();
76 |
--------------------------------------------------------------------------------
/src/ace/snippets/jack.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/jack",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "jack";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/jack"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/jade.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/jade",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "jade";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/jade"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/json.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/json",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "json";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/json"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/json5.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/json5",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "json5";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/json5"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/jsoniq.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/jsoniq",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet for\n\
5 | for $${1:item} in ${2:expr}\n\
6 | snippet return\n\
7 | return ${1:expr}\n\
8 | snippet import\n\
9 | import module namespace ${1:ns} = \"${2:http://www.example.com/}\";\n\
10 | snippet some\n\
11 | some $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
12 | snippet every\n\
13 | every $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
14 | snippet if\n\
15 | if(${1:true}) then ${2:expr} else ${3:true}\n\
16 | snippet switch\n\
17 | switch(${1:\"foo\"})\n\
18 | case ${2:\"foo\"}\n\
19 | return ${3:true}\n\
20 | default return ${4:false}\n\
21 | snippet try\n\
22 | try { ${1:expr} } catch ${2:*} { ${3:expr} }\n\
23 | snippet tumbling\n\
24 | for tumbling window $${1:varname} in ${2:expr}\n\
25 | start at $${3:start} when ${4:expr}\n\
26 | end at $${5:end} when ${6:expr}\n\
27 | return ${7:expr}\n\
28 | snippet sliding\n\
29 | for sliding window $${1:varname} in ${2:expr}\n\
30 | start at $${3:start} when ${4:expr}\n\
31 | end at $${5:end} when ${6:expr}\n\
32 | return ${7:expr}\n\
33 | snippet let\n\
34 | let $${1:varname} := ${2:expr}\n\
35 | snippet group\n\
36 | group by $${1:varname} := ${2:expr}\n\
37 | snippet order\n\
38 | order by ${1:expr} ${2:descending}\n\
39 | snippet stable\n\
40 | stable order by ${1:expr}\n\
41 | snippet count\n\
42 | count $${1:varname}\n\
43 | snippet ordered\n\
44 | ordered { ${1:expr} }\n\
45 | snippet unordered\n\
46 | unordered { ${1:expr} }\n\
47 | snippet treat \n\
48 | treat as ${1:expr}\n\
49 | snippet castable\n\
50 | castable as ${1:atomicType}\n\
51 | snippet cast\n\
52 | cast as ${1:atomicType}\n\
53 | snippet typeswitch\n\
54 | typeswitch(${1:expr})\n\
55 | case ${2:type} return ${3:expr}\n\
56 | default return ${4:expr}\n\
57 | snippet var\n\
58 | declare variable $${1:varname} := ${2:expr};\n\
59 | snippet fn\n\
60 | declare function ${1:ns}:${2:name}(){\n\
61 | ${3:expr}\n\
62 | };\n\
63 | snippet module\n\
64 | module namespace ${1:ns} = \"${2:http://www.example.com}\";\n\
65 | ";
66 | exports.scope = "jsoniq";
67 |
68 | }); (function() {
69 | ace.require(["ace/snippets/jsoniq"], function(m) {
70 | if (typeof module == "object" && typeof exports == "object" && module) {
71 | module.exports = m;
72 | }
73 | });
74 | })();
75 |
--------------------------------------------------------------------------------
/src/ace/snippets/jssm.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/jssm",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/jssm"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/jsx.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/jsx",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "jsx";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/jsx"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/julia.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/julia",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "julia";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/julia"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/kotlin.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/kotlin",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/kotlin"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/latex.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/latex",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "latex";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/latex"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/less.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/less",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "less";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/less"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/lisp.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/lisp",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "lisp";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/lisp"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/livescript.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/livescript",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "livescript";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/livescript"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/logiql.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/logiql",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "logiql";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/logiql"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/logtalk.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/logtalk",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "logtalk";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/logtalk"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/lua.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/lua",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
29 | ace.require(["ace/snippets/lua"], function(m) {
30 | if (typeof module == "object" && typeof exports == "object" && module) {
31 | module.exports = m;
32 | }
33 | });
34 | })();
35 |
--------------------------------------------------------------------------------
/src/ace/snippets/luapage.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/luapage",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "luapage";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/luapage"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/lucene.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/lucene",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "lucene";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/lucene"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/makefile.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/makefile",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
12 | ace.require(["ace/snippets/makefile"], function(m) {
13 | if (typeof module == "object" && typeof exports == "object" && module) {
14 | module.exports = m;
15 | }
16 | });
17 | })();
18 |
--------------------------------------------------------------------------------
/src/ace/snippets/markdown.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/markdown",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# Markdown\n\
5 | \n\
6 | # Includes octopress (http://octopress.org/) snippets\n\
7 | \n\
8 | snippet [\n\
9 | [${1:text}](http://${2:address} \"${3:title}\")\n\
10 | snippet [*\n\
11 | [${1:link}](${2:`@*`} \"${3:title}\")${4}\n\
12 | \n\
13 | snippet [:\n\
14 | [${1:id}]: http://${2:url} \"${3:title}\"\n\
15 | snippet [:*\n\
16 | [${1:id}]: ${2:`@*`} \"${3:title}\"\n\
17 | \n\
18 | snippet \n\
20 | snippet ${4}\n\
22 | \n\
23 | snippet ![:\n\
24 | ![${1:id}]: ${2:url} \"${3:title}\"\n\
25 | snippet ![:*\n\
26 | ![${1:id}]: ${2:`@*`} \"${3:title}\"\n\
27 | \n\
28 | snippet ===\n\
29 | regex /^/=+/=*//\n\
30 | ${PREV_LINE/./=/g}\n\
31 | \n\
32 | ${0}\n\
33 | snippet ---\n\
34 | regex /^/-+/-*//\n\
35 | ${PREV_LINE/./-/g}\n\
36 | \n\
37 | ${0}\n\
38 | snippet blockquote\n\
39 | {% blockquote %}\n\
40 | ${1:quote}\n\
41 | {% endblockquote %}\n\
42 | \n\
43 | snippet blockquote-author\n\
44 | {% blockquote ${1:author}, ${2:title} %}\n\
45 | ${3:quote}\n\
46 | {% endblockquote %}\n\
47 | \n\
48 | snippet blockquote-link\n\
49 | {% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\
50 | ${4:quote}\n\
51 | {% endblockquote %}\n\
52 | \n\
53 | snippet bt-codeblock-short\n\
54 | ```\n\
55 | ${1:code_snippet}\n\
56 | ```\n\
57 | \n\
58 | snippet bt-codeblock-full\n\
59 | ``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\
60 | ${5:code_snippet}\n\
61 | ```\n\
62 | \n\
63 | snippet codeblock-short\n\
64 | {% codeblock %}\n\
65 | ${1:code_snippet}\n\
66 | {% endcodeblock %}\n\
67 | \n\
68 | snippet codeblock-full\n\
69 | {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\
70 | ${5:code_snippet}\n\
71 | {% endcodeblock %}\n\
72 | \n\
73 | snippet gist-full\n\
74 | {% gist ${1:gist_id} ${2:filename} %}\n\
75 | \n\
76 | snippet gist-short\n\
77 | {% gist ${1:gist_id} %}\n\
78 | \n\
79 | snippet img\n\
80 | {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\
81 | \n\
82 | snippet youtube\n\
83 | {% youtube ${1:video_id} %}\n\
84 | \n\
85 | # The quote should appear only once in the text. It is inherently part of it.\n\
86 | # See http://octopress.org/docs/plugins/pullquote/ for more info.\n\
87 | \n\
88 | snippet pullquote\n\
89 | {% pullquote %}\n\
90 | ${1:text} {\" ${2:quote} \"} ${3:text}\n\
91 | {% endpullquote %}\n\
92 | ";
93 | exports.scope = "markdown";
94 |
95 | }); (function() {
96 | ace.require(["ace/snippets/markdown"], function(m) {
97 | if (typeof module == "object" && typeof exports == "object" && module) {
98 | module.exports = m;
99 | }
100 | });
101 | })();
102 |
--------------------------------------------------------------------------------
/src/ace/snippets/mask.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/mask",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "mask";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/mask"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/matlab.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/matlab",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "matlab";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/matlab"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/maze.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/maze",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet >\n\
5 | description assignment\n\
6 | scope maze\n\
7 | -> ${1}= ${2}\n\
8 | \n\
9 | snippet >\n\
10 | description if\n\
11 | scope maze\n\
12 | -> IF ${2:**} THEN %${3:L} ELSE %${4:R}\n\
13 | ";
14 | exports.scope = "maze";
15 |
16 | }); (function() {
17 | ace.require(["ace/snippets/maze"], function(m) {
18 | if (typeof module == "object" && typeof exports == "object" && module) {
19 | module.exports = m;
20 | }
21 | });
22 | })();
23 |
--------------------------------------------------------------------------------
/src/ace/snippets/mel.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/mel",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "mel";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/mel"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/mixal.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/mixal",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "mixal";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/mixal"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/mushcode.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/mushcode",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "mushcode";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/mushcode"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/mysql.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/mysql",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "mysql";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/mysql"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/nginx.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/nginx",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "nginx";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/nginx"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/nim.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/nim",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "nim";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/nim"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/nix.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/nix",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "nix";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/nix"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/nsis.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/nsis",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/nsis"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/nunjucks.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/nunjucks",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "nunjucks";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/nunjucks"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/objectivec.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/objectivec",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "objectivec";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/objectivec"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/ocaml.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/ocaml",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "ocaml";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/ocaml"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/pascal.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/pascal",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "pascal";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/pascal"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/perl6.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/perl6",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "perl6";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/perl6"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/pgsql.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/pgsql",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "pgsql";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/pgsql"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/php_laravel_blade.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/php_laravel_blade",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "php";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/php_laravel_blade"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/pig.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/pig",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "pig";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/pig"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/plain_text.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/plain_text",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "plain_text";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/plain_text"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/powershell.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/powershell",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "powershell";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/powershell"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/praat.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/praat",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "praat";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/praat"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/prisma.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/prisma",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "prisma";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/prisma"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/prolog.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/prolog",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "prolog";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/prolog"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/properties.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/properties",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "properties";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/properties"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/protobuf.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/protobuf",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "";
5 | exports.scope = "protobuf";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/protobuf"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/puppet.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/puppet",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "puppet";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/puppet"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/razor.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/razor",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet if\n\
5 | (${1} == ${2}) {\n\
6 | ${3}\n\
7 | }";
8 | exports.scope = "razor";
9 |
10 | }); (function() {
11 | ace.require(["ace/snippets/razor"], function(m) {
12 | if (typeof module == "object" && typeof exports == "object" && module) {
13 | module.exports = m;
14 | }
15 | });
16 | })();
17 |
--------------------------------------------------------------------------------
/src/ace/snippets/rdoc.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/rdoc",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "rdoc";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/rdoc"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/red.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/red",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = " ";
5 | exports.scope = "red";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/red"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/redshift.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/redshift",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "redshift";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/redshift"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/rhtml.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/rhtml",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "rhtml";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/rhtml"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/rst.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/rst",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# rst\n\
5 | \n\
6 | snippet :\n\
7 | :${1:field name}: ${2:field body}\n\
8 | snippet *\n\
9 | *${1:Emphasis}*\n\
10 | snippet **\n\
11 | **${1:Strong emphasis}**\n\
12 | snippet _\n\
13 | \\`${1:hyperlink-name}\\`_\n\
14 | .. _\\`$1\\`: ${2:link-block}\n\
15 | snippet =\n\
16 | ${1:Title}\n\
17 | =====${2:=}\n\
18 | ${3}\n\
19 | snippet -\n\
20 | ${1:Title}\n\
21 | -----${2:-}\n\
22 | ${3}\n\
23 | snippet cont:\n\
24 | .. contents::\n\
25 | \n\
26 | ";
27 | exports.scope = "rst";
28 |
29 | }); (function() {
30 | ace.require(["ace/snippets/rst"], function(m) {
31 | if (typeof module == "object" && typeof exports == "object" && module) {
32 | module.exports = m;
33 | }
34 | });
35 | })();
36 |
--------------------------------------------------------------------------------
/src/ace/snippets/rust.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/rust",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "rust";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/rust"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/sass.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/sass",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "sass";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/sass"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/scad.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/scad",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "scad";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/scad"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/scala.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/scala",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "scala";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/scala"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/scheme.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/scheme",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "scheme";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/scheme"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/scss.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/scss",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "scss";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/scss"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/sh.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/sh",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
91 | ace.require(["ace/snippets/sh"], function(m) {
92 | if (typeof module == "object" && typeof exports == "object" && module) {
93 | module.exports = m;
94 | }
95 | });
96 | })();
97 |
--------------------------------------------------------------------------------
/src/ace/snippets/sjs.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/sjs",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "sjs";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/sjs"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/slim.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/slim",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "slim";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/slim"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/smarty.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/smarty",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "smarty";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/smarty"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/snippets.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/snippets",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
17 | ace.require(["ace/snippets/snippets"], function(m) {
18 | if (typeof module == "object" && typeof exports == "object" && module) {
19 | module.exports = m;
20 | }
21 | });
22 | })();
23 |
--------------------------------------------------------------------------------
/src/ace/snippets/soy_template.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/soy_template",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "soy_template";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/soy_template"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/space.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/space",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "space";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/space"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/sparql.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/sparql",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/sparql"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/sql.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/sql",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
34 | ace.require(["ace/snippets/sql"], function(m) {
35 | if (typeof module == "object" && typeof exports == "object" && module) {
36 | module.exports = m;
37 | }
38 | });
39 | })();
40 |
--------------------------------------------------------------------------------
/src/ace/snippets/sqlserver.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/sqlserver",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "# ISNULL\n\
5 | snippet isnull\n\
6 | ISNULL(${1:check_expression}, ${2:replacement_value})\n\
7 | # FORMAT\n\
8 | snippet format\n\
9 | FORMAT(${1:value}, ${2:format})\n\
10 | # CAST\n\
11 | snippet cast\n\
12 | CAST(${1:expression} AS ${2:data_type})\n\
13 | # CONVERT\n\
14 | snippet convert\n\
15 | CONVERT(${1:data_type}, ${2:expression})\n\
16 | # DATEPART\n\
17 | snippet datepart\n\
18 | DATEPART(${1:datepart}, ${2:date})\n\
19 | # DATEDIFF\n\
20 | snippet datediff\n\
21 | DATEDIFF(${1:datepart}, ${2:startdate}, ${3:enddate})\n\
22 | # DATEADD\n\
23 | snippet dateadd\n\
24 | DATEADD(${1:datepart}, ${2:number}, ${3:date})\n\
25 | # DATEFROMPARTS \n\
26 | snippet datefromparts\n\
27 | DATEFROMPARTS(${1:year}, ${2:month}, ${3:day})\n\
28 | # OBJECT_DEFINITION\n\
29 | snippet objectdef\n\
30 | SELECT OBJECT_DEFINITION(OBJECT_ID('${1:sys.server_permissions /*object name*/}'))\n\
31 | # STUFF XML\n\
32 | snippet stuffxml\n\
33 | STUFF((SELECT ', ' + ${1:ColumnName}\n\
34 | FROM ${2:TableName}\n\
35 | WHERE ${3:WhereClause}\n\
36 | FOR XML PATH('')), 1, 1, '') AS ${4:Alias}\n\
37 | ${5:/*https://msdn.microsoft.com/en-us/library/ms188043.aspx*/}\n\
38 | # Create Procedure\n\
39 | snippet createproc\n\
40 | -- =============================================\n\
41 | -- Author: ${1:Author}\n\
42 | -- Create date: ${2:Date}\n\
43 | -- Description: ${3:Description}\n\
44 | -- =============================================\n\
45 | CREATE PROCEDURE ${4:Procedure_Name}\n\
46 | ${5:/*Add the parameters for the stored procedure here*/}\n\
47 | AS\n\
48 | BEGIN\n\
49 | -- SET NOCOUNT ON added to prevent extra result sets from interfering with SELECT statements.\n\
50 | SET NOCOUNT ON;\n\
51 | \n\
52 | ${6:/*Add the T-SQL statements to compute the return value here*/}\n\
53 | \n\
54 | END\n\
55 | GO\n\
56 | # Create Scalar Function\n\
57 | snippet createfn\n\
58 | -- =============================================\n\
59 | -- Author: ${1:Author}\n\
60 | -- Create date: ${2:Date}\n\
61 | -- Description: ${3:Description}\n\
62 | -- =============================================\n\
63 | CREATE FUNCTION ${4:Scalar_Function_Name}\n\
64 | -- Add the parameters for the function here\n\
65 | RETURNS ${5:Function_Data_Type}\n\
66 | AS\n\
67 | BEGIN\n\
68 | DECLARE @Result ${5:Function_Data_Type}\n\
69 | \n\
70 | ${6:/*Add the T-SQL statements to compute the return value here*/}\n\
71 | \n\
72 | END\n\
73 | GO";
74 | exports.scope = "sqlserver";
75 |
76 | }); (function() {
77 | ace.require(["ace/snippets/sqlserver"], function(m) {
78 | if (typeof module == "object" && typeof exports == "object" && module) {
79 | module.exports = m;
80 | }
81 | });
82 | })();
83 |
--------------------------------------------------------------------------------
/src/ace/snippets/stylus.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/stylus",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "stylus";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/stylus"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/svg.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/svg",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "svg";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/svg"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/swift.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/swift",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "swift";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/swift"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/tcl.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/tcl",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
100 | ace.require(["ace/snippets/tcl"], function(m) {
101 | if (typeof module == "object" && typeof exports == "object" && module) {
102 | module.exports = m;
103 | }
104 | });
105 | })();
106 |
--------------------------------------------------------------------------------
/src/ace/snippets/terraform.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/terraform",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "terraform";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/terraform"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/text.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/text",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "text";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/text"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/textile.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/textile",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
38 | ace.require(["ace/snippets/textile"], function(m) {
39 | if (typeof module == "object" && typeof exports == "object" && module) {
40 | module.exports = m;
41 | }
42 | });
43 | })();
44 |
--------------------------------------------------------------------------------
/src/ace/snippets/toml.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/toml",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "toml";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/toml"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/tsx.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/tsx",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "tsx";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/tsx"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/turtle.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/turtle",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/turtle"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/twig.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/twig",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "twig";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/twig"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/typescript.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/typescript",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "typescript";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/typescript"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/vbscript.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/vbscript",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "vbscript";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/vbscript"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/velocity.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/velocity",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
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 | }); (function() {
37 | ace.require(["ace/snippets/velocity"], function(m) {
38 | if (typeof module == "object" && typeof exports == "object" && module) {
39 | module.exports = m;
40 | }
41 | });
42 | })();
43 |
--------------------------------------------------------------------------------
/src/ace/snippets/verilog.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/verilog",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "verilog";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/verilog"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/vhdl.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/vhdl",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "vhdl";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/vhdl"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/visualforce.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/visualforce",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "visualforce";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/visualforce"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/wollok.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/wollok",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "##\n\
5 | ## Basic Java packages and import\n\
6 | snippet im\n\
7 | import\n\
8 | snippet w.l\n\
9 | wollok.lang\n\
10 | snippet w.i\n\
11 | wollok.lib\n\
12 | \n\
13 | ## Class and object\n\
14 | snippet cl\n\
15 | class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\
16 | snippet obj\n\
17 | object ${1:`Filename(\"\", \"untitled\")`} ${2:inherits Parent}${3}\n\
18 | snippet te\n\
19 | test ${1:`Filename(\"\", \"untitled\")`}\n\
20 | \n\
21 | ##\n\
22 | ## Enhancements\n\
23 | snippet inh\n\
24 | inherits\n\
25 | \n\
26 | ##\n\
27 | ## Comments\n\
28 | snippet /*\n\
29 | /*\n\
30 | * ${1}\n\
31 | */\n\
32 | \n\
33 | ##\n\
34 | ## Control Statements\n\
35 | snippet el\n\
36 | else\n\
37 | snippet if\n\
38 | if (${1}) ${2}\n\
39 | \n\
40 | ##\n\
41 | ## Create a Method\n\
42 | snippet m\n\
43 | method ${1:method}(${2}) ${5}\n\
44 | \n\
45 | ## \n\
46 | ## Tests\n\
47 | snippet as\n\
48 | assert.equals(${1:expected}, ${2:actual})\n\
49 | \n\
50 | ##\n\
51 | ## Exceptions\n\
52 | snippet ca\n\
53 | catch ${1:e} : (${2:Exception} ) ${3}\n\
54 | snippet thr\n\
55 | throw\n\
56 | snippet try\n\
57 | try {\n\
58 | ${3}\n\
59 | } catch ${1:e} : ${2:Exception} {\n\
60 | }\n\
61 | \n\
62 | ##\n\
63 | ## Javadocs\n\
64 | snippet /**\n\
65 | /**\n\
66 | * ${1}\n\
67 | */\n\
68 | \n\
69 | ##\n\
70 | ## Print Methods\n\
71 | snippet print\n\
72 | console.println(\"${1:Message}\")\n\
73 | \n\
74 | ##\n\
75 | ## Setter and Getter Methods\n\
76 | snippet set\n\
77 | method set${1:}(${2:}) {\n\
78 | $1 = $2\n\
79 | }\n\
80 | snippet get\n\
81 | method get${1:}() {\n\
82 | return ${1:};\n\
83 | }\n\
84 | \n\
85 | ##\n\
86 | ## Terminate Methods or Loops\n\
87 | snippet re\n\
88 | return";
89 | exports.scope = "wollok";
90 |
91 | }); (function() {
92 | ace.require(["ace/snippets/wollok"], function(m) {
93 | if (typeof module == "object" && typeof exports == "object" && module) {
94 | module.exports = m;
95 | }
96 | });
97 | })();
98 |
--------------------------------------------------------------------------------
/src/ace/snippets/xml.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/xml",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "xml";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/xml"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/xquery.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/xquery",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText = "snippet for\n\
5 | for $${1:item} in ${2:expr}\n\
6 | snippet return\n\
7 | return ${1:expr}\n\
8 | snippet import\n\
9 | import module namespace ${1:ns} = \"${2:http://www.example.com/}\";\n\
10 | snippet some\n\
11 | some $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
12 | snippet every\n\
13 | every $${1:varname} in ${2:expr} satisfies ${3:expr}\n\
14 | snippet if\n\
15 | if(${1:true}) then ${2:expr} else ${3:true}\n\
16 | snippet switch\n\
17 | switch(${1:\"foo\"})\n\
18 | case ${2:\"foo\"}\n\
19 | return ${3:true}\n\
20 | default return ${4:false}\n\
21 | snippet try\n\
22 | try { ${1:expr} } catch ${2:*} { ${3:expr} }\n\
23 | snippet tumbling\n\
24 | for tumbling window $${1:varname} in ${2:expr}\n\
25 | start at $${3:start} when ${4:expr}\n\
26 | end at $${5:end} when ${6:expr}\n\
27 | return ${7:expr}\n\
28 | snippet sliding\n\
29 | for sliding window $${1:varname} in ${2:expr}\n\
30 | start at $${3:start} when ${4:expr}\n\
31 | end at $${5:end} when ${6:expr}\n\
32 | return ${7:expr}\n\
33 | snippet let\n\
34 | let $${1:varname} := ${2:expr}\n\
35 | snippet group\n\
36 | group by $${1:varname} := ${2:expr}\n\
37 | snippet order\n\
38 | order by ${1:expr} ${2:descending}\n\
39 | snippet stable\n\
40 | stable order by ${1:expr}\n\
41 | snippet count\n\
42 | count $${1:varname}\n\
43 | snippet ordered\n\
44 | ordered { ${1:expr} }\n\
45 | snippet unordered\n\
46 | unordered { ${1:expr} }\n\
47 | snippet treat \n\
48 | treat as ${1:expr}\n\
49 | snippet castable\n\
50 | castable as ${1:atomicType}\n\
51 | snippet cast\n\
52 | cast as ${1:atomicType}\n\
53 | snippet typeswitch\n\
54 | typeswitch(${1:expr})\n\
55 | case ${2:type} return ${3:expr}\n\
56 | default return ${4:expr}\n\
57 | snippet var\n\
58 | declare variable $${1:varname} := ${2:expr};\n\
59 | snippet fn\n\
60 | declare function ${1:ns}:${2:name}(){\n\
61 | ${3:expr}\n\
62 | };\n\
63 | snippet module\n\
64 | module namespace ${1:ns} = \"${2:http://www.example.com}\";\n\
65 | ";
66 | exports.scope = "xquery";
67 |
68 | }); (function() {
69 | ace.require(["ace/snippets/xquery"], function(m) {
70 | if (typeof module == "object" && typeof exports == "object" && module) {
71 | module.exports = m;
72 | }
73 | });
74 | })();
75 |
--------------------------------------------------------------------------------
/src/ace/snippets/yaml.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/yaml",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "yaml";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/yaml"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/snippets/zeek.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/snippets/zeek",["require","exports","module"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.snippetText =undefined;
5 | exports.scope = "";
6 |
7 | }); (function() {
8 | ace.require(["ace/snippets/zeek"], function(m) {
9 | if (typeof module == "object" && typeof exports == "object" && module) {
10 | module.exports = m;
11 | }
12 | });
13 | })();
14 |
--------------------------------------------------------------------------------
/src/ace/theme-clouds.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/clouds",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = false;
4 | exports.cssClass = "ace-clouds";
5 | exports.cssText = ".ace-clouds .ace_gutter {\
6 | background: #ebebeb;\
7 | color: #333\
8 | }\
9 | .ace-clouds .ace_print-margin {\
10 | width: 1px;\
11 | background: #e8e8e8\
12 | }\
13 | .ace-clouds {\
14 | background-color: #FFFFFF;\
15 | color: #000000\
16 | }\
17 | .ace-clouds .ace_cursor {\
18 | color: #000000\
19 | }\
20 | .ace-clouds .ace_marker-layer .ace_selection {\
21 | background: #BDD5FC\
22 | }\
23 | .ace-clouds.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #FFFFFF;\
25 | }\
26 | .ace-clouds .ace_marker-layer .ace_step {\
27 | background: rgb(255, 255, 0)\
28 | }\
29 | .ace-clouds .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid #BFBFBF\
32 | }\
33 | .ace-clouds .ace_marker-layer .ace_active-line {\
34 | background: #FFFBD1\
35 | }\
36 | .ace-clouds .ace_gutter-active-line {\
37 | background-color : #dcdcdc\
38 | }\
39 | .ace-clouds .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid #BDD5FC\
41 | }\
42 | .ace-clouds .ace_invisible {\
43 | color: #BFBFBF\
44 | }\
45 | .ace-clouds .ace_keyword,\
46 | .ace-clouds .ace_meta,\
47 | .ace-clouds .ace_support.ace_constant.ace_property-value {\
48 | color: #AF956F\
49 | }\
50 | .ace-clouds .ace_keyword.ace_operator {\
51 | color: #484848\
52 | }\
53 | .ace-clouds .ace_keyword.ace_other.ace_unit {\
54 | color: #96DC5F\
55 | }\
56 | .ace-clouds .ace_constant.ace_language {\
57 | color: #39946A\
58 | }\
59 | .ace-clouds .ace_constant.ace_numeric {\
60 | color: #46A609\
61 | }\
62 | .ace-clouds .ace_constant.ace_character.ace_entity {\
63 | color: #BF78CC\
64 | }\
65 | .ace-clouds .ace_invalid {\
66 | background-color: #FF002A\
67 | }\
68 | .ace-clouds .ace_fold {\
69 | background-color: #AF956F;\
70 | border-color: #000000\
71 | }\
72 | .ace-clouds .ace_storage,\
73 | .ace-clouds .ace_support.ace_class,\
74 | .ace-clouds .ace_support.ace_function,\
75 | .ace-clouds .ace_support.ace_other,\
76 | .ace-clouds .ace_support.ace_type {\
77 | color: #C52727\
78 | }\
79 | .ace-clouds .ace_string {\
80 | color: #5D90CD\
81 | }\
82 | .ace-clouds .ace_comment {\
83 | color: #BCC8BA\
84 | }\
85 | .ace-clouds .ace_entity.ace_name.ace_tag,\
86 | .ace-clouds .ace_entity.ace_other.ace_attribute-name {\
87 | color: #606060\
88 | }\
89 | .ace-clouds .ace_indent-guide {\
90 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y\
91 | }";
92 |
93 | var dom = require("../lib/dom");
94 | dom.importCssString(exports.cssText, exports.cssClass);
95 | }); (function() {
96 | ace.require(["ace/theme/clouds"], function(m) {
97 | if (typeof module == "object" && typeof exports == "object" && module) {
98 | module.exports = m;
99 | }
100 | });
101 | })();
102 |
--------------------------------------------------------------------------------
/src/ace/theme-clouds_midnight.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/clouds_midnight",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-clouds-midnight";
5 | exports.cssText = ".ace-clouds-midnight .ace_gutter {\
6 | background: #232323;\
7 | color: #929292\
8 | }\
9 | .ace-clouds-midnight .ace_print-margin {\
10 | width: 1px;\
11 | background: #232323\
12 | }\
13 | .ace-clouds-midnight {\
14 | background-color: #191919;\
15 | color: #929292\
16 | }\
17 | .ace-clouds-midnight .ace_cursor {\
18 | color: #7DA5DC\
19 | }\
20 | .ace-clouds-midnight .ace_marker-layer .ace_selection {\
21 | background: #000000\
22 | }\
23 | .ace-clouds-midnight.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #191919;\
25 | }\
26 | .ace-clouds-midnight .ace_marker-layer .ace_step {\
27 | background: rgb(102, 82, 0)\
28 | }\
29 | .ace-clouds-midnight .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid #BFBFBF\
32 | }\
33 | .ace-clouds-midnight .ace_marker-layer .ace_active-line {\
34 | background: rgba(215, 215, 215, 0.031)\
35 | }\
36 | .ace-clouds-midnight .ace_gutter-active-line {\
37 | background-color: rgba(215, 215, 215, 0.031)\
38 | }\
39 | .ace-clouds-midnight .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid #000000\
41 | }\
42 | .ace-clouds-midnight .ace_invisible {\
43 | color: #666\
44 | }\
45 | .ace-clouds-midnight .ace_keyword,\
46 | .ace-clouds-midnight .ace_meta,\
47 | .ace-clouds-midnight .ace_support.ace_constant.ace_property-value {\
48 | color: #927C5D\
49 | }\
50 | .ace-clouds-midnight .ace_keyword.ace_operator {\
51 | color: #4B4B4B\
52 | }\
53 | .ace-clouds-midnight .ace_keyword.ace_other.ace_unit {\
54 | color: #366F1A\
55 | }\
56 | .ace-clouds-midnight .ace_constant.ace_language {\
57 | color: #39946A\
58 | }\
59 | .ace-clouds-midnight .ace_constant.ace_numeric {\
60 | color: #46A609\
61 | }\
62 | .ace-clouds-midnight .ace_constant.ace_character.ace_entity {\
63 | color: #A165AC\
64 | }\
65 | .ace-clouds-midnight .ace_invalid {\
66 | color: #FFFFFF;\
67 | background-color: #E92E2E\
68 | }\
69 | .ace-clouds-midnight .ace_fold {\
70 | background-color: #927C5D;\
71 | border-color: #929292\
72 | }\
73 | .ace-clouds-midnight .ace_storage,\
74 | .ace-clouds-midnight .ace_support.ace_class,\
75 | .ace-clouds-midnight .ace_support.ace_function,\
76 | .ace-clouds-midnight .ace_support.ace_other,\
77 | .ace-clouds-midnight .ace_support.ace_type {\
78 | color: #E92E2E\
79 | }\
80 | .ace-clouds-midnight .ace_string {\
81 | color: #5D90CD\
82 | }\
83 | .ace-clouds-midnight .ace_comment {\
84 | color: #3C403B\
85 | }\
86 | .ace-clouds-midnight .ace_entity.ace_name.ace_tag,\
87 | .ace-clouds-midnight .ace_entity.ace_other.ace_attribute-name {\
88 | color: #606060\
89 | }\
90 | .ace-clouds-midnight .ace_indent-guide {\
91 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\
92 | }";
93 |
94 | var dom = require("../lib/dom");
95 | dom.importCssString(exports.cssText, exports.cssClass);
96 | }); (function() {
97 | ace.require(["ace/theme/clouds_midnight"], function(m) {
98 | if (typeof module == "object" && typeof exports == "object" && module) {
99 | module.exports = m;
100 | }
101 | });
102 | })();
103 |
--------------------------------------------------------------------------------
/src/ace/theme-dawn.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/dawn",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = false;
4 | exports.cssClass = "ace-dawn";
5 | exports.cssText = ".ace-dawn .ace_gutter {\
6 | background: #ebebeb;\
7 | color: #333\
8 | }\
9 | .ace-dawn .ace_print-margin {\
10 | width: 1px;\
11 | background: #e8e8e8\
12 | }\
13 | .ace-dawn {\
14 | background-color: #F9F9F9;\
15 | color: #080808\
16 | }\
17 | .ace-dawn .ace_cursor {\
18 | color: #000000\
19 | }\
20 | .ace-dawn .ace_marker-layer .ace_selection {\
21 | background: rgba(39, 95, 255, 0.30)\
22 | }\
23 | .ace-dawn.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #F9F9F9;\
25 | }\
26 | .ace-dawn .ace_marker-layer .ace_step {\
27 | background: rgb(255, 255, 0)\
28 | }\
29 | .ace-dawn .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid rgba(75, 75, 126, 0.50)\
32 | }\
33 | .ace-dawn .ace_marker-layer .ace_active-line {\
34 | background: rgba(36, 99, 180, 0.12)\
35 | }\
36 | .ace-dawn .ace_gutter-active-line {\
37 | background-color : #dcdcdc\
38 | }\
39 | .ace-dawn .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid rgba(39, 95, 255, 0.30)\
41 | }\
42 | .ace-dawn .ace_invisible {\
43 | color: rgba(75, 75, 126, 0.50)\
44 | }\
45 | .ace-dawn .ace_keyword,\
46 | .ace-dawn .ace_meta {\
47 | color: #794938\
48 | }\
49 | .ace-dawn .ace_constant,\
50 | .ace-dawn .ace_constant.ace_character,\
51 | .ace-dawn .ace_constant.ace_character.ace_escape,\
52 | .ace-dawn .ace_constant.ace_other {\
53 | color: #811F24\
54 | }\
55 | .ace-dawn .ace_invalid.ace_illegal {\
56 | text-decoration: underline;\
57 | font-style: italic;\
58 | color: #F8F8F8;\
59 | background-color: #B52A1D\
60 | }\
61 | .ace-dawn .ace_invalid.ace_deprecated {\
62 | text-decoration: underline;\
63 | font-style: italic;\
64 | color: #B52A1D\
65 | }\
66 | .ace-dawn .ace_support {\
67 | color: #691C97\
68 | }\
69 | .ace-dawn .ace_support.ace_constant {\
70 | color: #B4371F\
71 | }\
72 | .ace-dawn .ace_fold {\
73 | background-color: #794938;\
74 | border-color: #080808\
75 | }\
76 | .ace-dawn .ace_list,\
77 | .ace-dawn .ace_markup.ace_list,\
78 | .ace-dawn .ace_support.ace_function {\
79 | color: #693A17\
80 | }\
81 | .ace-dawn .ace_storage {\
82 | font-style: italic;\
83 | color: #A71D5D\
84 | }\
85 | .ace-dawn .ace_string {\
86 | color: #0B6125\
87 | }\
88 | .ace-dawn .ace_string.ace_regexp {\
89 | color: #CF5628\
90 | }\
91 | .ace-dawn .ace_comment {\
92 | font-style: italic;\
93 | color: #5A525F\
94 | }\
95 | .ace-dawn .ace_heading,\
96 | .ace-dawn .ace_markup.ace_heading {\
97 | color: #19356D\
98 | }\
99 | .ace-dawn .ace_variable {\
100 | color: #234A97\
101 | }\
102 | .ace-dawn .ace_indent-guide {\
103 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y\
104 | }";
105 |
106 | var dom = require("../lib/dom");
107 | dom.importCssString(exports.cssText, exports.cssClass);
108 | }); (function() {
109 | ace.require(["ace/theme/dawn"], function(m) {
110 | if (typeof module == "object" && typeof exports == "object" && module) {
111 | module.exports = m;
112 | }
113 | });
114 | })();
115 |
--------------------------------------------------------------------------------
/src/ace/theme-eclipse.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/eclipse",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 | "use strict";
3 |
4 | exports.isDark = false;
5 | exports.cssText = ".ace-eclipse .ace_gutter {\
6 | background: #ebebeb;\
7 | border-right: 1px solid rgb(159, 159, 159);\
8 | color: rgb(136, 136, 136);\
9 | }\
10 | .ace-eclipse .ace_print-margin {\
11 | width: 1px;\
12 | background: #ebebeb;\
13 | }\
14 | .ace-eclipse {\
15 | background-color: #FFFFFF;\
16 | color: black;\
17 | }\
18 | .ace-eclipse .ace_fold {\
19 | background-color: rgb(60, 76, 114);\
20 | }\
21 | .ace-eclipse .ace_cursor {\
22 | color: black;\
23 | }\
24 | .ace-eclipse .ace_storage,\
25 | .ace-eclipse .ace_keyword,\
26 | .ace-eclipse .ace_variable {\
27 | color: rgb(127, 0, 85);\
28 | }\
29 | .ace-eclipse .ace_constant.ace_buildin {\
30 | color: rgb(88, 72, 246);\
31 | }\
32 | .ace-eclipse .ace_constant.ace_library {\
33 | color: rgb(6, 150, 14);\
34 | }\
35 | .ace-eclipse .ace_function {\
36 | color: rgb(60, 76, 114);\
37 | }\
38 | .ace-eclipse .ace_string {\
39 | color: rgb(42, 0, 255);\
40 | }\
41 | .ace-eclipse .ace_comment {\
42 | color: rgb(113, 150, 130);\
43 | }\
44 | .ace-eclipse .ace_comment.ace_doc {\
45 | color: rgb(63, 95, 191);\
46 | }\
47 | .ace-eclipse .ace_comment.ace_doc.ace_tag {\
48 | color: rgb(127, 159, 191);\
49 | }\
50 | .ace-eclipse .ace_constant.ace_numeric {\
51 | color: darkblue;\
52 | }\
53 | .ace-eclipse .ace_tag {\
54 | color: rgb(25, 118, 116);\
55 | }\
56 | .ace-eclipse .ace_type {\
57 | color: rgb(127, 0, 127);\
58 | }\
59 | .ace-eclipse .ace_xml-pe {\
60 | color: rgb(104, 104, 91);\
61 | }\
62 | .ace-eclipse .ace_marker-layer .ace_selection {\
63 | background: rgb(181, 213, 255);\
64 | }\
65 | .ace-eclipse .ace_marker-layer .ace_bracket {\
66 | margin: -1px 0 0 -1px;\
67 | border: 1px solid rgb(192, 192, 192);\
68 | }\
69 | .ace-eclipse .ace_meta.ace_tag {\
70 | color:rgb(25, 118, 116);\
71 | }\
72 | .ace-eclipse .ace_invisible {\
73 | color: #ddd;\
74 | }\
75 | .ace-eclipse .ace_entity.ace_other.ace_attribute-name {\
76 | color:rgb(127, 0, 127);\
77 | }\
78 | .ace-eclipse .ace_marker-layer .ace_step {\
79 | background: rgb(255, 255, 0);\
80 | }\
81 | .ace-eclipse .ace_active-line {\
82 | background: rgb(232, 242, 254);\
83 | }\
84 | .ace-eclipse .ace_gutter-active-line {\
85 | background-color : #DADADA;\
86 | }\
87 | .ace-eclipse .ace_marker-layer .ace_selected-word {\
88 | border: 1px solid rgb(181, 213, 255);\
89 | }\
90 | .ace-eclipse .ace_indent-guide {\
91 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
92 | }";
93 |
94 | exports.cssClass = "ace-eclipse";
95 |
96 | var dom = require("../lib/dom");
97 | dom.importCssString(exports.cssText, exports.cssClass);
98 | }); (function() {
99 | ace.require(["ace/theme/eclipse"], function(m) {
100 | if (typeof module == "object" && typeof exports == "object" && module) {
101 | module.exports = m;
102 | }
103 | });
104 | })();
105 |
--------------------------------------------------------------------------------
/src/ace/theme-github.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/github",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = false;
4 | exports.cssClass = "ace-github";
5 | exports.cssText = "\
6 | .ace-github .ace_gutter {\
7 | background: #e8e8e8;\
8 | color: #AAA;\
9 | }\
10 | .ace-github {\
11 | background: #fff;\
12 | color: #000;\
13 | }\
14 | .ace-github .ace_keyword {\
15 | font-weight: bold;\
16 | }\
17 | .ace-github .ace_string {\
18 | color: #D14;\
19 | }\
20 | .ace-github .ace_variable.ace_class {\
21 | color: teal;\
22 | }\
23 | .ace-github .ace_constant.ace_numeric {\
24 | color: #099;\
25 | }\
26 | .ace-github .ace_constant.ace_buildin {\
27 | color: #0086B3;\
28 | }\
29 | .ace-github .ace_support.ace_function {\
30 | color: #0086B3;\
31 | }\
32 | .ace-github .ace_comment {\
33 | color: #998;\
34 | font-style: italic;\
35 | }\
36 | .ace-github .ace_variable.ace_language {\
37 | color: #0086B3;\
38 | }\
39 | .ace-github .ace_paren {\
40 | font-weight: bold;\
41 | }\
42 | .ace-github .ace_boolean {\
43 | font-weight: bold;\
44 | }\
45 | .ace-github .ace_string.ace_regexp {\
46 | color: #009926;\
47 | font-weight: normal;\
48 | }\
49 | .ace-github .ace_variable.ace_instance {\
50 | color: teal;\
51 | }\
52 | .ace-github .ace_constant.ace_language {\
53 | font-weight: bold;\
54 | }\
55 | .ace-github .ace_cursor {\
56 | color: black;\
57 | }\
58 | .ace-github.ace_focus .ace_marker-layer .ace_active-line {\
59 | background: rgb(255, 255, 204);\
60 | }\
61 | .ace-github .ace_marker-layer .ace_active-line {\
62 | background: rgb(245, 245, 245);\
63 | }\
64 | .ace-github .ace_marker-layer .ace_selection {\
65 | background: rgb(181, 213, 255);\
66 | }\
67 | .ace-github.ace_multiselect .ace_selection.ace_start {\
68 | box-shadow: 0 0 3px 0px white;\
69 | }\
70 | .ace-github.ace_nobold .ace_line > span {\
71 | font-weight: normal !important;\
72 | }\
73 | .ace-github .ace_marker-layer .ace_step {\
74 | background: rgb(252, 255, 0);\
75 | }\
76 | .ace-github .ace_marker-layer .ace_stack {\
77 | background: rgb(164, 229, 101);\
78 | }\
79 | .ace-github .ace_marker-layer .ace_bracket {\
80 | margin: -1px 0 0 -1px;\
81 | border: 1px solid rgb(192, 192, 192);\
82 | }\
83 | .ace-github .ace_gutter-active-line {\
84 | background-color : rgba(0, 0, 0, 0.07);\
85 | }\
86 | .ace-github .ace_marker-layer .ace_selected-word {\
87 | background: rgb(250, 250, 255);\
88 | border: 1px solid rgb(200, 200, 250);\
89 | }\
90 | .ace-github .ace_invisible {\
91 | color: #BFBFBF\
92 | }\
93 | .ace-github .ace_print-margin {\
94 | width: 1px;\
95 | background: #e8e8e8;\
96 | }\
97 | .ace-github .ace_indent-guide {\
98 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
99 | }";
100 |
101 | var dom = require("../lib/dom");
102 | dom.importCssString(exports.cssText, exports.cssClass);
103 | }); (function() {
104 | ace.require(["ace/theme/github"], function(m) {
105 | if (typeof module == "object" && typeof exports == "object" && module) {
106 | module.exports = m;
107 | }
108 | });
109 | })();
110 |
--------------------------------------------------------------------------------
/src/ace/theme-gruvbox.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/gruvbox",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-gruvbox";
5 | exports.cssText = ".ace-gruvbox .ace_gutter-active-line {\
6 | background-color: #3C3836;\
7 | }\
8 | .ace-gruvbox {\
9 | color: #EBDAB4;\
10 | background-color: #1D2021;\
11 | }\
12 | .ace-gruvbox .ace_invisible {\
13 | color: #504945;\
14 | }\
15 | .ace-gruvbox .ace_marker-layer .ace_selection {\
16 | background: rgba(179, 101, 57, 0.75)\
17 | }\
18 | .ace-gruvbox.ace_multiselect .ace_selection.ace_start {\
19 | box-shadow: 0 0 3px 0px #002240;\
20 | }\
21 | .ace-gruvbox .ace_keyword {\
22 | color: #8ec07c;\
23 | }\
24 | .ace-gruvbox .ace_comment {\
25 | font-style: italic;\
26 | color: #928375;\
27 | }\
28 | .ace-gruvbox .ace-statement {\
29 | color: red;\
30 | }\
31 | .ace-gruvbox .ace_variable {\
32 | color: #84A598;\
33 | }\
34 | .ace-gruvbox .ace_variable.ace_language {\
35 | color: #D2879B;\
36 | }\
37 | .ace-gruvbox .ace_constant {\
38 | color: #C2859A;\
39 | }\
40 | .ace-gruvbox .ace_constant.ace_language {\
41 | color: #C2859A;\
42 | }\
43 | .ace-gruvbox .ace_constant.ace_numeric {\
44 | color: #C2859A;\
45 | }\
46 | .ace-gruvbox .ace_string {\
47 | color: #B8BA37;\
48 | }\
49 | .ace-gruvbox .ace_support {\
50 | color: #F9BC41;\
51 | }\
52 | .ace-gruvbox .ace_support.ace_function {\
53 | color: #F84B3C;\
54 | }\
55 | .ace-gruvbox .ace_storage {\
56 | color: #8FBF7F;\
57 | }\
58 | .ace-gruvbox .ace_keyword.ace_operator {\
59 | color: #EBDAB4;\
60 | }\
61 | .ace-gruvbox .ace_punctuation.ace_operator {\
62 | color: yellow;\
63 | }\
64 | .ace-gruvbox .ace_marker-layer .ace_active-line {\
65 | background: #3C3836;\
66 | }\
67 | .ace-gruvbox .ace_marker-layer .ace_selected-word {\
68 | border-radius: 4px;\
69 | border: 8px solid #3f475d;\
70 | }\
71 | .ace-gruvbox .ace_print-margin {\
72 | width: 5px;\
73 | background: #3C3836;\
74 | }\
75 | .ace-gruvbox .ace_indent-guide {\
76 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQUFD4z6Crq/sfAAuYAuYl+7lfAAAAAElFTkSuQmCC\") right repeat-y;\
77 | }";
78 |
79 | var dom = require("../lib/dom");
80 | dom.importCssString(exports.cssText, exports.cssClass);
81 |
82 | }); (function() {
83 | ace.require(["ace/theme/gruvbox"], function(m) {
84 | if (typeof module == "object" && typeof exports == "object" && module) {
85 | module.exports = m;
86 | }
87 | });
88 | })();
89 |
--------------------------------------------------------------------------------
/src/ace/theme-idle_fingers.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/idle_fingers",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-idle-fingers";
5 | exports.cssText = ".ace-idle-fingers .ace_gutter {\
6 | background: #3b3b3b;\
7 | color: rgb(153,153,153)\
8 | }\
9 | .ace-idle-fingers .ace_print-margin {\
10 | width: 1px;\
11 | background: #3b3b3b\
12 | }\
13 | .ace-idle-fingers {\
14 | background-color: #323232;\
15 | color: #FFFFFF\
16 | }\
17 | .ace-idle-fingers .ace_cursor {\
18 | color: #91FF00\
19 | }\
20 | .ace-idle-fingers .ace_marker-layer .ace_selection {\
21 | background: rgba(90, 100, 126, 0.88)\
22 | }\
23 | .ace-idle-fingers.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #323232;\
25 | }\
26 | .ace-idle-fingers .ace_marker-layer .ace_step {\
27 | background: rgb(102, 82, 0)\
28 | }\
29 | .ace-idle-fingers .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid #404040\
32 | }\
33 | .ace-idle-fingers .ace_marker-layer .ace_active-line {\
34 | background: #353637\
35 | }\
36 | .ace-idle-fingers .ace_gutter-active-line {\
37 | background-color: #353637\
38 | }\
39 | .ace-idle-fingers .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid rgba(90, 100, 126, 0.88)\
41 | }\
42 | .ace-idle-fingers .ace_invisible {\
43 | color: #404040\
44 | }\
45 | .ace-idle-fingers .ace_keyword,\
46 | .ace-idle-fingers .ace_meta {\
47 | color: #CC7833\
48 | }\
49 | .ace-idle-fingers .ace_constant,\
50 | .ace-idle-fingers .ace_constant.ace_character,\
51 | .ace-idle-fingers .ace_constant.ace_character.ace_escape,\
52 | .ace-idle-fingers .ace_constant.ace_other,\
53 | .ace-idle-fingers .ace_support.ace_constant {\
54 | color: #6C99BB\
55 | }\
56 | .ace-idle-fingers .ace_invalid {\
57 | color: #FFFFFF;\
58 | background-color: #FF0000\
59 | }\
60 | .ace-idle-fingers .ace_fold {\
61 | background-color: #CC7833;\
62 | border-color: #FFFFFF\
63 | }\
64 | .ace-idle-fingers .ace_support.ace_function {\
65 | color: #B83426\
66 | }\
67 | .ace-idle-fingers .ace_variable.ace_parameter {\
68 | font-style: italic\
69 | }\
70 | .ace-idle-fingers .ace_string {\
71 | color: #A5C261\
72 | }\
73 | .ace-idle-fingers .ace_string.ace_regexp {\
74 | color: #CCCC33\
75 | }\
76 | .ace-idle-fingers .ace_comment {\
77 | font-style: italic;\
78 | color: #BC9458\
79 | }\
80 | .ace-idle-fingers .ace_meta.ace_tag {\
81 | color: #FFE5BB\
82 | }\
83 | .ace-idle-fingers .ace_entity.ace_name {\
84 | color: #FFC66D\
85 | }\
86 | .ace-idle-fingers .ace_collab.ace_user1 {\
87 | color: #323232;\
88 | background-color: #FFF980\
89 | }\
90 | .ace-idle-fingers .ace_indent-guide {\
91 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMwMjLyZYiPj/8PAAreAwAI1+g0AAAAAElFTkSuQmCC) right repeat-y\
92 | }";
93 |
94 | var dom = require("../lib/dom");
95 | dom.importCssString(exports.cssText, exports.cssClass);
96 | }); (function() {
97 | ace.require(["ace/theme/idle_fingers"], function(m) {
98 | if (typeof module == "object" && typeof exports == "object" && module) {
99 | module.exports = m;
100 | }
101 | });
102 | })();
103 |
--------------------------------------------------------------------------------
/src/ace/theme-kr_theme.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/kr_theme",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-kr-theme";
5 | exports.cssText = ".ace-kr-theme .ace_gutter {\
6 | background: #1c1917;\
7 | color: #FCFFE0\
8 | }\
9 | .ace-kr-theme .ace_print-margin {\
10 | width: 1px;\
11 | background: #1c1917\
12 | }\
13 | .ace-kr-theme {\
14 | background-color: #0B0A09;\
15 | color: #FCFFE0\
16 | }\
17 | .ace-kr-theme .ace_cursor {\
18 | color: #FF9900\
19 | }\
20 | .ace-kr-theme .ace_marker-layer .ace_selection {\
21 | background: rgba(170, 0, 255, 0.45)\
22 | }\
23 | .ace-kr-theme.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #0B0A09;\
25 | }\
26 | .ace-kr-theme .ace_marker-layer .ace_step {\
27 | background: rgb(102, 82, 0)\
28 | }\
29 | .ace-kr-theme .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid rgba(255, 177, 111, 0.32)\
32 | }\
33 | .ace-kr-theme .ace_marker-layer .ace_active-line {\
34 | background: #38403D\
35 | }\
36 | .ace-kr-theme .ace_gutter-active-line {\
37 | background-color : #38403D\
38 | }\
39 | .ace-kr-theme .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid rgba(170, 0, 255, 0.45)\
41 | }\
42 | .ace-kr-theme .ace_invisible {\
43 | color: rgba(255, 177, 111, 0.32)\
44 | }\
45 | .ace-kr-theme .ace_keyword,\
46 | .ace-kr-theme .ace_meta {\
47 | color: #949C8B\
48 | }\
49 | .ace-kr-theme .ace_constant,\
50 | .ace-kr-theme .ace_constant.ace_character,\
51 | .ace-kr-theme .ace_constant.ace_character.ace_escape,\
52 | .ace-kr-theme .ace_constant.ace_other {\
53 | color: rgba(210, 117, 24, 0.76)\
54 | }\
55 | .ace-kr-theme .ace_invalid {\
56 | color: #F8F8F8;\
57 | background-color: #A41300\
58 | }\
59 | .ace-kr-theme .ace_support {\
60 | color: #9FC28A\
61 | }\
62 | .ace-kr-theme .ace_support.ace_constant {\
63 | color: #C27E66\
64 | }\
65 | .ace-kr-theme .ace_fold {\
66 | background-color: #949C8B;\
67 | border-color: #FCFFE0\
68 | }\
69 | .ace-kr-theme .ace_support.ace_function {\
70 | color: #85873A\
71 | }\
72 | .ace-kr-theme .ace_storage {\
73 | color: #FFEE80\
74 | }\
75 | .ace-kr-theme .ace_string {\
76 | color: rgba(164, 161, 181, 0.8)\
77 | }\
78 | .ace-kr-theme .ace_string.ace_regexp {\
79 | color: rgba(125, 255, 192, 0.65)\
80 | }\
81 | .ace-kr-theme .ace_comment {\
82 | font-style: italic;\
83 | color: #706D5B\
84 | }\
85 | .ace-kr-theme .ace_variable {\
86 | color: #D1A796\
87 | }\
88 | .ace-kr-theme .ace_list,\
89 | .ace-kr-theme .ace_markup.ace_list {\
90 | background-color: #0F0040\
91 | }\
92 | .ace-kr-theme .ace_variable.ace_language {\
93 | color: #FF80E1\
94 | }\
95 | .ace-kr-theme .ace_meta.ace_tag {\
96 | color: #BABD9C\
97 | }\
98 | .ace-kr-theme .ace_indent-guide {\
99 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y\
100 | }";
101 |
102 | var dom = require("../lib/dom");
103 | dom.importCssString(exports.cssText, exports.cssClass);
104 | }); (function() {
105 | ace.require(["ace/theme/kr_theme"], function(m) {
106 | if (typeof module == "object" && typeof exports == "object" && module) {
107 | module.exports = m;
108 | }
109 | });
110 | })();
111 |
--------------------------------------------------------------------------------
/src/ace/theme-kuroir.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/kuroir",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = false;
4 | exports.cssClass = "ace-kuroir";
5 | exports.cssText = "\
6 | .ace-kuroir .ace_gutter {\
7 | background: #e8e8e8;\
8 | color: #333;\
9 | }\
10 | .ace-kuroir .ace_print-margin {\
11 | width: 1px;\
12 | background: #e8e8e8;\
13 | }\
14 | .ace-kuroir {\
15 | background-color: #E8E9E8;\
16 | color: #363636;\
17 | }\
18 | .ace-kuroir .ace_cursor {\
19 | color: #202020;\
20 | }\
21 | .ace-kuroir .ace_marker-layer .ace_selection {\
22 | background: rgba(245, 170, 0, 0.57);\
23 | }\
24 | .ace-kuroir.ace_multiselect .ace_selection.ace_start {\
25 | box-shadow: 0 0 3px 0px #E8E9E8;\
26 | }\
27 | .ace-kuroir .ace_marker-layer .ace_step {\
28 | background: rgb(198, 219, 174);\
29 | }\
30 | .ace-kuroir .ace_marker-layer .ace_bracket {\
31 | margin: -1px 0 0 -1px;\
32 | border: 1px solid rgba(0, 0, 0, 0.29);\
33 | }\
34 | .ace-kuroir .ace_marker-layer .ace_active-line {\
35 | background: rgba(203, 220, 47, 0.22);\
36 | }\
37 | .ace-kuroir .ace_gutter-active-line {\
38 | background-color: rgba(203, 220, 47, 0.22);\
39 | }\
40 | .ace-kuroir .ace_marker-layer .ace_selected-word {\
41 | border: 1px solid rgba(245, 170, 0, 0.57);\
42 | }\
43 | .ace-kuroir .ace_invisible {\
44 | color: #BFBFBF\
45 | }\
46 | .ace-kuroir .ace_fold {\
47 | border-color: #363636;\
48 | }\
49 | .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;\
50 | background-color:rgba(255, 6, 0, 0.15);}.ace-kuroir .ace_invalid.ace_deprecated{text-decoration:underline;\
51 | font-style:italic;\
52 | color:#FD1732;\
53 | background-color:#E8E9E8;}.ace-kuroir .ace_string{color:#639300;}.ace-kuroir .ace_string.ace_regexp{color:#417E00;\
54 | background-color:#C9D4BE;}.ace-kuroir .ace_comment{color:rgba(148, 148, 148, 0.91);\
55 | 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;\
56 | background-color:rgba(191, 97, 51, 0.051);}.ace-kuroir .ace_markup.ace_list{color:#8F5B26;}\
57 | ";
58 |
59 | var dom = require("../lib/dom");
60 | dom.importCssString(exports.cssText, exports.cssClass);
61 | }); (function() {
62 | ace.require(["ace/theme/kuroir"], function(m) {
63 | if (typeof module == "object" && typeof exports == "object" && module) {
64 | module.exports = m;
65 | }
66 | });
67 | })();
68 |
--------------------------------------------------------------------------------
/src/ace/theme-merbivore.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/merbivore",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-merbivore";
5 | exports.cssText = ".ace-merbivore .ace_gutter {\
6 | background: #202020;\
7 | color: #E6E1DC\
8 | }\
9 | .ace-merbivore .ace_print-margin {\
10 | width: 1px;\
11 | background: #555651\
12 | }\
13 | .ace-merbivore {\
14 | background-color: #161616;\
15 | color: #E6E1DC\
16 | }\
17 | .ace-merbivore .ace_cursor {\
18 | color: #FFFFFF\
19 | }\
20 | .ace-merbivore .ace_marker-layer .ace_selection {\
21 | background: #454545\
22 | }\
23 | .ace-merbivore.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #161616;\
25 | }\
26 | .ace-merbivore .ace_marker-layer .ace_step {\
27 | background: rgb(102, 82, 0)\
28 | }\
29 | .ace-merbivore .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid #404040\
32 | }\
33 | .ace-merbivore .ace_marker-layer .ace_active-line {\
34 | background: #333435\
35 | }\
36 | .ace-merbivore .ace_gutter-active-line {\
37 | background-color: #333435\
38 | }\
39 | .ace-merbivore .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid #454545\
41 | }\
42 | .ace-merbivore .ace_invisible {\
43 | color: #404040\
44 | }\
45 | .ace-merbivore .ace_entity.ace_name.ace_tag,\
46 | .ace-merbivore .ace_keyword,\
47 | .ace-merbivore .ace_meta,\
48 | .ace-merbivore .ace_meta.ace_tag,\
49 | .ace-merbivore .ace_storage,\
50 | .ace-merbivore .ace_support.ace_function {\
51 | color: #FC6F09\
52 | }\
53 | .ace-merbivore .ace_constant,\
54 | .ace-merbivore .ace_constant.ace_character,\
55 | .ace-merbivore .ace_constant.ace_character.ace_escape,\
56 | .ace-merbivore .ace_constant.ace_other,\
57 | .ace-merbivore .ace_support.ace_type {\
58 | color: #1EDAFB\
59 | }\
60 | .ace-merbivore .ace_constant.ace_character.ace_escape {\
61 | color: #519F50\
62 | }\
63 | .ace-merbivore .ace_constant.ace_language {\
64 | color: #FDC251\
65 | }\
66 | .ace-merbivore .ace_constant.ace_library,\
67 | .ace-merbivore .ace_string,\
68 | .ace-merbivore .ace_support.ace_constant {\
69 | color: #8DFF0A\
70 | }\
71 | .ace-merbivore .ace_constant.ace_numeric {\
72 | color: #58C554\
73 | }\
74 | .ace-merbivore .ace_invalid {\
75 | color: #FFFFFF;\
76 | background-color: #990000\
77 | }\
78 | .ace-merbivore .ace_fold {\
79 | background-color: #FC6F09;\
80 | border-color: #E6E1DC\
81 | }\
82 | .ace-merbivore .ace_comment {\
83 | font-style: italic;\
84 | color: #AD2EA4\
85 | }\
86 | .ace-merbivore .ace_entity.ace_other.ace_attribute-name {\
87 | color: #FFFF89\
88 | }\
89 | .ace-merbivore .ace_indent-guide {\
90 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQFxf3ZXB1df0PAAdsAmERTkEHAAAAAElFTkSuQmCC) right repeat-y\
91 | }";
92 |
93 | var dom = require("../lib/dom");
94 | dom.importCssString(exports.cssText, exports.cssClass);
95 | }); (function() {
96 | ace.require(["ace/theme/merbivore"], function(m) {
97 | if (typeof module == "object" && typeof exports == "object" && module) {
98 | module.exports = m;
99 | }
100 | });
101 | })();
102 |
--------------------------------------------------------------------------------
/src/ace/theme-merbivore_soft.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/merbivore_soft",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-merbivore-soft";
5 | exports.cssText = ".ace-merbivore-soft .ace_gutter {\
6 | background: #262424;\
7 | color: #E6E1DC\
8 | }\
9 | .ace-merbivore-soft .ace_print-margin {\
10 | width: 1px;\
11 | background: #262424\
12 | }\
13 | .ace-merbivore-soft {\
14 | background-color: #1C1C1C;\
15 | color: #E6E1DC\
16 | }\
17 | .ace-merbivore-soft .ace_cursor {\
18 | color: #FFFFFF\
19 | }\
20 | .ace-merbivore-soft .ace_marker-layer .ace_selection {\
21 | background: #494949\
22 | }\
23 | .ace-merbivore-soft.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #1C1C1C;\
25 | }\
26 | .ace-merbivore-soft .ace_marker-layer .ace_step {\
27 | background: rgb(102, 82, 0)\
28 | }\
29 | .ace-merbivore-soft .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid #404040\
32 | }\
33 | .ace-merbivore-soft .ace_marker-layer .ace_active-line {\
34 | background: #333435\
35 | }\
36 | .ace-merbivore-soft .ace_gutter-active-line {\
37 | background-color: #333435\
38 | }\
39 | .ace-merbivore-soft .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid #494949\
41 | }\
42 | .ace-merbivore-soft .ace_invisible {\
43 | color: #404040\
44 | }\
45 | .ace-merbivore-soft .ace_entity.ace_name.ace_tag,\
46 | .ace-merbivore-soft .ace_keyword,\
47 | .ace-merbivore-soft .ace_meta,\
48 | .ace-merbivore-soft .ace_meta.ace_tag,\
49 | .ace-merbivore-soft .ace_storage {\
50 | color: #FC803A\
51 | }\
52 | .ace-merbivore-soft .ace_constant,\
53 | .ace-merbivore-soft .ace_constant.ace_character,\
54 | .ace-merbivore-soft .ace_constant.ace_character.ace_escape,\
55 | .ace-merbivore-soft .ace_constant.ace_other,\
56 | .ace-merbivore-soft .ace_support.ace_type {\
57 | color: #68C1D8\
58 | }\
59 | .ace-merbivore-soft .ace_constant.ace_character.ace_escape {\
60 | color: #B3E5B4\
61 | }\
62 | .ace-merbivore-soft .ace_constant.ace_language {\
63 | color: #E1C582\
64 | }\
65 | .ace-merbivore-soft .ace_constant.ace_library,\
66 | .ace-merbivore-soft .ace_string,\
67 | .ace-merbivore-soft .ace_support.ace_constant {\
68 | color: #8EC65F\
69 | }\
70 | .ace-merbivore-soft .ace_constant.ace_numeric {\
71 | color: #7FC578\
72 | }\
73 | .ace-merbivore-soft .ace_invalid,\
74 | .ace-merbivore-soft .ace_invalid.ace_deprecated {\
75 | color: #FFFFFF;\
76 | background-color: #FE3838\
77 | }\
78 | .ace-merbivore-soft .ace_fold {\
79 | background-color: #FC803A;\
80 | border-color: #E6E1DC\
81 | }\
82 | .ace-merbivore-soft .ace_comment,\
83 | .ace-merbivore-soft .ace_meta {\
84 | font-style: italic;\
85 | color: #AC4BB8\
86 | }\
87 | .ace-merbivore-soft .ace_entity.ace_other.ace_attribute-name {\
88 | color: #EAF1A3\
89 | }\
90 | .ace-merbivore-soft .ace_indent-guide {\
91 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWOQkpLyZfD09PwPAAfYAnaStpHRAAAAAElFTkSuQmCC) right repeat-y\
92 | }";
93 |
94 | var dom = require("../lib/dom");
95 | dom.importCssString(exports.cssText, exports.cssClass);
96 | }); (function() {
97 | ace.require(["ace/theme/merbivore_soft"], function(m) {
98 | if (typeof module == "object" && typeof exports == "object" && module) {
99 | module.exports = m;
100 | }
101 | });
102 | })();
103 |
--------------------------------------------------------------------------------
/src/ace/theme-monokai.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-monokai";
5 | exports.cssText = ".ace-monokai .ace_gutter {\
6 | background: #2F3129;\
7 | color: #8F908A\
8 | }\
9 | .ace-monokai .ace_print-margin {\
10 | width: 1px;\
11 | background: #555651\
12 | }\
13 | .ace-monokai {\
14 | background-color: #272822;\
15 | color: #F8F8F2\
16 | }\
17 | .ace-monokai .ace_cursor {\
18 | color: #F8F8F0\
19 | }\
20 | .ace-monokai .ace_marker-layer .ace_selection {\
21 | background: #49483E\
22 | }\
23 | .ace-monokai.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #272822;\
25 | }\
26 | .ace-monokai .ace_marker-layer .ace_step {\
27 | background: rgb(102, 82, 0)\
28 | }\
29 | .ace-monokai .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid #49483E\
32 | }\
33 | .ace-monokai .ace_marker-layer .ace_active-line {\
34 | background: #202020\
35 | }\
36 | .ace-monokai .ace_gutter-active-line {\
37 | background-color: #272727\
38 | }\
39 | .ace-monokai .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid #49483E\
41 | }\
42 | .ace-monokai .ace_invisible {\
43 | color: #52524d\
44 | }\
45 | .ace-monokai .ace_entity.ace_name.ace_tag,\
46 | .ace-monokai .ace_keyword,\
47 | .ace-monokai .ace_meta.ace_tag,\
48 | .ace-monokai .ace_storage {\
49 | color: #F92672\
50 | }\
51 | .ace-monokai .ace_punctuation,\
52 | .ace-monokai .ace_punctuation.ace_tag {\
53 | color: #fff\
54 | }\
55 | .ace-monokai .ace_constant.ace_character,\
56 | .ace-monokai .ace_constant.ace_language,\
57 | .ace-monokai .ace_constant.ace_numeric,\
58 | .ace-monokai .ace_constant.ace_other {\
59 | color: #AE81FF\
60 | }\
61 | .ace-monokai .ace_invalid {\
62 | color: #F8F8F0;\
63 | background-color: #F92672\
64 | }\
65 | .ace-monokai .ace_invalid.ace_deprecated {\
66 | color: #F8F8F0;\
67 | background-color: #AE81FF\
68 | }\
69 | .ace-monokai .ace_support.ace_constant,\
70 | .ace-monokai .ace_support.ace_function {\
71 | color: #66D9EF\
72 | }\
73 | .ace-monokai .ace_fold {\
74 | background-color: #A6E22E;\
75 | border-color: #F8F8F2\
76 | }\
77 | .ace-monokai .ace_storage.ace_type,\
78 | .ace-monokai .ace_support.ace_class,\
79 | .ace-monokai .ace_support.ace_type {\
80 | font-style: italic;\
81 | color: #66D9EF\
82 | }\
83 | .ace-monokai .ace_entity.ace_name.ace_function,\
84 | .ace-monokai .ace_entity.ace_other,\
85 | .ace-monokai .ace_entity.ace_other.ace_attribute-name,\
86 | .ace-monokai .ace_variable {\
87 | color: #A6E22E\
88 | }\
89 | .ace-monokai .ace_variable.ace_parameter {\
90 | font-style: italic;\
91 | color: #FD971F\
92 | }\
93 | .ace-monokai .ace_string {\
94 | color: #E6DB74\
95 | }\
96 | .ace-monokai .ace_comment {\
97 | color: #75715E\
98 | }\
99 | .ace-monokai .ace_indent-guide {\
100 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y\
101 | }";
102 |
103 | var dom = require("../lib/dom");
104 | dom.importCssString(exports.cssText, exports.cssClass);
105 | }); (function() {
106 | ace.require(["ace/theme/monokai"], function(m) {
107 | if (typeof module == "object" && typeof exports == "object" && module) {
108 | module.exports = m;
109 | }
110 | });
111 | })();
112 |
--------------------------------------------------------------------------------
/src/ace/theme-solarized_dark.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/solarized_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-solarized-dark";
5 | exports.cssText = ".ace-solarized-dark .ace_gutter {\
6 | background: #01313f;\
7 | color: #d0edf7\
8 | }\
9 | .ace-solarized-dark .ace_print-margin {\
10 | width: 1px;\
11 | background: #33555E\
12 | }\
13 | .ace-solarized-dark {\
14 | background-color: #002B36;\
15 | color: #93A1A1\
16 | }\
17 | .ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,\
18 | .ace-solarized-dark .ace_storage {\
19 | color: #93A1A1\
20 | }\
21 | .ace-solarized-dark .ace_cursor,\
22 | .ace-solarized-dark .ace_string.ace_regexp {\
23 | color: #D30102\
24 | }\
25 | .ace-solarized-dark .ace_marker-layer .ace_active-line,\
26 | .ace-solarized-dark .ace_marker-layer .ace_selection {\
27 | background: rgba(255, 255, 255, 0.1)\
28 | }\
29 | .ace-solarized-dark.ace_multiselect .ace_selection.ace_start {\
30 | box-shadow: 0 0 3px 0px #002B36;\
31 | }\
32 | .ace-solarized-dark .ace_marker-layer .ace_step {\
33 | background: rgb(102, 82, 0)\
34 | }\
35 | .ace-solarized-dark .ace_marker-layer .ace_bracket {\
36 | margin: -1px 0 0 -1px;\
37 | border: 1px solid rgba(147, 161, 161, 0.50)\
38 | }\
39 | .ace-solarized-dark .ace_gutter-active-line {\
40 | background-color: #0d3440\
41 | }\
42 | .ace-solarized-dark .ace_marker-layer .ace_selected-word {\
43 | border: 1px solid #073642\
44 | }\
45 | .ace-solarized-dark .ace_invisible {\
46 | color: rgba(147, 161, 161, 0.50)\
47 | }\
48 | .ace-solarized-dark .ace_keyword,\
49 | .ace-solarized-dark .ace_meta,\
50 | .ace-solarized-dark .ace_support.ace_class,\
51 | .ace-solarized-dark .ace_support.ace_type {\
52 | color: #859900\
53 | }\
54 | .ace-solarized-dark .ace_constant.ace_character,\
55 | .ace-solarized-dark .ace_constant.ace_other {\
56 | color: #CB4B16\
57 | }\
58 | .ace-solarized-dark .ace_constant.ace_language {\
59 | color: #B58900\
60 | }\
61 | .ace-solarized-dark .ace_constant.ace_numeric {\
62 | color: #D33682\
63 | }\
64 | .ace-solarized-dark .ace_fold {\
65 | background-color: #268BD2;\
66 | border-color: #93A1A1\
67 | }\
68 | .ace-solarized-dark .ace_entity.ace_name.ace_function,\
69 | .ace-solarized-dark .ace_entity.ace_name.ace_tag,\
70 | .ace-solarized-dark .ace_support.ace_function,\
71 | .ace-solarized-dark .ace_variable,\
72 | .ace-solarized-dark .ace_variable.ace_language {\
73 | color: #268BD2\
74 | }\
75 | .ace-solarized-dark .ace_string {\
76 | color: #2AA198\
77 | }\
78 | .ace-solarized-dark .ace_comment {\
79 | font-style: italic;\
80 | color: #657B83\
81 | }\
82 | .ace-solarized-dark .ace_indent-guide {\
83 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNg0Db1ZVCxc/sPAAd4AlUHlLenAAAAAElFTkSuQmCC) right repeat-y\
84 | }";
85 |
86 | var dom = require("../lib/dom");
87 | dom.importCssString(exports.cssText, exports.cssClass);
88 | }); (function() {
89 | ace.require(["ace/theme/solarized_dark"], function(m) {
90 | if (typeof module == "object" && typeof exports == "object" && module) {
91 | module.exports = m;
92 | }
93 | });
94 | })();
95 |
--------------------------------------------------------------------------------
/src/ace/theme-solarized_light.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/solarized_light",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = false;
4 | exports.cssClass = "ace-solarized-light";
5 | exports.cssText = ".ace-solarized-light .ace_gutter {\
6 | background: #fbf1d3;\
7 | color: #333\
8 | }\
9 | .ace-solarized-light .ace_print-margin {\
10 | width: 1px;\
11 | background: #e8e8e8\
12 | }\
13 | .ace-solarized-light {\
14 | background-color: #FDF6E3;\
15 | color: #586E75\
16 | }\
17 | .ace-solarized-light .ace_cursor {\
18 | color: #000000\
19 | }\
20 | .ace-solarized-light .ace_marker-layer .ace_selection {\
21 | background: rgba(7, 54, 67, 0.09)\
22 | }\
23 | .ace-solarized-light.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #FDF6E3;\
25 | }\
26 | .ace-solarized-light .ace_marker-layer .ace_step {\
27 | background: rgb(255, 255, 0)\
28 | }\
29 | .ace-solarized-light .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid rgba(147, 161, 161, 0.50)\
32 | }\
33 | .ace-solarized-light .ace_marker-layer .ace_active-line {\
34 | background: #EEE8D5\
35 | }\
36 | .ace-solarized-light .ace_gutter-active-line {\
37 | background-color : #EDE5C1\
38 | }\
39 | .ace-solarized-light .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid #7f9390\
41 | }\
42 | .ace-solarized-light .ace_invisible {\
43 | color: rgba(147, 161, 161, 0.50)\
44 | }\
45 | .ace-solarized-light .ace_keyword,\
46 | .ace-solarized-light .ace_meta,\
47 | .ace-solarized-light .ace_support.ace_class,\
48 | .ace-solarized-light .ace_support.ace_type {\
49 | color: #859900\
50 | }\
51 | .ace-solarized-light .ace_constant.ace_character,\
52 | .ace-solarized-light .ace_constant.ace_other {\
53 | color: #CB4B16\
54 | }\
55 | .ace-solarized-light .ace_constant.ace_language {\
56 | color: #B58900\
57 | }\
58 | .ace-solarized-light .ace_constant.ace_numeric {\
59 | color: #D33682\
60 | }\
61 | .ace-solarized-light .ace_fold {\
62 | background-color: #268BD2;\
63 | border-color: #586E75\
64 | }\
65 | .ace-solarized-light .ace_entity.ace_name.ace_function,\
66 | .ace-solarized-light .ace_entity.ace_name.ace_tag,\
67 | .ace-solarized-light .ace_support.ace_function,\
68 | .ace-solarized-light .ace_variable,\
69 | .ace-solarized-light .ace_variable.ace_language {\
70 | color: #268BD2\
71 | }\
72 | .ace-solarized-light .ace_storage {\
73 | color: #073642\
74 | }\
75 | .ace-solarized-light .ace_string {\
76 | color: #2AA198\
77 | }\
78 | .ace-solarized-light .ace_string.ace_regexp {\
79 | color: #D30102\
80 | }\
81 | .ace-solarized-light .ace_comment,\
82 | .ace-solarized-light .ace_entity.ace_other.ace_attribute-name {\
83 | color: #93A1A1\
84 | }\
85 | .ace-solarized-light .ace_indent-guide {\
86 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHjy8NJ/AAjgA5fzQUmBAAAAAElFTkSuQmCC) right repeat-y\
87 | }";
88 |
89 | var dom = require("../lib/dom");
90 | dom.importCssString(exports.cssText, exports.cssClass);
91 | }); (function() {
92 | ace.require(["ace/theme/solarized_light"], function(m) {
93 | if (typeof module == "object" && typeof exports == "object" && module) {
94 | module.exports = m;
95 | }
96 | });
97 | })();
98 |
--------------------------------------------------------------------------------
/src/ace/theme-vibrant_ink.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/vibrant_ink",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = true;
4 | exports.cssClass = "ace-vibrant-ink";
5 | exports.cssText = ".ace-vibrant-ink .ace_gutter {\
6 | background: #1a1a1a;\
7 | color: #BEBEBE\
8 | }\
9 | .ace-vibrant-ink .ace_print-margin {\
10 | width: 1px;\
11 | background: #1a1a1a\
12 | }\
13 | .ace-vibrant-ink {\
14 | background-color: #0F0F0F;\
15 | color: #FFFFFF\
16 | }\
17 | .ace-vibrant-ink .ace_cursor {\
18 | color: #FFFFFF\
19 | }\
20 | .ace-vibrant-ink .ace_marker-layer .ace_selection {\
21 | background: #6699CC\
22 | }\
23 | .ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {\
24 | box-shadow: 0 0 3px 0px #0F0F0F;\
25 | }\
26 | .ace-vibrant-ink .ace_marker-layer .ace_step {\
27 | background: rgb(102, 82, 0)\
28 | }\
29 | .ace-vibrant-ink .ace_marker-layer .ace_bracket {\
30 | margin: -1px 0 0 -1px;\
31 | border: 1px solid #404040\
32 | }\
33 | .ace-vibrant-ink .ace_marker-layer .ace_active-line {\
34 | background: #333333\
35 | }\
36 | .ace-vibrant-ink .ace_gutter-active-line {\
37 | background-color: #333333\
38 | }\
39 | .ace-vibrant-ink .ace_marker-layer .ace_selected-word {\
40 | border: 1px solid #6699CC\
41 | }\
42 | .ace-vibrant-ink .ace_invisible {\
43 | color: #404040\
44 | }\
45 | .ace-vibrant-ink .ace_keyword,\
46 | .ace-vibrant-ink .ace_meta {\
47 | color: #FF6600\
48 | }\
49 | .ace-vibrant-ink .ace_constant,\
50 | .ace-vibrant-ink .ace_constant.ace_character,\
51 | .ace-vibrant-ink .ace_constant.ace_character.ace_escape,\
52 | .ace-vibrant-ink .ace_constant.ace_other {\
53 | color: #339999\
54 | }\
55 | .ace-vibrant-ink .ace_constant.ace_numeric {\
56 | color: #99CC99\
57 | }\
58 | .ace-vibrant-ink .ace_invalid,\
59 | .ace-vibrant-ink .ace_invalid.ace_deprecated {\
60 | color: #CCFF33;\
61 | background-color: #000000\
62 | }\
63 | .ace-vibrant-ink .ace_fold {\
64 | background-color: #FFCC00;\
65 | border-color: #FFFFFF\
66 | }\
67 | .ace-vibrant-ink .ace_entity.ace_name.ace_function,\
68 | .ace-vibrant-ink .ace_support.ace_function,\
69 | .ace-vibrant-ink .ace_variable {\
70 | color: #FFCC00\
71 | }\
72 | .ace-vibrant-ink .ace_variable.ace_parameter {\
73 | font-style: italic\
74 | }\
75 | .ace-vibrant-ink .ace_string {\
76 | color: #66FF00\
77 | }\
78 | .ace-vibrant-ink .ace_string.ace_regexp {\
79 | color: #44B4CC\
80 | }\
81 | .ace-vibrant-ink .ace_comment {\
82 | color: #9933CC\
83 | }\
84 | .ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name {\
85 | font-style: italic;\
86 | color: #99CC99\
87 | }\
88 | .ace-vibrant-ink .ace_indent-guide {\
89 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYNDTc/oPAALPAZ7hxlbYAAAAAElFTkSuQmCC) right repeat-y\
90 | }";
91 |
92 | var dom = require("../lib/dom");
93 | dom.importCssString(exports.cssText, exports.cssClass);
94 | }); (function() {
95 | ace.require(["ace/theme/vibrant_ink"], function(m) {
96 | if (typeof module == "object" && typeof exports == "object" && module) {
97 | module.exports = m;
98 | }
99 | });
100 | })();
101 |
--------------------------------------------------------------------------------
/src/ace/theme-xcode.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/theme/xcode",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
2 |
3 | exports.isDark = false;
4 | exports.cssClass = "ace-xcode";
5 | exports.cssText = "\
6 | .ace-xcode .ace_gutter {\
7 | background: #e8e8e8;\
8 | color: #333\
9 | }\
10 | .ace-xcode .ace_print-margin {\
11 | width: 1px;\
12 | background: #e8e8e8\
13 | }\
14 | .ace-xcode {\
15 | background-color: #FFFFFF;\
16 | color: #000000\
17 | }\
18 | .ace-xcode .ace_cursor {\
19 | color: #000000\
20 | }\
21 | .ace-xcode .ace_marker-layer .ace_selection {\
22 | background: #B5D5FF\
23 | }\
24 | .ace-xcode.ace_multiselect .ace_selection.ace_start {\
25 | box-shadow: 0 0 3px 0px #FFFFFF;\
26 | }\
27 | .ace-xcode .ace_marker-layer .ace_step {\
28 | background: rgb(198, 219, 174)\
29 | }\
30 | .ace-xcode .ace_marker-layer .ace_bracket {\
31 | margin: -1px 0 0 -1px;\
32 | border: 1px solid #BFBFBF\
33 | }\
34 | .ace-xcode .ace_marker-layer .ace_active-line {\
35 | background: rgba(0, 0, 0, 0.071)\
36 | }\
37 | .ace-xcode .ace_gutter-active-line {\
38 | background-color: rgba(0, 0, 0, 0.071)\
39 | }\
40 | .ace-xcode .ace_marker-layer .ace_selected-word {\
41 | border: 1px solid #B5D5FF\
42 | }\
43 | .ace-xcode .ace_constant.ace_language,\
44 | .ace-xcode .ace_keyword,\
45 | .ace-xcode .ace_meta,\
46 | .ace-xcode .ace_variable.ace_language {\
47 | color: #C800A4\
48 | }\
49 | .ace-xcode .ace_invisible {\
50 | color: #BFBFBF\
51 | }\
52 | .ace-xcode .ace_constant.ace_character,\
53 | .ace-xcode .ace_constant.ace_other {\
54 | color: #275A5E\
55 | }\
56 | .ace-xcode .ace_constant.ace_numeric {\
57 | color: #3A00DC\
58 | }\
59 | .ace-xcode .ace_entity.ace_other.ace_attribute-name,\
60 | .ace-xcode .ace_support.ace_constant,\
61 | .ace-xcode .ace_support.ace_function {\
62 | color: #450084\
63 | }\
64 | .ace-xcode .ace_fold {\
65 | background-color: #C800A4;\
66 | border-color: #000000\
67 | }\
68 | .ace-xcode .ace_entity.ace_name.ace_tag,\
69 | .ace-xcode .ace_support.ace_class,\
70 | .ace-xcode .ace_support.ace_type {\
71 | color: #790EAD\
72 | }\
73 | .ace-xcode .ace_storage {\
74 | color: #C900A4\
75 | }\
76 | .ace-xcode .ace_string {\
77 | color: #DF0002\
78 | }\
79 | .ace-xcode .ace_comment {\
80 | color: #008E00\
81 | }\
82 | .ace-xcode .ace_indent-guide {\
83 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y\
84 | }";
85 |
86 | var dom = require("../lib/dom");
87 | dom.importCssString(exports.cssText, exports.cssClass);
88 | }); (function() {
89 | ace.require(["ace/theme/xcode"], function(m) {
90 | if (typeof module == "object" && typeof exports == "object" && module) {
91 | module.exports = m;
92 | }
93 | });
94 | })();
95 |
--------------------------------------------------------------------------------
/src/bin.ts:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | // warnings: no tanks
4 | // hides ExperimentalWarning: The fs.promises API is experimental
5 | process.env.NODE_NO_WARNINGS = '1'
6 |
7 | /**
8 | * Dependencies
9 | */
10 |
11 | import { CLI } from './cli'
12 | import { Version } from './cli/version'
13 | import chalk from 'chalk'
14 | import { HelpError } from './cli/help'
15 | import { isError } from './cli/helpers/utils'
16 | // import { capture } from './capture'
17 |
18 |
19 | /**
20 | * Main function
21 | */
22 | async function main(): Promise {
23 | // react shut up
24 | process.env.NODE_ENV = 'production'
25 |
26 | // create a new CLI with our subcommands
27 | const cli = CLI.new({
28 | version: Version.new(),
29 | })
30 | // parse the arguments
31 | const result = await cli.parse(process.argv.slice(2))
32 | if (result instanceof HelpError) {
33 | console.error(result.message)
34 | return 1
35 | } else if (isError(result)) {
36 | console.error(result)
37 | return 1
38 | }
39 | console.log(result)
40 |
41 | return 0
42 | }
43 |
44 | process.on('SIGINT', () => {
45 | process.exit(0) // now the "exit" event will fire
46 | })
47 |
48 | /**
49 | * Run our program
50 | */
51 | if (require.main === module) {
52 | main()
53 | .then(code => {
54 | if (code !== 0) {
55 | process.exit(code)
56 | }
57 | })
58 | .catch(err => {
59 | console.error(chalk.redBright.bold('Error: ') + err.stack)
60 | process.exit(1)
61 | })
62 | }
--------------------------------------------------------------------------------
/src/cli/help.ts:
--------------------------------------------------------------------------------
1 |
2 | import chalk from 'chalk'
3 |
4 | /**
5 | * Unknown command
6 | */
7 | export function unknownCommand(helpTemplate: string, cmd: string): HelpError {
8 | return new HelpError(
9 | `\n${chalk.bold.red(`!`)} Unknown command "${cmd}"\n${helpTemplate}`,
10 | )
11 | }
12 |
13 | /**
14 | * Custom help error used to display help
15 | * errors without printing a stack trace
16 | */
17 | export class HelpError extends Error {
18 | constructor(msg: string) {
19 | super(msg)
20 | // setPrototypeOf is needed for custom errors to work
21 | Object.setPrototypeOf(this, HelpError.prototype)
22 | }
23 | }
--------------------------------------------------------------------------------
/src/cli/helpers/types.ts:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Command interface
4 | */
5 | export interface Command {
6 | parse(argv: string[]): Promise
7 | }
8 |
9 | /**
10 | * Commands
11 | */
12 | export type Commands = { [command: string]: Command }
13 |
14 | export type Dictionary = {
15 | [key: string]: T
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/src/cli/helpers/utils.ts:
--------------------------------------------------------------------------------
1 | import dedent from 'strip-indent'
2 | import Arg from 'arg'
3 |
4 | /**
5 | * format
6 | */
7 | export function format(input: string = ''): string {
8 | return dedent(input).trimRight() + '\n'
9 | }
10 |
11 | /**
12 | * Wrap arg to return an error instead of throwing
13 | */
14 | export function arg(argv: string[], spec: T): Arg.Result | Error {
15 | try {
16 | return Arg(spec, { argv, stopAtPositional: true })
17 | } catch (err) {
18 | return err
19 | }
20 | }
21 |
22 | /**
23 | * Check if result is an error
24 | */
25 | export function isError(result: any): result is Error {
26 | return result instanceof Error
27 | }
--------------------------------------------------------------------------------
/src/cli/index.ts:
--------------------------------------------------------------------------------
1 | import chalk from 'chalk'
2 | // import { Command, Commands, arg, isError, format, HelpError, unknownCommand } from '@prisma/cli'
3 | import { Version } from './version'
4 | import { Command, Commands } from './helpers/types'
5 | import { isError, format } from 'util'
6 | import { unknownCommand, HelpError } from './help'
7 | import { arg } from './helpers/utils'
8 | import { Run } from './run'
9 |
10 | /**
11 | * CLI command
12 | */
13 | export class CLI implements Command {
14 | static new(cmds: Commands): CLI {
15 | return new CLI(cmds)
16 | }
17 | private constructor(private readonly cmds: Commands) {}
18 |
19 | async parse(argv: string[]): Promise {
20 | // parse the args according to the following spec
21 | const args = arg(argv, {
22 | '--help': Boolean,
23 | '-h': '--help',
24 | '--version': Boolean,
25 | '-v': '--version',
26 | })
27 | if (isError(args)) {
28 | return this.help(args.message)
29 | }
30 | if (args['--version']) {
31 | return Version.new().parse(argv)
32 | }
33 | if (args['--help']) {
34 | return this.help()
35 | }
36 | if (args._.length === 0 || args._.length === 1){
37 | return Run.new().parse(args._)
38 | }
39 |
40 |
41 | // check if we have that subcommand
42 | const cmd = this.cmds[args._[0]]
43 | if (cmd) {
44 | return cmd.parse(args._.slice(1))
45 | }
46 | // unknown command
47 | return unknownCommand(CLI.help, args._[0])
48 | }
49 |
50 | // help function
51 | private help(error?: string): string | HelpError {
52 | if (error) {
53 | return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${CLI.help}`)
54 | }
55 | return CLI.help
56 | }
57 |
58 | // static help template
59 | private static help = format(`
60 | ${chalk.bold.green('Prisma Viewer ಠ_ಠ')}
61 |
62 | ${chalk.bold('Usage')}
63 | ${chalk.dim(`$`)} pv [path]
64 |
65 | ${chalk.bold('Options')}
66 | -h, --help Displays this help message
67 | ${chalk.bold('Examples')}
68 | ${chalk.dim(`$`)} pv
69 | ${chalk.dim(`$`)} pv ./schema.prisma
70 | `)
71 | }
--------------------------------------------------------------------------------
/src/cli/run.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 | import { getDMMF } from '@prisma/sdk';
4 | import * as fs from 'fs';
5 | // import chalk from 'chalk';
6 | import chalk from 'chalk';
7 | import { Command } from './helpers/types';
8 | import * as path from 'path';
9 | import * as Fastify from 'fastify';
10 | import { Server, IncomingMessage, ServerResponse } from 'http'
11 | import open from 'open';
12 |
13 | const server: Fastify.FastifyInstance = Fastify.default({})
14 |
15 | function getSchemaPath(schemaPath?: string): string {
16 | if(schemaPath && fs.existsSync(schemaPath)){
17 | return schemaPath;
18 | }
19 | const paths = ["./schema.prisma", "./prisma/schema.prisma"]
20 | for (const path of paths){
21 | if (fs.existsSync(path)) {
22 | return path
23 | }
24 | }
25 | throw Error(chalk.red("✗ Schema could not be found!"))
26 | }
27 |
28 | export class Run implements Command {
29 | static new(): Run {
30 | return new Run()
31 | }
32 | private constructor() {}
33 | async parse(args: string[]) {
34 | let datamodelPath = getSchemaPath(args && args[0])
35 | const dmmf = await getDMMF({datamodelPath})
36 | fs.writeFileSync(path.join(__dirname, '../../public/datamodel.json'), JSON.stringify(dmmf.datamodel), {encoding: 'utf8', flag: 'w' })
37 | console.log(chalk.green('✔ Data Model Generated'));
38 | // Require the framework and instantiate it
39 |
40 | server.register(require('fastify-static'), {
41 | root: path.join(__dirname, '../../public'),
42 | prefix: '/public/', // optional: default '/'
43 | })
44 | // Declare a route
45 | server.get('/', async (request, reply) => {
46 | (reply as any).sendFile('index.html') // serving path.join(__dirname, 'public', 'myHtml.html') directly
47 | })
48 | server.post('/generate', async (request, reply) => {
49 | const schema = request.body;
50 | try{
51 | const dmmf = await getDMMF({datamodel: schema as string});
52 | reply
53 | .code(200)
54 | .header('Content-Type', 'application/json; charset=utf-8')
55 | .send(dmmf.datamodel)
56 | } catch (err) {
57 | reply
58 | .code(500)
59 | .send(err)
60 | }
61 | })
62 |
63 | // Run the server!
64 | const start = async () => {
65 | try {
66 | await server.listen(3000)
67 | let address = server.server.address();
68 | address = typeof address === 'string' ? address : `${address?.address}:${address?.port}`
69 | const url = `http://${address}`
70 | return url
71 | } catch (err) {
72 | process.exit(1)
73 | }
74 | }
75 | const url = await start()
76 | console.log(chalk.green(`✔ Opening Browser to ${url}`));
77 | await open(url)
78 | return ''
79 | }
80 | }
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/cli/version.ts:
--------------------------------------------------------------------------------
1 | import { Command } from './helpers/types'
2 |
3 | const packageJson = require('../../package.json')
4 |
5 | export class Version implements Command {
6 | static new(): Version {
7 | return new Version()
8 | }
9 | private constructor() {}
10 | async parse(argv: string[]) {
11 | return `${packageJson.name}@${packageJson.version}`
12 | }
13 | }
--------------------------------------------------------------------------------
/src/connection.ts:
--------------------------------------------------------------------------------
1 | import { Vec } from "./vector";
2 | import { Model } from './model';
3 | import { getFieldY } from './utils';
4 | import { FIELD_HEIGHT, STRING_LEN } from './constants';
5 |
6 | export function drawSpline(ctx: CanvasRenderingContext2D ,start: Vec, end: Vec){
7 | const dist = start.calc_dist(end)
8 | ctx.beginPath()
9 | ctx.moveTo(start.x || 0, start.y || 0)
10 | ctx.bezierCurveTo(
11 | start.x + dist * 0.4 || 0, // cp1 x
12 | start.y || 0, // cp1 y
13 | end.x - dist * 0.4 || 0, // cp2 x
14 | end.y || 0, // cp2 y
15 | end.x || 0, // end x
16 | end.y || 0
17 | ), //
18 | ctx.stroke()
19 | }
20 |
21 | export class Connection {
22 | from_model_idx: number;
23 | to_model_idx: number;
24 | from_field_idx: number;
25 | to_field_idx: number;
26 | length: number;
27 | constructor(
28 | from_model_idx: number,
29 | to_model_idx: number,
30 | from_field_idx: number,
31 | to_field_idx: number) {
32 | this.from_model_idx = from_model_idx
33 | this.to_model_idx = to_model_idx
34 | this.from_field_idx = from_field_idx
35 | this.to_field_idx = to_field_idx
36 | this.length = length || STRING_LEN
37 | }
38 | public draw(ctx: CanvasRenderingContext2D, models: Model[]){
39 | let a = models[this.from_model_idx];
40 | let b = models[this.to_model_idx];
41 | const start = a.pos.copy()
42 | const end = b.pos.copy()
43 | end.y = end.y + (FIELD_HEIGHT * (2 + this.to_field_idx))
44 | start.y = start.y + (FIELD_HEIGHT * (2 + this.from_field_idx))
45 | start.x = start.x + a.width
46 |
47 | drawSpline(ctx, start, end)
48 | }
49 | }
--------------------------------------------------------------------------------
/src/constants.ts:
--------------------------------------------------------------------------------
1 | export const STRING_LEN = 300;
2 | export const FIELD_HEIGHT = 20
--------------------------------------------------------------------------------
/src/darge.ts:
--------------------------------------------------------------------------------
1 | import * as dagre from 'dagre';
2 | import { Model } from './model';
3 | import { Connection } from './connection';
4 | import { Vec } from './vector';
5 |
6 |
7 | const type = ["LR", "RL", "TB", "BT"]
8 | let selection = 0
9 | export function autolayout(models: Model[], connections: Connection[], toggle = false){
10 | const g = new dagre.graphlib.Graph();
11 |
12 | // Set an object for the graph label
13 | g.setGraph({
14 | rankdir: type[selection],
15 | // ranker: 'longest-path'
16 | });
17 |
18 | // Default to assigning a new object as a label for each new edge.
19 | g.setDefaultEdgeLabel(function() { return {}; });
20 |
21 |
22 | models.forEach((model, i) => {
23 | g.setNode(i.toString(), { label: model.model.name, width: model.width, height: model.height });
24 | })
25 | connections.forEach((conn, i) => {
26 | g.setEdge(conn.from_model_idx.toString(), conn.to_model_idx.toString());
27 |
28 | })
29 | dagre.layout(g)
30 | g.nodes().forEach(v => {
31 | const node = g.node(v)
32 | const pos = new Vec(node.x, node.y)
33 | models[parseInt(v)].pos = pos
34 | });
35 | const graph = g.graph()
36 | if(toggle){
37 | if(selection === 4){
38 | selection = 0
39 | } else {
40 | selection +=1
41 | }
42 | }
43 | return {width: graph.width, height: graph.height}
44 |
45 | }
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | /*globals _:false */
2 | 'use strict';
3 |
4 |
5 |
6 | import { DMMF } from '@prisma/generator-helper';
7 | import ace from './ace/ace.js';
8 | import { Canvas } from "./canvas";
9 | require('./ace/mode-prisma.js');
10 | require('./ace/theme-twilight.js');
11 |
12 | // import datamodel from '../public/datamodel.json';
13 |
14 |
15 | window.addEventListener("load", async function() {
16 | // Your code to run since DOM is loaded and ready
17 | let generateButton = document.getElementById('generate')
18 |
19 |
20 | const schema = await (await fetch('/public/schema.prisma')).text()
21 | const datamodel = await (await fetch('/generate', {method: "POST", body: schema, })).json()
22 | let canvas = new Canvas("canvas", datamodel as DMMF.Datamodel)
23 | var editor = ace.edit("editor");
24 | editor.setTheme("ace/theme/twilight");
25 | editor.setValue(schema)
26 | var PrismaMode = ace.require("ace/mode/prisma").Mode;
27 | editor.session.setMode(new PrismaMode());
28 | generateButton && generateButton.addEventListener('click', async () => {
29 | const datamodel = await (await fetch('/generate', {method: "POST", body: editor.getValue(), })).json()
30 | canvas.updateDatamodel(datamodel)
31 | })
32 | }, false);
--------------------------------------------------------------------------------
/src/timer.ts:
--------------------------------------------------------------------------------
1 | import { system_time } from "./utils";
2 |
3 | export class Timer {
4 | cur_time: number;
5 | time_diff: number;
6 | epoch_time: number;
7 | constructor(){
8 | this.cur_time = 0;
9 | this.time_diff = 0;
10 | this.mark_time();
11 | this.epoch_time = system_time();
12 | }
13 |
14 | public mark_time() {
15 | const time = system_time() - this.epoch_time;
16 | this.time_diff = Math.min(time - this.cur_time, 0.05);
17 | this.cur_time = time;
18 | };
19 | }
--------------------------------------------------------------------------------
/src/utils.ts:
--------------------------------------------------------------------------------
1 | import { Vec } from "./vector";
2 | import { FIELD_HEIGHT } from './constants';
3 |
4 | export function trim(x: number, min_value: number, max_value: number) {
5 | return Math.min(Math.max(x, min_value), max_value);
6 | }
7 | interface Postion {
8 | x: number;
9 | y: number;
10 | }
11 | export function dist(a: T, b: T) {
12 | return Math.sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
13 | }
14 | export function system_time() {
15 | return new Date().getTime() / 1000;
16 | }
17 |
18 | export function my_rand(min: number, max: number) {
19 | let r = Math.random();
20 | //r=r%1000;
21 | return r * (max - min) + min;
22 | }
23 | export function getFieldY(modelPos: Vec, field_idx: number){
24 | return modelPos.y + (FIELD_HEIGHT * (field_idx + 1))
25 | }
--------------------------------------------------------------------------------
/src/vector.ts:
--------------------------------------------------------------------------------
1 | import { trim } from "./utils";
2 |
3 | export class Vec {
4 | x: number;
5 | y: number;
6 | constructor(x?: number, y?: number) {
7 | this.x = x || 0;
8 | this.y = y || 0;
9 | };
10 | public trim(min_value: number, max_value: number) {
11 | return new Vec(trim(this.x, min_value, max_value), trim(this.y, min_value, max_value));
12 | };
13 | public div(a: number | Vec) {
14 | if(typeof a === 'number'){
15 | return new Vec(this.x / a, this.y / a);
16 | } else {
17 | return new Vec(this.x / a.x, this.y / a.y);
18 | }
19 | };
20 | public invert() {
21 | this.x = -1 * this.x
22 | this.y = -1 * this.y
23 |
24 | };
25 | public add(right: Vec) {
26 | return new Vec(this.x + right.x, this.y + right.y);
27 | };
28 | public add_to(right: Vec) {
29 | this.x += right.x;
30 | this.y += right.y;
31 | };
32 | public sub_to(right: Vec) {
33 | this.x -= right.x;
34 | this.y -= right.y;
35 | };
36 | public sub(right: Vec) {
37 | return new Vec(this.x - right.x, this.y - right.y);
38 | };
39 | public mult(value: number | Vec) {
40 | if(typeof value === 'number'){
41 | return new Vec(this.x * value, this.y * value);
42 | } else {
43 | return new Vec(this.x * value.x, this.y * value.y);
44 | }
45 | };
46 | public dot_mult(right: Vec) {
47 | return this.x * right.x + this.y * right.y;
48 | };
49 | public calc_dist(p2: Vec) {
50 | const p1 = this;
51 | return Math.sqrt((p2.x - p1.x) * (p2.x - p1.x) + (p2.y - p1.y) * (p2.y - p1.y));
52 | };
53 | public calc_dist_vec(p2: Vec) {
54 | const p1 = this;
55 | const dist = new Vec(
56 | p2.x - p1.x,
57 | p2.y - p1.y
58 | )
59 | return dist;
60 | };
61 | public magnitude(){
62 | return Math.sqrt((this.x * this.x) + (this.y * this.y))
63 | }
64 | public copy(){
65 | return new Vec(this.x, this.y)
66 | }
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/viewer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/williamluke4/prisma-viewer/6cfe4e03460ff03d192364970cc080d6b3234fd2/viewer.png
--------------------------------------------------------------------------------