├── jsconfig.json
├── favicon.png
├── assets
├── p1.png
├── p2.png
├── p3.png
├── p4.png
├── p5.png
├── p6.png
├── p7.png
├── p8.png
├── p9.png
├── dirt.jpg
├── err.png
├── grass.jpg
├── stone.jpg
├── terrain.jpg
└── presents.jpg
├── vendor
├── theme
│ ├── ambiance-mobile.css
│ ├── neat.css
│ ├── elegant.css
│ ├── neo.css
│ ├── eclipse.css
│ ├── bespin.css
│ ├── isotope.css
│ ├── hopscotch.css
│ ├── railscasts.css
│ ├── colorforth.css
│ ├── cobalt.css
│ ├── night.css
│ ├── rubyblue.css
│ ├── tomorrow-night-bright.css
│ ├── the-matrix.css
│ ├── yeti.css
│ ├── blackboard.css
│ ├── monokai.css
│ ├── abcdef.css
│ ├── zenburn.css
│ ├── 3024-day.css
│ ├── seti.css
│ ├── panda-syntax.css
│ ├── dracula.css
│ ├── paraiso-dark.css
│ ├── paraiso-light.css
│ ├── 3024-night.css
│ ├── vibrant-ink.css
│ ├── mbo.css
│ ├── twilight.css
│ ├── base16-dark.css
│ ├── base16-light.css
│ ├── midnight.css
│ ├── erlang-dark.css
│ └── xq-light.css
└── mode
│ ├── tiddlywiki
│ └── tiddlywiki.css
│ ├── ruby
│ └── test.js
│ ├── css
│ ├── gss_test.js
│ ├── less_test.js
│ └── index.html
│ ├── tiki
│ ├── tiki.css
│ └── index.html
│ ├── rust
│ ├── test.js
│ └── index.html
│ ├── python
│ └── test.js
│ ├── diff
│ └── diff.js
│ ├── mbox
│ └── index.html
│ ├── asciiarmor
│ └── index.html
│ ├── cypher
│ ├── test.js
│ └── index.html
│ ├── htmlembedded
│ ├── htmlembedded.js
│ └── index.html
│ ├── ntriples
│ └── index.html
│ ├── twig
│ └── index.html
│ ├── spreadsheet
│ └── index.html
│ ├── http
│ └── index.html
│ ├── haskell-literate
│ └── haskell-literate.js
│ ├── solr
│ └── index.html
│ ├── ecl
│ └── index.html
│ ├── z80
│ └── index.html
│ ├── oz
│ └── index.html
│ ├── turtle
│ └── index.html
│ ├── pig
│ └── index.html
│ ├── pascal
│ └── index.html
│ ├── vbscript
│ └── index.html
│ ├── gherkin
│ └── index.html
│ ├── properties
│ ├── index.html
│ └── properties.js
│ ├── javascript
│ ├── typescript.html
│ └── json-ld.html
│ ├── sass
│ └── index.html
│ ├── perl
│ └── index.html
│ ├── elm
│ └── index.html
│ ├── idl
│ └── index.html
│ ├── dart
│ └── index.html
│ ├── protobuf
│ ├── index.html
│ └── protobuf.js
│ ├── xml
│ ├── test.js
│ └── index.html
│ ├── jinja2
│ └── index.html
│ ├── shell
│ ├── test.js
│ └── index.html
│ ├── sparql
│ └── index.html
│ ├── tornado
│ └── index.html
│ ├── forth
│ └── index.html
│ ├── nsis
│ └── index.html
│ ├── gas
│ └── index.html
│ ├── toml
│ └── index.html
│ ├── clike
│ └── test.js
│ ├── octave
│ └── index.html
│ ├── pegjs
│ └── index.html
│ ├── smalltalk
│ └── index.html
│ ├── sas
│ └── index.html
│ ├── soy
│ └── index.html
│ ├── php
│ └── index.html
│ ├── modelica
│ └── index.html
│ ├── vue
│ └── index.html
│ ├── factor
│ └── index.html
│ ├── django
│ └── index.html
│ ├── apl
│ └── index.html
│ ├── haml
│ └── index.html
│ ├── handlebars
│ └── handlebars.js
│ ├── lua
│ └── index.html
│ ├── yaml
│ └── index.html
│ ├── rpm
│ └── changes
│ │ └── index.html
│ ├── swift
│ └── index.html
│ ├── webidl
│ └── index.html
│ ├── erlang
│ └── index.html
│ ├── haskell
│ └── index.html
│ └── go
│ └── index.html
├── .gitignore
├── README.md
├── preview-style.css
├── package.json
├── gulpfile.js
├── LICENSE
└── .eslintrc.yml
/jsconfig.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/favicon.png
--------------------------------------------------------------------------------
/assets/p1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p1.png
--------------------------------------------------------------------------------
/assets/p2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p2.png
--------------------------------------------------------------------------------
/assets/p3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p3.png
--------------------------------------------------------------------------------
/assets/p4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p4.png
--------------------------------------------------------------------------------
/assets/p5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p5.png
--------------------------------------------------------------------------------
/assets/p6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p6.png
--------------------------------------------------------------------------------
/assets/p7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p7.png
--------------------------------------------------------------------------------
/assets/p8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p8.png
--------------------------------------------------------------------------------
/assets/p9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/p9.png
--------------------------------------------------------------------------------
/assets/dirt.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/dirt.jpg
--------------------------------------------------------------------------------
/assets/err.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/err.png
--------------------------------------------------------------------------------
/assets/grass.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/grass.jpg
--------------------------------------------------------------------------------
/assets/stone.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/stone.jpg
--------------------------------------------------------------------------------
/assets/terrain.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/terrain.jpg
--------------------------------------------------------------------------------
/assets/presents.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/freeCodeCamp/hour-of-code/HEAD/assets/presents.jpg
--------------------------------------------------------------------------------
/vendor/theme/ambiance-mobile.css:
--------------------------------------------------------------------------------
1 | .cm-s-ambiance.CodeMirror {
2 | -webkit-box-shadow: none;
3 | -moz-box-shadow: none;
4 | box-shadow: none;
5 | }
6 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 |
6 | # Dependency directories
7 | node_modules
8 |
9 | # Editor settings
10 | .vscode
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Free Code Camp Hour of Code 2016
2 | =============
3 |
4 | To run project, clone repo, then:
5 |
6 | ```
7 | $ npm install
8 | $ npm start
9 | ```
10 |
11 | Served to
12 |
--------------------------------------------------------------------------------
/vendor/mode/tiddlywiki/tiddlywiki.css:
--------------------------------------------------------------------------------
1 | span.cm-underlined {
2 | text-decoration: underline;
3 | }
4 | span.cm-strikethrough {
5 | text-decoration: line-through;
6 | }
7 | span.cm-brace {
8 | color: #170;
9 | font-weight: bold;
10 | }
11 | span.cm-table {
12 | color: blue;
13 | font-weight: bold;
14 | }
15 |
--------------------------------------------------------------------------------
/preview-style.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | padding: 0;
3 | margin: 0;
4 | }
5 |
6 | #preview-container {
7 | width: 100%;
8 | height: 100%;
9 | display: flex;
10 | justify-content: center;
11 | align-items: center;
12 | }
13 |
14 | .red {
15 | background-color: palevioletred;
16 | }
17 |
18 | .green {
19 | background-color: palegreen;
20 | }
21 |
22 | .blue {
23 | background-color: paleturquoise;
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/mode/ruby/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "ruby");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("divide_equal_operator",
9 | "[variable bar] [operator /=] [variable foo]");
10 |
11 | MT("divide_equal_operator_no_spacing",
12 | "[variable foo][operator /=][number 42]");
13 |
14 | })();
15 |
--------------------------------------------------------------------------------
/vendor/mode/css/gss_test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | "use strict";
6 |
7 | var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-gss");
8 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "gss"); }
9 |
10 | MT("atComponent",
11 | "[def @component] {",
12 | "[tag foo] {",
13 | " [property color]: [keyword black];",
14 | "}",
15 | "}");
16 |
17 | })();
18 |
--------------------------------------------------------------------------------
/vendor/mode/tiki/tiki.css:
--------------------------------------------------------------------------------
1 | .cm-tw-syntaxerror {
2 | color: #FFF;
3 | background-color: #900;
4 | }
5 |
6 | .cm-tw-deleted {
7 | text-decoration: line-through;
8 | }
9 |
10 | .cm-tw-header5 {
11 | font-weight: bold;
12 | }
13 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/
14 | padding-left: 10px;
15 | }
16 |
17 | .cm-tw-box {
18 | border-top-width: 0px !important;
19 | border-style: solid;
20 | border-width: 1px;
21 | border-color: inherit;
22 | }
23 |
24 | .cm-tw-underline {
25 | text-decoration: underline;
26 | }
--------------------------------------------------------------------------------
/vendor/theme/neat.css:
--------------------------------------------------------------------------------
1 | .cm-s-neat span.cm-comment { color: #a86; }
2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
3 | .cm-s-neat span.cm-string { color: #a22; }
4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
6 | .cm-s-neat span.cm-variable { color: black; }
7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
8 | .cm-s-neat span.cm-meta { color: #555; }
9 | .cm-s-neat span.cm-link { color: #3a3; }
10 |
11 | .cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; }
12 | .cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }
13 |
--------------------------------------------------------------------------------
/vendor/theme/elegant.css:
--------------------------------------------------------------------------------
1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { color: #762; }
2 | .cm-s-elegant span.cm-comment { color: #262; font-style: italic; line-height: 1em; }
3 | .cm-s-elegant span.cm-meta { color: #555; font-style: italic; line-height: 1em; }
4 | .cm-s-elegant span.cm-variable { color: black; }
5 | .cm-s-elegant span.cm-variable-2 { color: #b11; }
6 | .cm-s-elegant span.cm-qualifier { color: #555; }
7 | .cm-s-elegant span.cm-keyword { color: #730; }
8 | .cm-s-elegant span.cm-builtin { color: #30a; }
9 | .cm-s-elegant span.cm-link { color: #762; }
10 | .cm-s-elegant span.cm-error { background-color: #fdd; }
11 |
12 | .cm-s-elegant .CodeMirror-activeline-background { background: #e8f2ff; }
13 | .cm-s-elegant .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }
14 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hour-of-code",
3 | "version": "1.0.0",
4 | "description": "FCC Hour of Code",
5 | "main": "index.html",
6 | "dependencies": {},
7 | "devDependencies": {
8 | "@types/codemirror": "0.0.35",
9 | "@types/lodash": "^4.14.41",
10 | "browser-sync": "^2.18.2",
11 | "gulp": "^3.9.1",
12 | "typescript": "^2.0.10"
13 | },
14 | "scripts": {
15 | "start": "gulp serve",
16 | "test": "echo \"Error: no test specified\" && exit 1"
17 | },
18 | "repository": {
19 | "type": "git",
20 | "url": "git+https://github.com/FreeCodeCamp/hour-of-code.git"
21 | },
22 | "keywords": [],
23 | "author": "",
24 | "license": "ISC",
25 | "bugs": {
26 | "url": "https://github.com/FreeCodeCamp/hour-of-code/issues"
27 | },
28 | "homepage": "https://github.com/FreeCodeCamp/hour-of-code#readme"
29 | }
30 |
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | var gulp = require('gulp');
2 | var browserSync = require('browser-sync').create();
3 | var reload = browserSync.reload;
4 |
5 | // Starts a local server in the base directory
6 | gulp.task('serve', function() {
7 | browserSync.init({
8 | server: {
9 | baseDir: "./"
10 | }
11 | });
12 |
13 | // Watches for changes in html and js files in base directory, and reloads if they occur (when saved)
14 | gulp.watch(['*.html', '*.js'], reload);
15 |
16 | // Watches for changes in css files, grabs the files, pipes them to browsersync stream
17 | // This injects the css into the page without a reload
18 | gulp.watch('*.css', function() {
19 | gulp.src('*.css')
20 | .pipe(browserSync.stream());
21 | });
22 | });
23 |
24 | // Runs when "$ gulp" is typed
25 | // Automatically runs the serve task
26 |
27 | gulp.task('default', ['serve']);
--------------------------------------------------------------------------------
/vendor/theme/neo.css:
--------------------------------------------------------------------------------
1 | /* neo theme for codemirror */
2 |
3 | /* Color scheme */
4 |
5 | .cm-s-neo.CodeMirror {
6 | background-color:#ffffff;
7 | color:#2e383c;
8 | line-height:1.4375;
9 | }
10 | .cm-s-neo .cm-comment { color:#75787b; }
11 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property { color:#1d75b3; }
12 | .cm-s-neo .cm-atom,.cm-s-neo .cm-number { color:#75438a; }
13 | .cm-s-neo .cm-node,.cm-s-neo .cm-tag { color:#9c3328; }
14 | .cm-s-neo .cm-string { color:#b35e14; }
15 | .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier { color:#047d65; }
16 |
17 |
18 | /* Editor styling */
19 |
20 | .cm-s-neo pre {
21 | padding:0;
22 | }
23 |
24 | .cm-s-neo .CodeMirror-gutters {
25 | border:none;
26 | border-right:10px solid transparent;
27 | background-color:transparent;
28 | }
29 |
30 | .cm-s-neo .CodeMirror-linenumber {
31 | padding:0;
32 | color:#e0e2e5;
33 | }
34 |
35 | .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; }
36 | .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; }
37 |
38 | .cm-s-neo .CodeMirror-cursor {
39 | width: auto;
40 | border: 0;
41 | background: rgba(155,157,162,0.37);
42 | z-index: 1;
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/mode/rust/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 4}, "rust");
6 | function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));}
7 |
8 | MT('integer_test',
9 | '[number 123i32]',
10 | '[number 123u32]',
11 | '[number 123_u32]',
12 | '[number 0xff_u8]',
13 | '[number 0o70_i16]',
14 | '[number 0b1111_1111_1001_0000_i32]',
15 | '[number 0usize]');
16 |
17 | MT('float_test',
18 | '[number 123.0f64]',
19 | '[number 0.1f64]',
20 | '[number 0.1f32]',
21 | '[number 12E+99_f64]');
22 |
23 | MT('string-literals-test',
24 | '[string "foo"]',
25 | '[string r"foo"]',
26 | '[string "\\"foo\\""]',
27 | '[string r#""foo""#]',
28 | '[string "foo #\\"# bar"]',
29 |
30 | '[string b"foo"]',
31 | '[string br"foo"]',
32 | '[string b"\\"foo\\""]',
33 | '[string br#""foo""#]',
34 | '[string br##"foo #" bar"##]',
35 |
36 | "[string-2 'h']",
37 | "[string-2 b'h']");
38 |
39 | })();
40 |
--------------------------------------------------------------------------------
/vendor/theme/eclipse.css:
--------------------------------------------------------------------------------
1 | .cm-s-eclipse span.cm-meta { color: #FF1717; }
2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
3 | .cm-s-eclipse span.cm-atom { color: #219; }
4 | .cm-s-eclipse span.cm-number { color: #164; }
5 | .cm-s-eclipse span.cm-def { color: #00f; }
6 | .cm-s-eclipse span.cm-variable { color: black; }
7 | .cm-s-eclipse span.cm-variable-2 { color: #0000C0; }
8 | .cm-s-eclipse span.cm-variable-3 { color: #0000C0; }
9 | .cm-s-eclipse span.cm-property { color: black; }
10 | .cm-s-eclipse span.cm-operator { color: black; }
11 | .cm-s-eclipse span.cm-comment { color: #3F7F5F; }
12 | .cm-s-eclipse span.cm-string { color: #2A00FF; }
13 | .cm-s-eclipse span.cm-string-2 { color: #f50; }
14 | .cm-s-eclipse span.cm-qualifier { color: #555; }
15 | .cm-s-eclipse span.cm-builtin { color: #30a; }
16 | .cm-s-eclipse span.cm-bracket { color: #cc7; }
17 | .cm-s-eclipse span.cm-tag { color: #170; }
18 | .cm-s-eclipse span.cm-attribute { color: #00c; }
19 | .cm-s-eclipse span.cm-link { color: #219; }
20 | .cm-s-eclipse span.cm-error { color: #f00; }
21 |
22 | .cm-s-eclipse .CodeMirror-activeline-background { background: #e8f2ff; }
23 | .cm-s-eclipse .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }
24 |
--------------------------------------------------------------------------------
/vendor/mode/python/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 4},
6 | {name: "python",
7 | version: 3,
8 | singleLineStringErrors: false});
9 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
10 |
11 | // Error, because "foobarhello" is neither a known type or property, but
12 | // property was expected (after "and"), and it should be in parentheses.
13 | MT("decoratorStartOfLine",
14 | "[meta @dec]",
15 | "[keyword def] [def function]():",
16 | " [keyword pass]");
17 |
18 | MT("decoratorIndented",
19 | "[keyword class] [def Foo]:",
20 | " [meta @dec]",
21 | " [keyword def] [def function]():",
22 | " [keyword pass]");
23 |
24 | MT("matmulWithSpace:", "[variable a] [operator @] [variable b]");
25 | MT("matmulWithoutSpace:", "[variable a][operator @][variable b]");
26 | MT("matmulSpaceBefore:", "[variable a] [operator @][variable b]");
27 |
28 | MT("fValidStringPrefix", "[string f'this is a {formatted} string']");
29 | MT("uValidStringPrefix", "[string u'this is an unicode string']");
30 | })();
31 |
--------------------------------------------------------------------------------
/vendor/mode/diff/diff.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineMode("diff", function() {
15 |
16 | var TOKEN_NAMES = {
17 | '+': 'positive',
18 | '-': 'negative',
19 | '@': 'meta'
20 | };
21 |
22 | return {
23 | token: function(stream) {
24 | var tw_pos = stream.string.search(/[\t ]+?$/);
25 |
26 | if (!stream.sol() || tw_pos === 0) {
27 | stream.skipToEnd();
28 | return ("error " + (
29 | TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
30 | }
31 |
32 | var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
33 |
34 | if (tw_pos === -1) {
35 | stream.skipToEnd();
36 | } else {
37 | stream.pos = tw_pos;
38 | }
39 |
40 | return token_name;
41 | }
42 | };
43 | });
44 |
45 | CodeMirror.defineMIME("text/x-diff", "diff");
46 |
47 | });
48 |
--------------------------------------------------------------------------------
/vendor/mode/mbox/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
CodeMirror: mbox mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | mbox mode
27 |
38 |
41 |
42 | MIME types defined: application/mbox.
43 |
44 |
45 |
--------------------------------------------------------------------------------
/vendor/mode/asciiarmor/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ASCII Armor (PGP) mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ASCII Armor (PGP) mode
27 |
28 | -----BEGIN PGP MESSAGE-----
29 | Version: OpenPrivacy 0.99
30 |
31 | yDgBO22WxBHv7O8X7O/jygAEzol56iUKiXmV+XmpCtmpqQUKiQrFqclFqUDBovzS
32 | vBSFjNSiVHsuAA==
33 | =njUN
34 | -----END PGP MESSAGE-----
35 |
36 |
37 |
42 |
43 | MIME types
44 | defined: application/pgp, application/pgp-keys, application/pgp-signature
45 |
46 |
47 |
--------------------------------------------------------------------------------
/vendor/mode/cypher/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "cypher");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("unbalancedDoubledQuotedString",
9 | "[string \"a'b\"][variable c]");
10 |
11 | MT("unbalancedSingleQuotedString",
12 | "[string 'a\"b'][variable c]");
13 |
14 | MT("doubleQuotedString",
15 | "[string \"a\"][variable b]");
16 |
17 | MT("singleQuotedString",
18 | "[string 'a'][variable b]");
19 |
20 | MT("single attribute (with content)",
21 | "[node {][atom a:][string 'a'][node }]");
22 |
23 | MT("multiple attribute, singleQuotedString (with content)",
24 | "[node {][atom a:][string 'a'][node ,][atom b:][string 'b'][node }]");
25 |
26 | MT("multiple attribute, doubleQuotedString (with content)",
27 | "[node {][atom a:][string \"a\"][node ,][atom b:][string \"b\"][node }]");
28 |
29 | MT("single attribute (without content)",
30 | "[node {][atom a:][string 'a'][node }]");
31 |
32 | MT("multiple attribute, singleQuotedString (without content)",
33 | "[node {][atom a:][string ''][node ,][atom b:][string ''][node }]");
34 |
35 | MT("multiple attribute, doubleQuotedString (without content)",
36 | "[node {][atom a:][string \"\"][node ,][atom b:][string \"\"][node }]");
37 | })();
38 |
--------------------------------------------------------------------------------
/vendor/mode/htmlembedded/htmlembedded.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
7 | require("../../addon/mode/multiplex"));
8 | else if (typeof define == "function" && define.amd) // AMD
9 | define(["../../lib/codemirror", "../htmlmixed/htmlmixed",
10 | "../../addon/mode/multiplex"], mod);
11 | else // Plain browser env
12 | mod(CodeMirror);
13 | })(function(CodeMirror) {
14 | "use strict";
15 |
16 | CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
17 | return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), {
18 | open: parserConfig.open || parserConfig.scriptStartRegex || "<%",
19 | close: parserConfig.close || parserConfig.scriptEndRegex || "%>",
20 | mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec)
21 | });
22 | }, "htmlmixed");
23 |
24 | CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"});
25 | CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"});
26 | CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"});
27 | CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"});
28 | });
29 |
--------------------------------------------------------------------------------
/vendor/theme/bespin.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Bespin
4 | Author: Mozilla / Jan T. Sott
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-bespin.CodeMirror {background: #28211c; color: #9d9b97;}
12 | .cm-s-bespin div.CodeMirror-selected {background: #36312e !important;}
13 | .cm-s-bespin .CodeMirror-gutters {background: #28211c; border-right: 0px;}
14 | .cm-s-bespin .CodeMirror-linenumber {color: #666666;}
15 | .cm-s-bespin .CodeMirror-cursor {border-left: 1px solid #797977 !important;}
16 |
17 | .cm-s-bespin span.cm-comment {color: #937121;}
18 | .cm-s-bespin span.cm-atom {color: #9b859d;}
19 | .cm-s-bespin span.cm-number {color: #9b859d;}
20 |
21 | .cm-s-bespin span.cm-property, .cm-s-bespin span.cm-attribute {color: #54be0d;}
22 | .cm-s-bespin span.cm-keyword {color: #cf6a4c;}
23 | .cm-s-bespin span.cm-string {color: #f9ee98;}
24 |
25 | .cm-s-bespin span.cm-variable {color: #54be0d;}
26 | .cm-s-bespin span.cm-variable-2 {color: #5ea6ea;}
27 | .cm-s-bespin span.cm-def {color: #cf7d34;}
28 | .cm-s-bespin span.cm-error {background: #cf6a4c; color: #797977;}
29 | .cm-s-bespin span.cm-bracket {color: #9d9b97;}
30 | .cm-s-bespin span.cm-tag {color: #cf6a4c;}
31 | .cm-s-bespin span.cm-link {color: #9b859d;}
32 |
33 | .cm-s-bespin .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-bespin .CodeMirror-activeline-background { background: #404040; }
35 |
--------------------------------------------------------------------------------
/vendor/mode/ntriples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: NTriples mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
28 |
29 |
30 | NTriples mode
31 |
32 |
33 | .
34 | "literal 1" .
35 | _:bnode3 .
36 | _:bnode4 "literal 2"@lang .
37 | _:bnode5 "literal 3"^^ .
38 |
39 |
40 |
41 |
44 | MIME types defined: text/n-triples.
45 |
46 |
--------------------------------------------------------------------------------
/vendor/mode/twig/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Twig mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Twig mode
27 |
28 | {% extends "layout.twig" %}
29 | {% block title %}CodeMirror: Twig mode{% endblock %}
30 | {# this is a comment #}
31 | {% block content %}
32 | {% for foo in bar if foo.baz is divisible by(3) %}
33 | Hello {{ foo.world }}
34 | {% else %}
35 | {% set msg = "Result not found" %}
36 | {% include "empty.twig" with { message: msg } %}
37 | {% endfor %}
38 | {% endblock %}
39 |
40 |
45 |
46 |
--------------------------------------------------------------------------------
/vendor/mode/spreadsheet/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Spreadsheet mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Spreadsheet mode
28 | =IF(A1:B2, TRUE, FALSE) / 100
29 |
30 |
37 |
38 | MIME types defined: text/x-spreadsheet.
39 |
40 | The Spreadsheet Mode
41 | Created by Robert Plummer
42 |
43 |
--------------------------------------------------------------------------------
/vendor/theme/isotope.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Isotope
4 | Author: David Desandro / Jan T. Sott
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-isotope.CodeMirror {background: #000000; color: #e0e0e0;}
12 | .cm-s-isotope div.CodeMirror-selected {background: #404040 !important;}
13 | .cm-s-isotope .CodeMirror-gutters {background: #000000; border-right: 0px;}
14 | .cm-s-isotope .CodeMirror-linenumber {color: #808080;}
15 | .cm-s-isotope .CodeMirror-cursor {border-left: 1px solid #c0c0c0 !important;}
16 |
17 | .cm-s-isotope span.cm-comment {color: #3300ff;}
18 | .cm-s-isotope span.cm-atom {color: #cc00ff;}
19 | .cm-s-isotope span.cm-number {color: #cc00ff;}
20 |
21 | .cm-s-isotope span.cm-property, .cm-s-isotope span.cm-attribute {color: #33ff00;}
22 | .cm-s-isotope span.cm-keyword {color: #ff0000;}
23 | .cm-s-isotope span.cm-string {color: #ff0099;}
24 |
25 | .cm-s-isotope span.cm-variable {color: #33ff00;}
26 | .cm-s-isotope span.cm-variable-2 {color: #0066ff;}
27 | .cm-s-isotope span.cm-def {color: #ff9900;}
28 | .cm-s-isotope span.cm-error {background: #ff0000; color: #c0c0c0;}
29 | .cm-s-isotope span.cm-bracket {color: #e0e0e0;}
30 | .cm-s-isotope span.cm-tag {color: #ff0000;}
31 | .cm-s-isotope span.cm-link {color: #cc00ff;}
32 |
33 | .cm-s-isotope .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-isotope .CodeMirror-activeline-background { background: #202020; }
35 |
--------------------------------------------------------------------------------
/vendor/mode/http/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: HTTP mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | HTTP mode
27 |
28 |
29 |
30 | POST /somewhere HTTP/1.1
31 | Host: example.com
32 | If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
33 | Content-Type: application/x-www-form-urlencoded;
34 | charset=utf-8
35 | User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
36 |
37 | This is the request body!
38 |
39 |
40 |
43 |
44 | MIME types defined: message/http.
45 |
46 |
--------------------------------------------------------------------------------
/vendor/mode/haskell-literate/haskell-literate.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function (mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../haskell/haskell"))
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "../haskell/haskell"], mod)
9 | else // Plain browser env
10 | mod(CodeMirror)
11 | })(function (CodeMirror) {
12 | "use strict"
13 |
14 | CodeMirror.defineMode("haskell-literate", function (config, parserConfig) {
15 | var baseMode = CodeMirror.getMode(config, (parserConfig && parserConfig.base) || "haskell")
16 |
17 | return {
18 | startState: function () {
19 | return {
20 | inCode: false,
21 | baseState: CodeMirror.startState(baseMode)
22 | }
23 | },
24 | token: function (stream, state) {
25 | if (stream.sol()) {
26 | if (state.inCode = stream.eat(">"))
27 | return "meta"
28 | }
29 | if (state.inCode) {
30 | return baseMode.token(stream, state.baseState)
31 | } else {
32 | stream.skipToEnd()
33 | return "comment"
34 | }
35 | },
36 | innerMode: function (state) {
37 | return state.inCode ? {state: state.baseState, mode: baseMode} : null
38 | }
39 | }
40 | }, "haskell")
41 |
42 | CodeMirror.defineMIME("text/x-literate-haskell", "haskell-literate")
43 | });
44 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2016, Free Code Camp
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | * Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | * Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | * Neither the name of the copyright holder nor the names of its
17 | contributors may be used to endorse or promote products derived from
18 | this software without specific prior written permission.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/vendor/theme/hopscotch.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Hopscotch
4 | Author: Jan T. Sott
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-hopscotch.CodeMirror {background: #322931; color: #d5d3d5;}
12 | .cm-s-hopscotch div.CodeMirror-selected {background: #433b42 !important;}
13 | .cm-s-hopscotch .CodeMirror-gutters {background: #322931; border-right: 0px;}
14 | .cm-s-hopscotch .CodeMirror-linenumber {color: #797379;}
15 | .cm-s-hopscotch .CodeMirror-cursor {border-left: 1px solid #989498 !important;}
16 |
17 | .cm-s-hopscotch span.cm-comment {color: #b33508;}
18 | .cm-s-hopscotch span.cm-atom {color: #c85e7c;}
19 | .cm-s-hopscotch span.cm-number {color: #c85e7c;}
20 |
21 | .cm-s-hopscotch span.cm-property, .cm-s-hopscotch span.cm-attribute {color: #8fc13e;}
22 | .cm-s-hopscotch span.cm-keyword {color: #dd464c;}
23 | .cm-s-hopscotch span.cm-string {color: #fdcc59;}
24 |
25 | .cm-s-hopscotch span.cm-variable {color: #8fc13e;}
26 | .cm-s-hopscotch span.cm-variable-2 {color: #1290bf;}
27 | .cm-s-hopscotch span.cm-def {color: #fd8b19;}
28 | .cm-s-hopscotch span.cm-error {background: #dd464c; color: #989498;}
29 | .cm-s-hopscotch span.cm-bracket {color: #d5d3d5;}
30 | .cm-s-hopscotch span.cm-tag {color: #dd464c;}
31 | .cm-s-hopscotch span.cm-link {color: #c85e7c;}
32 |
33 | .cm-s-hopscotch .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-hopscotch .CodeMirror-activeline-background { background: #302020; }
35 |
--------------------------------------------------------------------------------
/vendor/mode/solr/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Solr mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
20 |
33 |
34 |
35 | Solr mode
36 |
37 |
38 | author:Camus
39 |
40 | title:"The Rebel" and author:Camus
41 |
42 | philosophy:Existentialism -author:Kierkegaard
43 |
44 | hardToSpell:Dostoevsky~
45 |
46 | published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")
47 |
48 |
49 |
55 |
56 | MIME types defined: text/x-solr.
57 |
58 |
--------------------------------------------------------------------------------
/vendor/mode/ecl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ECL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ECL mode
27 |
28 | /*
29 | sample useless code to demonstrate ecl syntax highlighting
30 | this is a multiline comment!
31 | */
32 |
33 | // this is a singleline comment!
34 |
35 | import ut;
36 | r :=
37 | record
38 | string22 s1 := '123';
39 | integer4 i1 := 123;
40 | end;
41 | #option('tmp', true);
42 | d := dataset('tmp::qb', r, thor);
43 | output(d);
44 |
45 |
48 |
49 | Based on CodeMirror's clike mode. For more information see HPCC Systems web site.
50 | MIME types defined: text/x-ecl.
51 |
52 |
53 |
--------------------------------------------------------------------------------
/vendor/mode/z80/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Z80 assembly mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Z80 assembly mode
27 |
28 |
29 |
30 | #include "ti83plus.inc"
31 | #define progStart $9D95
32 | .org progStart-2
33 | .db $BB,$6D
34 |
35 | bcall(_ClrLCDFull)
36 | ld hl,0
37 | ld (CurCol),hl
38 | ld hl,Message
39 | bcall(_PutS) ; Displays the string
40 | bcall(_NewLine)
41 | ret
42 | Message:
43 | .db "Hello world!",0
44 |
45 |
46 |
51 |
52 | MIME types defined: text/x-z80, text/x-ez80.
53 |
54 |
--------------------------------------------------------------------------------
/vendor/mode/oz/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Oz mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
26 |
27 |
28 | Oz mode
29 |
30 | declare
31 | fun {Ints N Max}
32 | if N == Max then nil
33 | else
34 | {Delay 1000}
35 | N|{Ints N+1 Max}
36 | end
37 | end
38 |
39 | fun {Sum S Stream}
40 | case Stream of nil then S
41 | [] H|T then S|{Sum H+S T} end
42 | end
43 |
44 | local X Y in
45 | thread X = {Ints 0 1000} end
46 | thread Y = {Sum 0 X} end
47 | {Browse Y}
48 | end
49 |
50 | MIME type defined: text/x-oz.
51 |
52 |
59 |
60 |
--------------------------------------------------------------------------------
/vendor/theme/railscasts.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Railscasts
4 | Author: Ryan Bates (http://railscasts.com)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-railscasts.CodeMirror {background: #2b2b2b; color: #f4f1ed;}
12 | .cm-s-railscasts div.CodeMirror-selected {background: #272935 !important;}
13 | .cm-s-railscasts .CodeMirror-gutters {background: #2b2b2b; border-right: 0px;}
14 | .cm-s-railscasts .CodeMirror-linenumber {color: #5a647e;}
15 | .cm-s-railscasts .CodeMirror-cursor {border-left: 1px solid #d4cfc9 !important;}
16 |
17 | .cm-s-railscasts span.cm-comment {color: #bc9458;}
18 | .cm-s-railscasts span.cm-atom {color: #b6b3eb;}
19 | .cm-s-railscasts span.cm-number {color: #b6b3eb;}
20 |
21 | .cm-s-railscasts span.cm-property, .cm-s-railscasts span.cm-attribute {color: #a5c261;}
22 | .cm-s-railscasts span.cm-keyword {color: #da4939;}
23 | .cm-s-railscasts span.cm-string {color: #ffc66d;}
24 |
25 | .cm-s-railscasts span.cm-variable {color: #a5c261;}
26 | .cm-s-railscasts span.cm-variable-2 {color: #6d9cbe;}
27 | .cm-s-railscasts span.cm-def {color: #cc7833;}
28 | .cm-s-railscasts span.cm-error {background: #da4939; color: #d4cfc9;}
29 | .cm-s-railscasts span.cm-bracket {color: #f4f1ed;}
30 | .cm-s-railscasts span.cm-tag {color: #da4939;}
31 | .cm-s-railscasts span.cm-link {color: #b6b3eb;}
32 |
33 | .cm-s-railscasts .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-railscasts .CodeMirror-activeline-background { background: #303040; }
35 |
--------------------------------------------------------------------------------
/vendor/mode/turtle/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Turtle mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Turtle mode
27 |
28 | @prefix foaf: .
29 | @prefix geo: .
30 | @prefix rdf: .
31 |
32 |
33 | a foaf:Person;
34 | foaf:interest ;
35 | foaf:based_near [
36 | geo:lat "34.0736111" ;
37 | geo:lon "-118.3994444"
38 | ]
39 |
40 |
41 |
47 |
48 | MIME types defined: text/turtle.
49 |
50 |
51 |
--------------------------------------------------------------------------------
/vendor/mode/pig/index.html:
--------------------------------------------------------------------------------
1 |
2 | CodeMirror: Pig Latin mode
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
23 |
24 |
25 | Pig Latin mode
26 |
27 | -- Apache Pig (Pig Latin Language) Demo
28 | /*
29 | This is a multiline comment.
30 | */
31 | a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
32 | b = GROUP a BY (x,y,3+4);
33 | c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
34 | STORE c INTO "\path\to\output";
35 |
36 | --
37 |
38 |
39 |
46 |
47 |
48 | Simple mode that handles Pig Latin language.
49 |
50 |
51 | MIME type defined: text/x-pig
52 | (PIG code)
53 |
54 |
--------------------------------------------------------------------------------
/vendor/mode/pascal/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Pascal mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Pascal mode
27 |
28 |
29 |
30 | (* Example Pascal code *)
31 |
32 | while a <> b do writeln('Waiting');
33 |
34 | if a > b then
35 | writeln('Condition met')
36 | else
37 | writeln('Condition not met');
38 |
39 | for i := 1 to 10 do
40 | writeln('Iteration: ', i:1);
41 |
42 | repeat
43 | a := a + 1
44 | until a = 10;
45 |
46 | case i of
47 | 0: write('zero');
48 | 1: write('one');
49 | 2: write('two')
50 | end;
51 |
52 |
53 |
59 |
60 | MIME types defined: text/x-pascal.
61 |
62 |
--------------------------------------------------------------------------------
/vendor/mode/vbscript/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: VBScript mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | VBScript mode
27 |
28 |
29 |
30 | ' Pete Guhl
31 | ' 03-04-2012
32 | '
33 | ' Basic VBScript support for codemirror2
34 |
35 | Const ForReading = 1, ForWriting = 2, ForAppending = 8
36 |
37 | Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse)
38 |
39 | If Not IsNull(strResponse) AND Len(strResponse) = 0 Then
40 | boolTransmitOkYN = False
41 | Else
42 | ' WScript.Echo "Oh Happy Day! Oh Happy DAY!"
43 | boolTransmitOkYN = True
44 | End If
45 |
46 |
47 |
53 |
54 | MIME types defined: text/vbscript.
55 |
56 |
--------------------------------------------------------------------------------
/vendor/mode/gherkin/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Gherkin mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Gherkin mode
27 |
28 | Feature: Using Google
29 | Background:
30 | Something something
31 | Something else
32 | Scenario: Has a homepage
33 | When I navigate to the google home page
34 | Then the home page should contain the menu and the search form
35 | Scenario: Searching for a term
36 | When I navigate to the google home page
37 | When I search for Tofu
38 | Then the search results page is displayed
39 | Then the search results page contains 10 individual search results
40 | Then the search results contain a link to the wikipedia tofu page
41 |
42 |
45 |
46 | MIME types defined: text/x-feature.
47 |
48 |
49 |
--------------------------------------------------------------------------------
/vendor/theme/colorforth.css:
--------------------------------------------------------------------------------
1 | .cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; }
2 | .cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
3 | .cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; }
4 | .cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; }
5 | .cm-s-colorforth .CodeMirror-linenumber { color: #bababa; }
6 | .cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white; }
7 |
8 | .cm-s-colorforth span.cm-comment { color: #ededed; }
9 | .cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; }
10 | .cm-s-colorforth span.cm-keyword { color: #ffd900; }
11 | .cm-s-colorforth span.cm-builtin { color: #00d95a; }
12 | .cm-s-colorforth span.cm-variable { color: #73ff00; }
13 | .cm-s-colorforth span.cm-string { color: #007bff; }
14 | .cm-s-colorforth span.cm-number { color: #00c4ff; }
15 | .cm-s-colorforth span.cm-atom { color: #606060; }
16 |
17 | .cm-s-colorforth span.cm-variable-2 { color: #EEE; }
18 | .cm-s-colorforth span.cm-variable-3 { color: #DDD; }
19 | .cm-s-colorforth span.cm-property {}
20 | .cm-s-colorforth span.cm-operator {}
21 |
22 | .cm-s-colorforth span.cm-meta { color: yellow; }
23 | .cm-s-colorforth span.cm-qualifier { color: #FFF700; }
24 | .cm-s-colorforth span.cm-bracket { color: #cc7; }
25 | .cm-s-colorforth span.cm-tag { color: #FFBD40; }
26 | .cm-s-colorforth span.cm-attribute { color: #FFF700; }
27 | .cm-s-colorforth span.cm-error { color: #f00; }
28 |
29 | .cm-s-colorforth div.CodeMirror-selected { background: #333d53; }
30 |
31 | .cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); }
32 |
33 | .cm-s-colorforth .CodeMirror-activeline-background { background: #253540; }
34 |
--------------------------------------------------------------------------------
/vendor/theme/cobalt.css:
--------------------------------------------------------------------------------
1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; }
2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539; }
3 | .cm-s-cobalt .CodeMirror-line::selection, .cm-s-cobalt .CodeMirror-line > span::selection, .cm-s-cobalt .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); }
4 | .cm-s-cobalt .CodeMirror-line::-moz-selection, .cm-s-cobalt .CodeMirror-line > span::-moz-selection, .cm-s-cobalt .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); }
5 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
6 | .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; }
7 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
8 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
9 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white; }
10 |
11 | .cm-s-cobalt span.cm-comment { color: #08f; }
12 | .cm-s-cobalt span.cm-atom { color: #845dc4; }
13 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
14 | .cm-s-cobalt span.cm-keyword { color: #ffee80; }
15 | .cm-s-cobalt span.cm-string { color: #3ad900; }
16 | .cm-s-cobalt span.cm-meta { color: #ff9d00; }
17 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
18 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
19 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
20 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
21 | .cm-s-cobalt span.cm-link { color: #845dc4; }
22 | .cm-s-cobalt span.cm-error { color: #9d1e15; }
23 |
24 | .cm-s-cobalt .CodeMirror-activeline-background { background: #002D57; }
25 | .cm-s-cobalt .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; }
26 |
--------------------------------------------------------------------------------
/vendor/mode/properties/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Properties files mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Properties files mode
27 |
28 | # This is a properties file
29 | a.key = A value
30 | another.key = http://example.com
31 | ! Exclamation mark as comment
32 | but.not=Within ! A value # indeed
33 | # Spaces at the beginning of a line
34 | spaces.before.key=value
35 | backslash=Used for multi\
36 | line entries,\
37 | that's convenient.
38 | # Unicode sequences
39 | unicode.key=This is \u0020 Unicode
40 | no.multiline=here
41 | # Colons
42 | colons : can be used too
43 | # Spaces
44 | spaces\ in\ keys=Not very common...
45 |
46 |
49 |
50 | MIME types defined: text/x-properties,
51 | text/x-ini.
52 |
53 |
54 |
--------------------------------------------------------------------------------
/vendor/theme/night.css:
--------------------------------------------------------------------------------
1 | /* Loosely based on the Midnight Textmate theme */
2 |
3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }
4 | .cm-s-night div.CodeMirror-selected { background: #447; }
5 | .cm-s-night .CodeMirror-line::selection, .cm-s-night .CodeMirror-line > span::selection, .cm-s-night .CodeMirror-line > span > span::selection { background: rgba(68, 68, 119, .99); }
6 | .cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span::-moz-selection, .cm-s-night .CodeMirror-line > span > span::-moz-selection { background: rgba(68, 68, 119, .99); }
7 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
8 | .cm-s-night .CodeMirror-guttermarker { color: white; }
9 | .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; }
10 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }
11 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white; }
12 |
13 | .cm-s-night span.cm-comment { color: #8900d1; }
14 | .cm-s-night span.cm-atom { color: #845dc4; }
15 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
16 | .cm-s-night span.cm-keyword { color: #599eff; }
17 | .cm-s-night span.cm-string { color: #37f14a; }
18 | .cm-s-night span.cm-meta { color: #7678e2; }
19 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
20 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
21 | .cm-s-night span.cm-bracket { color: #8da6ce; }
22 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
23 | .cm-s-night span.cm-link { color: #845dc4; }
24 | .cm-s-night span.cm-error { color: #9d1e15; }
25 |
26 | .cm-s-night .CodeMirror-activeline-background { background: #1C005A; }
27 | .cm-s-night .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }
28 |
--------------------------------------------------------------------------------
/vendor/mode/rust/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Rust mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Rust mode
28 |
29 |
30 |
31 | // Demo code.
32 |
33 | type foo = int;
34 | enum bar {
35 | some(int, foo),
36 | none
37 | }
38 |
39 | fn check_crate(x: int) {
40 | let v = 10;
41 | match foo {
42 | 1 ... 3 {
43 | print_foo();
44 | if x {
45 | blah().to_string();
46 | }
47 | }
48 | (x, y) { "bye" }
49 | _ { "hi" }
50 | }
51 | }
52 |
53 |
54 |
62 |
63 | MIME types defined: text/x-rustsrc.
64 |
65 |
--------------------------------------------------------------------------------
/vendor/mode/javascript/typescript.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: TypeScript mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | TypeScript mode
27 |
28 |
29 |
30 | class Greeter {
31 | greeting: string;
32 | constructor (message: string) {
33 | this.greeting = message;
34 | }
35 | greet() {
36 | return "Hello, " + this.greeting;
37 | }
38 | }
39 |
40 | var greeter = new Greeter("world");
41 |
42 | var button = document.createElement('button')
43 | button.innerText = "Say Hello"
44 | button.onclick = function() {
45 | alert(greeter.greet())
46 | }
47 |
48 | document.body.appendChild(button)
49 |
50 |
51 |
52 |
59 |
60 | This is a specialization of the JavaScript mode .
61 |
62 |
--------------------------------------------------------------------------------
/.eslintrc.yml:
--------------------------------------------------------------------------------
1 | ---
2 | extends:
3 | - plugin:react/recommended
4 |
5 | env:
6 | browser: true
7 | node: true
8 | es6: true
9 |
10 | parserOptions:
11 | ecmaVersion: 6
12 | sourceType: "module"
13 | ecmaFeatures:
14 | jsx: true
15 |
16 | globals:
17 | __DEV__: true
18 | __SERVER__: true
19 |
20 | plugins:
21 | - react
22 |
23 | rules:
24 | react/jsx-uses-vars: 1
25 | react/prop-types: [1, { ignore: [children] }]
26 |
27 | semi: 0
28 | key-spacing: 1
29 | curly: 0
30 | consistent-return: 0
31 | space-infix-ops: 1
32 | camelcase: 0
33 | no-spaced-func: 1
34 | no-alert: 1
35 | eol-last: 1
36 | comma-spacing: 1
37 | eqeqeq: 1
38 |
39 | # possible errors
40 | comma-dangle: 0
41 | no-cond-assign: 2
42 | no-console: 0
43 | no-constant-condition: 2
44 | no-control-regex: 2
45 | no-debugger: 2
46 | no-dupe-args: 2
47 | no-dupe-keys: 2
48 | no-duplicate-case: 2
49 | no-empty-character-class: 2
50 | no-empty: 2
51 | no-ex-assign: 2
52 | no-extra-boolean-cast: 2
53 | no-extra-parens: 0
54 | no-extra-semi: 2
55 | no-func-assign: 2
56 | no-inner-declarations: 2
57 | no-invalid-regexp: 2
58 | no-irregular-whitespace: 2
59 | no-negated-in-lhs: 2
60 | no-obj-calls: 2
61 | no-regex-spaces: 2
62 | no-sparse-arrays: 2
63 | no-unexpected-multiline: 2
64 | no-unreachable: 2
65 | use-isnan: 2
66 | valid-jsdoc: 2
67 | valid-typeof: 2
68 |
69 | no-redeclare: 2
70 |
71 | init-declarations: 2
72 | no-catch-shadow: 2
73 | no-delete-var: 2
74 | no-label-var: 2
75 | no-shadow-restricted-names: 2
76 | no-shadow: 2
77 | no-undef-init: 2
78 | no-undef: 2
79 | no-undefined: 2
80 | no-unused-vars: 2
81 | no-use-before-define: 2
82 |
--------------------------------------------------------------------------------
/vendor/theme/rubyblue.css:
--------------------------------------------------------------------------------
1 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; }
2 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F; }
3 | .cm-s-rubyblue .CodeMirror-line::selection, .cm-s-rubyblue .CodeMirror-line > span::selection, .cm-s-rubyblue .CodeMirror-line > span > span::selection { background: rgba(56, 86, 111, 0.99); }
4 | .cm-s-rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); }
5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
6 | .cm-s-rubyblue .CodeMirror-guttermarker { color: white; }
7 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; }
8 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; }
9 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white; }
10 |
11 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
12 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; }
13 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
14 | .cm-s-rubyblue span.cm-keyword { color: #F0F; }
15 | .cm-s-rubyblue span.cm-string { color: #F08047; }
16 | .cm-s-rubyblue span.cm-meta { color: #F0F; }
17 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
18 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
19 | .cm-s-rubyblue span.cm-bracket { color: #F0F; }
20 | .cm-s-rubyblue span.cm-link { color: #F4C20B; }
21 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
22 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
23 | .cm-s-rubyblue span.cm-error { color: #AF2018; }
24 |
25 | .cm-s-rubyblue .CodeMirror-activeline-background { background: #173047; }
26 |
--------------------------------------------------------------------------------
/vendor/mode/sass/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Sass mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Sass mode
28 | // Variable Definitions
29 |
30 | $page-width: 800px
31 | $sidebar-width: 200px
32 | $primary-color: #eeeeee
33 |
34 | // Global Attributes
35 |
36 | body
37 | font:
38 | family: sans-serif
39 | size: 30em
40 | weight: bold
41 |
42 | // Scoped Styles
43 |
44 | #contents
45 | width: $page-width
46 | #sidebar
47 | float: right
48 | width: $sidebar-width
49 | #main
50 | width: $page-width - $sidebar-width
51 | background: $primary-color
52 | h2
53 | color: blue
54 |
55 | #footer
56 | height: 200px
57 |
58 |
64 |
65 | MIME types defined: text/x-sass.
66 |
67 |
--------------------------------------------------------------------------------
/vendor/mode/perl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Perl mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Perl mode
27 |
28 |
29 |
30 | #!/usr/bin/perl
31 |
32 | use Something qw(func1 func2);
33 |
34 | # strings
35 | my $s1 = qq'single line';
36 | our $s2 = q(multi-
37 | line);
38 |
39 | =item Something
40 | Example.
41 | =cut
42 |
43 | my $html=<<'HTML'
44 |
45 | hi!
46 |
47 | HTML
48 |
49 | print "first,".join(',', 'second', qq~third~);
50 |
51 | if($s1 =~ m[(?{$1}=$$.' predefined variables';
53 | $s2 =~ s/\-line//ox;
54 | $s1 =~ s[
55 | line ]
56 | [
57 | block
58 | ]ox;
59 | }
60 |
61 | 1; # numbers and comments
62 |
63 | __END__
64 | something...
65 |
66 |
67 |
68 |
73 |
74 | MIME types defined: text/x-perl.
75 |
76 |
--------------------------------------------------------------------------------
/vendor/mode/elm/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Elm mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Elm mode
27 |
28 |
29 | import Color exposing (..)
30 | import Graphics.Collage exposing (..)
31 | import Graphics.Element exposing (..)
32 | import Time exposing (..)
33 |
34 | main =
35 | Signal.map clock (every second)
36 |
37 | clock t =
38 | collage 400 400
39 | [ filled lightGrey (ngon 12 110)
40 | , outlined (solid grey) (ngon 12 110)
41 | , hand orange 100 t
42 | , hand charcoal 100 (t/60)
43 | , hand charcoal 60 (t/720)
44 | ]
45 |
46 | hand clr len time =
47 | let angle = degrees (90 - 6 * inSeconds time)
48 | in
49 | segment (0,0) (fromPolar (len,angle))
50 | |> traced (solid clr)
51 |
52 |
53 |
59 |
60 | MIME types defined: text/x-elm.
61 |
62 |
--------------------------------------------------------------------------------
/vendor/mode/idl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: IDL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | IDL mode
27 |
28 |
29 | ;; Example IDL code
30 | FUNCTION mean_and_stddev,array
31 | ;; This program reads in an array of numbers
32 | ;; and returns a structure containing the
33 | ;; average and standard deviation
34 |
35 | ave = 0.0
36 | count = 0.0
37 |
38 | for i=0,N_ELEMENTS(array)-1 do begin
39 | ave = ave + array[i]
40 | count = count + 1
41 | endfor
42 |
43 | ave = ave/count
44 |
45 | std = stddev(array)
46 |
47 | return, {average:ave,std:std}
48 |
49 | END
50 |
51 |
52 |
62 |
63 | MIME types defined: text/x-idl.
64 |
65 |
--------------------------------------------------------------------------------
/vendor/theme/tomorrow-night-bright.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Tomorrow Night - Bright
4 | Author: Chris Kempson
5 |
6 | Port done by Gerard Braad
7 |
8 | */
9 |
10 | .cm-s-tomorrow-night-bright.CodeMirror { background: #000000; color: #eaeaea; }
11 | .cm-s-tomorrow-night-bright div.CodeMirror-selected { background: #424242; }
12 | .cm-s-tomorrow-night-bright .CodeMirror-gutters { background: #000000; border-right: 0px; }
13 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker { color: #e78c45; }
14 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle { color: #777; }
15 | .cm-s-tomorrow-night-bright .CodeMirror-linenumber { color: #424242; }
16 | .cm-s-tomorrow-night-bright .CodeMirror-cursor { border-left: 1px solid #6A6A6A; }
17 |
18 | .cm-s-tomorrow-night-bright span.cm-comment { color: #d27b53; }
19 | .cm-s-tomorrow-night-bright span.cm-atom { color: #a16a94; }
20 | .cm-s-tomorrow-night-bright span.cm-number { color: #a16a94; }
21 |
22 | .cm-s-tomorrow-night-bright span.cm-property, .cm-s-tomorrow-night-bright span.cm-attribute { color: #99cc99; }
23 | .cm-s-tomorrow-night-bright span.cm-keyword { color: #d54e53; }
24 | .cm-s-tomorrow-night-bright span.cm-string { color: #e7c547; }
25 |
26 | .cm-s-tomorrow-night-bright span.cm-variable { color: #b9ca4a; }
27 | .cm-s-tomorrow-night-bright span.cm-variable-2 { color: #7aa6da; }
28 | .cm-s-tomorrow-night-bright span.cm-def { color: #e78c45; }
29 | .cm-s-tomorrow-night-bright span.cm-bracket { color: #eaeaea; }
30 | .cm-s-tomorrow-night-bright span.cm-tag { color: #d54e53; }
31 | .cm-s-tomorrow-night-bright span.cm-link { color: #a16a94; }
32 | .cm-s-tomorrow-night-bright span.cm-error { background: #d54e53; color: #6A6A6A; }
33 |
34 | .cm-s-tomorrow-night-bright .CodeMirror-activeline-background { background: #2a2a2a; }
35 | .cm-s-tomorrow-night-bright .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
36 |
--------------------------------------------------------------------------------
/vendor/mode/dart/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Dart mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Dart mode
27 |
28 |
29 | import 'dart:math' show Random;
30 |
31 | void main() {
32 | print(new Die(n: 12).roll());
33 | }
34 |
35 | // Define a class.
36 | class Die {
37 | // Define a class variable.
38 | static Random shaker = new Random();
39 |
40 | // Define instance variables.
41 | int sides, value;
42 |
43 | // Define a method using shorthand syntax.
44 | String toString() => '$value';
45 |
46 | // Define a constructor.
47 | Die({int n: 6}) {
48 | if (4 <= n && n <= 20) {
49 | sides = n;
50 | } else {
51 | // Support for errors and exceptions.
52 | throw new ArgumentError(/* */);
53 | }
54 | }
55 |
56 | // Define an instance method.
57 | int roll() {
58 | return value = shaker.nextInt(sides) + 1;
59 | }
60 | }
61 |
62 |
63 |
64 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/vendor/mode/protobuf/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ProtoBuf mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ProtoBuf mode
27 |
28 | package addressbook;
29 |
30 | message Address {
31 | required string street = 1;
32 | required string postCode = 2;
33 | }
34 |
35 | message PhoneNumber {
36 | required string number = 1;
37 | }
38 |
39 | message Person {
40 | optional int32 id = 1;
41 | required string name = 2;
42 | required string surname = 3;
43 | optional Address address = 4;
44 | repeated PhoneNumber phoneNumbers = 5;
45 | optional uint32 age = 6;
46 | repeated uint32 favouriteNumbers = 7;
47 | optional string license = 8;
48 | enum Gender {
49 | MALE = 0;
50 | FEMALE = 1;
51 | }
52 | optional Gender gender = 9;
53 | optional fixed64 lastUpdate = 10;
54 | required bool deleted = 11 [default = false];
55 | }
56 |
57 |
58 |
61 |
62 | MIME types defined: text/x-protobuf.
63 |
64 |
65 |
--------------------------------------------------------------------------------
/vendor/mode/xml/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml";
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); }
7 |
8 | MT("matching",
9 | "[tag&bracket <][tag top][tag&bracket >]",
10 | " text",
11 | " [tag&bracket <][tag inner][tag&bracket />]",
12 | "[tag&bracket ][tag top][tag&bracket >]");
13 |
14 | MT("nonmatching",
15 | "[tag&bracket <][tag top][tag&bracket >]",
16 | " [tag&bracket <][tag inner][tag&bracket />]",
17 | " [tag&bracket ][tag&error tip][tag&bracket&error >]");
18 |
19 | MT("doctype",
20 | "[meta ]",
21 | "[tag&bracket <][tag top][tag&bracket />]");
22 |
23 | MT("cdata",
24 | "[tag&bracket <][tag top][tag&bracket >]",
25 | " [atom ]",
27 | "[tag&bracket ][tag top][tag&bracket >]");
28 |
29 | // HTML tests
30 | mode = CodeMirror.getMode({indentUnit: 2}, "text/html");
31 |
32 | MT("selfclose",
33 | "[tag&bracket <][tag html][tag&bracket >]",
34 | " [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]",
35 | "[tag&bracket ][tag html][tag&bracket >]");
36 |
37 | MT("list",
38 | "[tag&bracket <][tag ol][tag&bracket >]",
39 | " [tag&bracket <][tag li][tag&bracket >]one",
40 | " [tag&bracket <][tag li][tag&bracket >]two",
41 | "[tag&bracket ][tag ol][tag&bracket >]");
42 |
43 | MT("valueless",
44 | "[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]");
45 |
46 | MT("pThenArticle",
47 | "[tag&bracket <][tag p][tag&bracket >]",
48 | " foo",
49 | "[tag&bracket <][tag article][tag&bracket >]bar");
50 |
51 | })();
52 |
--------------------------------------------------------------------------------
/vendor/mode/jinja2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Jinja2 mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Jinja2 mode
27 |
28 | {# this is a comment #}
29 | {%- for item in li -%}
30 | <li>{{ item.label }}</li>
31 | {% endfor -%}
32 | {{ item.sand == true and item.keyword == false ? 1 : 0 }}
33 | {{ app.get(55, 1.2, true) }}
34 | {% if app.get('_route') == ('_home') %}home{% endif %}
35 | {% if app.session.flashbag.has('message') %}
36 | {% for message in app.session.flashbag.get('message') %}
37 | {{ message.content }}
38 | {% endfor %}
39 | {% endif %}
40 | {{ path('_home', {'section': app.request.get('section')}) }}
41 | {{ path('_home', {
42 | 'section': app.request.get('section'),
43 | 'boolean': true,
44 | 'number': 55.33
45 | })
46 | }}
47 | {% include ('test.incl.html.twig') %}
48 |
49 |
54 |
55 |
--------------------------------------------------------------------------------
/vendor/mode/shell/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({}, "shell");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("var",
9 | "text [def $var] text");
10 | MT("varBraces",
11 | "text[def ${var}]text");
12 | MT("varVar",
13 | "text [def $a$b] text");
14 | MT("varBracesVarBraces",
15 | "text[def ${a}${b}]text");
16 |
17 | MT("singleQuotedVar",
18 | "[string 'text $var text']");
19 | MT("singleQuotedVarBraces",
20 | "[string 'text ${var} text']");
21 |
22 | MT("doubleQuotedVar",
23 | '[string "text ][def $var][string text"]');
24 | MT("doubleQuotedVarBraces",
25 | '[string "text][def ${var}][string text"]');
26 | MT("doubleQuotedVarPunct",
27 | '[string "text ][def $@][string text"]');
28 | MT("doubleQuotedVarVar",
29 | '[string "][def $a$b][string "]');
30 | MT("doubleQuotedVarBracesVarBraces",
31 | '[string "][def ${a}${b}][string "]');
32 |
33 | MT("notAString",
34 | "text\\'text");
35 | MT("escapes",
36 | "outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)");
37 |
38 | MT("subshell",
39 | "[builtin echo] [quote $(whoami)] s log, stardate [quote `date`].");
40 | MT("doubleQuotedSubshell",
41 | "[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]");
42 |
43 | MT("hashbang",
44 | "[meta #!/bin/bash]");
45 | MT("comment",
46 | "text [comment # Blurb]");
47 |
48 | MT("numbers",
49 | "[number 0] [number 1] [number 2]");
50 | MT("keywords",
51 | "[keyword while] [atom true]; [keyword do]",
52 | " [builtin sleep] [number 3]",
53 | "[keyword done]");
54 | MT("options",
55 | "[builtin ls] [attribute -l] [attribute --human-readable]");
56 | MT("operator",
57 | "[def var][operator =]value");
58 | })();
59 |
--------------------------------------------------------------------------------
/vendor/theme/the-matrix.css:
--------------------------------------------------------------------------------
1 | .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; }
2 | .cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D; }
3 | .cm-s-the-matrix .CodeMirror-line::selection, .cm-s-the-matrix .CodeMirror-line > span::selection, .cm-s-the-matrix .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); }
4 | .cm-s-the-matrix .CodeMirror-line::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); }
5 | .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; }
6 | .cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; }
7 | .cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; }
8 | .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; }
9 | .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00; }
10 |
11 | .cm-s-the-matrix span.cm-keyword { color: #008803; font-weight: bold; }
12 | .cm-s-the-matrix span.cm-atom { color: #3FF; }
13 | .cm-s-the-matrix span.cm-number { color: #FFB94F; }
14 | .cm-s-the-matrix span.cm-def { color: #99C; }
15 | .cm-s-the-matrix span.cm-variable { color: #F6C; }
16 | .cm-s-the-matrix span.cm-variable-2 { color: #C6F; }
17 | .cm-s-the-matrix span.cm-variable-3 { color: #96F; }
18 | .cm-s-the-matrix span.cm-property { color: #62FFA0; }
19 | .cm-s-the-matrix span.cm-operator { color: #999; }
20 | .cm-s-the-matrix span.cm-comment { color: #CCCCCC; }
21 | .cm-s-the-matrix span.cm-string { color: #39C; }
22 | .cm-s-the-matrix span.cm-meta { color: #C9F; }
23 | .cm-s-the-matrix span.cm-qualifier { color: #FFF700; }
24 | .cm-s-the-matrix span.cm-builtin { color: #30a; }
25 | .cm-s-the-matrix span.cm-bracket { color: #cc7; }
26 | .cm-s-the-matrix span.cm-tag { color: #FFBD40; }
27 | .cm-s-the-matrix span.cm-attribute { color: #FFF700; }
28 | .cm-s-the-matrix span.cm-error { color: #FF0000; }
29 |
30 | .cm-s-the-matrix .CodeMirror-activeline-background { background: #040; }
31 |
--------------------------------------------------------------------------------
/vendor/mode/sparql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: SPARQL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | SPARQL mode
28 |
29 | PREFIX a: <http://www.w3.org/2000/10/annotation-ns#>
30 | PREFIX dc: <http://purl.org/dc/elements/1.1/>
31 | PREFIX foaf: <http://xmlns.com/foaf/0.1/>
32 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
33 |
34 | # Comment!
35 |
36 | SELECT ?given ?family
37 | WHERE {
38 | {
39 | ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> .
40 | ?annot dc:creator ?c .
41 | OPTIONAL {?c foaf:givenName ?given ;
42 | foaf:familyName ?family }
43 | } UNION {
44 | ?c !foaf:knows/foaf:knows? ?thing.
45 | ?thing rdfs
46 | } MINUS {
47 | ?thing rdfs:label "剛柔流"@jp
48 | }
49 | FILTER isBlank(?c)
50 | }
51 |
52 |
58 |
59 | MIME types defined: application/sparql-query.
60 |
61 |
62 |
--------------------------------------------------------------------------------
/vendor/theme/yeti.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: yeti
4 | Author: Michael Kaminsky (http://github.com/mkaminsky11)
5 |
6 | Original yeti color scheme by Jesse Weed (https://github.com/jesseweed/yeti-syntax)
7 |
8 | */
9 |
10 |
11 | .cm-s-yeti.CodeMirror {
12 | background-color: #ECEAE8 !important;
13 | color: #d1c9c0 !important;
14 | border: none;
15 | }
16 |
17 | .cm-s-yeti .CodeMirror-gutters {
18 | color: #adaba6;
19 | background-color: #E5E1DB;
20 | border: none;
21 | }
22 | .cm-s-yeti .CodeMirror-cursor { border-left: solid thin #d1c9c0; }
23 | .cm-s-yeti .CodeMirror-linenumber { color: #adaba6; }
24 | .cm-s-yeti.CodeMirror-focused div.CodeMirror-selected { background: #DCD8D2; }
25 | .cm-s-yeti .CodeMirror-line::selection, .cm-s-yeti .CodeMirror-line > span::selection, .cm-s-yeti .CodeMirror-line > span > span::selection { background: #DCD8D2; }
26 | .cm-s-yeti .CodeMirror-line::-moz-selection, .cm-s-yeti .CodeMirror-line > span::-moz-selection, .cm-s-yeti .CodeMirror-line > span > span::-moz-selection { background: #DCD8D2; }
27 | .cm-s-yeti span.cm-comment { color: #d4c8be; }
28 | .cm-s-yeti span.cm-string, .cm-s-yeti span.cm-string-2 { color: #96c0d8; }
29 | .cm-s-yeti span.cm-number { color: #a074c4; }
30 | .cm-s-yeti span.cm-variable { color: #55b5db; }
31 | .cm-s-yeti span.cm-variable-2 { color: #a074c4; }
32 | .cm-s-yeti span.cm-def { color: #55b5db; }
33 | .cm-s-yeti span.cm-operator { color: #9fb96e; }
34 | .cm-s-yeti span.cm-keyword { color: #9fb96e; }
35 | .cm-s-yeti span.cm-atom { color: #a074c4; }
36 | .cm-s-yeti span.cm-meta { color: #96c0d8; }
37 | .cm-s-yeti span.cm-tag { color: #96c0d8; }
38 | .cm-s-yeti span.cm-attribute { color: #9fb96e; }
39 | .cm-s-yeti span.cm-qualifier { color: #96c0d8; }
40 | .cm-s-yeti span.cm-property { color: #a074c4; }
41 | .cm-s-yeti span.cm-builtin { color: #a074c4; }
42 | .cm-s-yeti span.cm-variable-3 { color: #96c0d8; }
43 | .cm-s-yeti .CodeMirror-activeline-background { background: #E7E4E0; }
44 | .cm-s-yeti .CodeMirror-matchingbracket { text-decoration: underline; }
45 |
--------------------------------------------------------------------------------
/vendor/mode/shell/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Shell mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
27 |
28 |
29 | Shell mode
30 |
31 |
32 |
33 | #!/bin/bash
34 |
35 | # clone the repository
36 | git clone http://github.com/garden/tree
37 |
38 | # generate HTTPS credentials
39 | cd tree
40 | openssl genrsa -aes256 -out https.key 1024
41 | openssl req -new -nodes -key https.key -out https.csr
42 | openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
43 | cp https.key{,.orig}
44 | openssl rsa -in https.key.orig -out https.key
45 |
46 | # start the server in HTTPS mode
47 | cd web
48 | sudo node ../server.js 443 'yes' >> ../node.log &
49 |
50 | # here is how to stop the server
51 | for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
52 | sudo kill -9 $pid 2> /dev/null
53 | done
54 |
55 | exit 0
56 |
57 |
64 |
65 | MIME types defined: text/x-sh.
66 |
67 |
--------------------------------------------------------------------------------
/vendor/theme/blackboard.css:
--------------------------------------------------------------------------------
1 | /* Port of TextMate's Blackboard theme */
2 |
3 | .cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
4 | .cm-s-blackboard div.CodeMirror-selected { background: #253B76; }
5 | .cm-s-blackboard .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); }
6 | .cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMirror-line > span > span::-moz-selection { background: rgba(37, 59, 118, .99); }
7 | .cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
8 | .cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; }
9 | .cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; }
10 | .cm-s-blackboard .CodeMirror-linenumber { color: #888; }
11 | .cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7; }
12 |
13 | .cm-s-blackboard .cm-keyword { color: #FBDE2D; }
14 | .cm-s-blackboard .cm-atom { color: #D8FA3C; }
15 | .cm-s-blackboard .cm-number { color: #D8FA3C; }
16 | .cm-s-blackboard .cm-def { color: #8DA6CE; }
17 | .cm-s-blackboard .cm-variable { color: #FF6400; }
18 | .cm-s-blackboard .cm-operator { color: #FBDE2D; }
19 | .cm-s-blackboard .cm-comment { color: #AEAEAE; }
20 | .cm-s-blackboard .cm-string { color: #61CE3C; }
21 | .cm-s-blackboard .cm-string-2 { color: #61CE3C; }
22 | .cm-s-blackboard .cm-meta { color: #D8FA3C; }
23 | .cm-s-blackboard .cm-builtin { color: #8DA6CE; }
24 | .cm-s-blackboard .cm-tag { color: #8DA6CE; }
25 | .cm-s-blackboard .cm-attribute { color: #8DA6CE; }
26 | .cm-s-blackboard .cm-header { color: #FF6400; }
27 | .cm-s-blackboard .cm-hr { color: #AEAEAE; }
28 | .cm-s-blackboard .cm-link { color: #8DA6CE; }
29 | .cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
30 |
31 | .cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; }
32 | .cm-s-blackboard .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; }
33 |
--------------------------------------------------------------------------------
/vendor/theme/monokai.css:
--------------------------------------------------------------------------------
1 | /* Based on Sublime Text's Monokai theme */
2 |
3 | .cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; }
4 | .cm-s-monokai div.CodeMirror-selected { background: #49483E; }
5 | .cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); }
6 | .cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); }
7 | .cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; }
8 | .cm-s-monokai .CodeMirror-guttermarker { color: white; }
9 | .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
10 | .cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; }
11 | .cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }
12 |
13 | .cm-s-monokai span.cm-comment { color: #75715e; }
14 | .cm-s-monokai span.cm-atom { color: #ae81ff; }
15 | .cm-s-monokai span.cm-number { color: #ae81ff; }
16 |
17 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; }
18 | .cm-s-monokai span.cm-keyword { color: #f92672; }
19 | .cm-s-monokai span.cm-builtin { color: #66d9ef; }
20 | .cm-s-monokai span.cm-string { color: #e6db74; }
21 |
22 | .cm-s-monokai span.cm-variable { color: #f8f8f2; }
23 | .cm-s-monokai span.cm-variable-2 { color: #9effff; }
24 | .cm-s-monokai span.cm-variable-3 { color: #66d9ef; }
25 | .cm-s-monokai span.cm-def { color: #fd971f; }
26 | .cm-s-monokai span.cm-bracket { color: #f8f8f2; }
27 | .cm-s-monokai span.cm-tag { color: #f92672; }
28 | .cm-s-monokai span.cm-header { color: #ae81ff; }
29 | .cm-s-monokai span.cm-link { color: #ae81ff; }
30 | .cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; }
31 |
32 | .cm-s-monokai .CodeMirror-activeline-background { background: #373831; }
33 | .cm-s-monokai .CodeMirror-matchingbracket {
34 | text-decoration: underline;
35 | color: white !important;
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/theme/abcdef.css:
--------------------------------------------------------------------------------
1 | .cm-s-abcdef.CodeMirror { background: #0f0f0f; color: #defdef; }
2 | .cm-s-abcdef div.CodeMirror-selected { background: #515151; }
3 | .cm-s-abcdef .CodeMirror-line::selection, .cm-s-abcdef .CodeMirror-line > span::selection, .cm-s-abcdef .CodeMirror-line > span > span::selection { background: rgba(56, 56, 56, 0.99); }
4 | .cm-s-abcdef .CodeMirror-line::-moz-selection, .cm-s-abcdef .CodeMirror-line > span::-moz-selection, .cm-s-abcdef .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 56, 56, 0.99); }
5 | .cm-s-abcdef .CodeMirror-gutters { background: #555; border-right: 2px solid #314151; }
6 | .cm-s-abcdef .CodeMirror-guttermarker { color: #222; }
7 | .cm-s-abcdef .CodeMirror-guttermarker-subtle { color: azure; }
8 | .cm-s-abcdef .CodeMirror-linenumber { color: #FFFFFF; }
9 | .cm-s-abcdef .CodeMirror-cursor { border-left: 1px solid #00FF00; }
10 |
11 | .cm-s-abcdef span.cm-keyword { color: darkgoldenrod; font-weight: bold; }
12 | .cm-s-abcdef span.cm-atom { color: #77F; }
13 | .cm-s-abcdef span.cm-number { color: violet; }
14 | .cm-s-abcdef span.cm-def { color: #fffabc; }
15 | .cm-s-abcdef span.cm-variable { color: #abcdef; }
16 | .cm-s-abcdef span.cm-variable-2 { color: #cacbcc; }
17 | .cm-s-abcdef span.cm-variable-3 { color: #def; }
18 | .cm-s-abcdef span.cm-property { color: #fedcba; }
19 | .cm-s-abcdef span.cm-operator { color: #ff0; }
20 | .cm-s-abcdef span.cm-comment { color: #7a7b7c; font-style: italic;}
21 | .cm-s-abcdef span.cm-string { color: #2b4; }
22 | .cm-s-abcdef span.cm-meta { color: #C9F; }
23 | .cm-s-abcdef span.cm-qualifier { color: #FFF700; }
24 | .cm-s-abcdef span.cm-builtin { color: #30aabc; }
25 | .cm-s-abcdef span.cm-bracket { color: #8a8a8a; }
26 | .cm-s-abcdef span.cm-tag { color: #FFDD44; }
27 | .cm-s-abcdef span.cm-attribute { color: #DDFF00; }
28 | .cm-s-abcdef span.cm-error { color: #FF0000; }
29 | .cm-s-abcdef span.cm-header { color: aquamarine; font-weight: bold; }
30 | .cm-s-abcdef span.cm-link { color: blueviolet; }
31 |
32 | .cm-s-abcdef .CodeMirror-activeline-background { background: #314151; }
33 |
--------------------------------------------------------------------------------
/vendor/mode/tornado/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tornado template mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 | Tornado template mode
30 |
31 |
32 |
33 |
34 | My Tornado web application
35 |
36 |
37 |
38 | {{ title }}
39 |
40 |
41 | {% for item in items %}
42 | {% item.name %}
43 | {% empty %}
44 | You have no items in your list.
45 | {% end %}
46 |
47 |
48 |
49 |
50 |
51 |
59 |
60 | Mode for HTML with embedded Tornado template markup.
61 |
62 | MIME types defined: text/x-tornado
63 |
64 |
--------------------------------------------------------------------------------
/vendor/mode/css/less_test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | "use strict";
6 |
7 | var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-less");
8 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "less"); }
9 |
10 | MT("variable",
11 | "[variable-2 @base]: [atom #f04615];",
12 | "[qualifier .class] {",
13 | " [property width]: [variable percentage]([number 0.5]); [comment // returns `50%`]",
14 | " [property color]: [variable saturate]([variable-2 @base], [number 5%]);",
15 | "}");
16 |
17 | MT("amp",
18 | "[qualifier .child], [qualifier .sibling] {",
19 | " [qualifier .parent] [atom &] {",
20 | " [property color]: [keyword black];",
21 | " }",
22 | " [atom &] + [atom &] {",
23 | " [property color]: [keyword red];",
24 | " }",
25 | "}");
26 |
27 | MT("mixin",
28 | "[qualifier .mixin] ([variable dark]; [variable-2 @color]) {",
29 | " [property color]: [atom darken]([variable-2 @color], [number 10%]);",
30 | "}",
31 | "[qualifier .mixin] ([variable light]; [variable-2 @color]) {",
32 | " [property color]: [atom lighten]([variable-2 @color], [number 10%]);",
33 | "}",
34 | "[qualifier .mixin] ([variable-2 @_]; [variable-2 @color]) {",
35 | " [property display]: [atom block];",
36 | "}",
37 | "[variable-2 @switch]: [variable light];",
38 | "[qualifier .class] {",
39 | " [qualifier .mixin]([variable-2 @switch]; [atom #888]);",
40 | "}");
41 |
42 | MT("nest",
43 | "[qualifier .one] {",
44 | " [def @media] ([property width]: [number 400px]) {",
45 | " [property font-size]: [number 1.2em];",
46 | " [def @media] [attribute print] [keyword and] [property color] {",
47 | " [property color]: [keyword blue];",
48 | " }",
49 | " }",
50 | "}");
51 |
52 |
53 | MT("interpolation", ".@{[variable foo]} { [property font-weight]: [atom bold]; }");
54 | })();
55 |
--------------------------------------------------------------------------------
/vendor/mode/forth/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Forth mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
18 |
31 |
32 |
33 |
34 | Forth mode
35 |
36 |
37 | \ Insertion sort
38 |
39 | : cell- 1 cells - ;
40 |
41 | : insert ( start end -- start )
42 | dup @ >r ( r: v )
43 | begin
44 | 2dup <
45 | while
46 | r@ over cell- @ <
47 | while
48 | cell-
49 | dup @ over cell+ !
50 | repeat then
51 | r> swap ! ;
52 |
53 | : sort ( array len -- )
54 | 1 ?do
55 | dup i cells + insert
56 | loop drop ;
57 |
58 |
59 |
70 |
71 | Simple mode that handle Forth-Syntax (Forth on WikiPedia ).
72 |
73 | MIME types defined: text/x-forth.
74 |
75 |
76 |
--------------------------------------------------------------------------------
/vendor/mode/nsis/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: NSIS mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
15 |
28 |
29 |
30 | NSIS mode
31 |
32 |
33 |
34 | ; This is a comment
35 | !ifdef ERROR
36 | !error "Something went wrong"
37 | !endif
38 |
39 | OutFile "demo.exe"
40 | RequestExecutionLevel user
41 | SetDetailsPrint listonly
42 |
43 | !include "LogicLib.nsh"
44 | !include "WinVer.nsh"
45 |
46 | Section -mandatory
47 |
48 | Call logWinVer
49 |
50 | ${If} 1 > 0
51 | MessageBox MB_OK "Hello world"
52 | ${EndIf}
53 |
54 | SectionEnd
55 |
56 | Function logWinVer
57 |
58 | ${If} ${IsWin10}
59 | DetailPrint "Windows 10!"
60 | ${ElseIf} ${AtLeastWinVista}
61 | DetailPrint "We're post-XP"
62 | ${Else}
63 | DetailPrint "Legacy system"
64 | ${EndIf}
65 |
66 | FunctionEnd
67 |
68 |
69 |
78 |
79 | MIME types defined: text/x-nsis.
80 |
--------------------------------------------------------------------------------
/vendor/theme/zenburn.css:
--------------------------------------------------------------------------------
1 | /**
2 | * "
3 | * Using Zenburn color palette from the Emacs Zenburn Theme
4 | * https://github.com/bbatsov/zenburn-emacs/blob/master/zenburn-theme.el
5 | *
6 | * Also using parts of https://github.com/xavi/coderay-lighttable-theme
7 | * "
8 | * From: https://github.com/wisenomad/zenburn-lighttable-theme/blob/master/zenburn.css
9 | */
10 |
11 | .cm-s-zenburn .CodeMirror-gutters { background: #3f3f3f !important; }
12 | .cm-s-zenburn .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { color: #999; }
13 | .cm-s-zenburn .CodeMirror-cursor { border-left: 1px solid white; }
14 | .cm-s-zenburn { background-color: #3f3f3f; color: #dcdccc; }
15 | .cm-s-zenburn span.cm-builtin { color: #dcdccc; font-weight: bold; }
16 | .cm-s-zenburn span.cm-comment { color: #7f9f7f; }
17 | .cm-s-zenburn span.cm-keyword { color: #f0dfaf; font-weight: bold; }
18 | .cm-s-zenburn span.cm-atom { color: #bfebbf; }
19 | .cm-s-zenburn span.cm-def { color: #dcdccc; }
20 | .cm-s-zenburn span.cm-variable { color: #dfaf8f; }
21 | .cm-s-zenburn span.cm-variable-2 { color: #dcdccc; }
22 | .cm-s-zenburn span.cm-string { color: #cc9393; }
23 | .cm-s-zenburn span.cm-string-2 { color: #cc9393; }
24 | .cm-s-zenburn span.cm-number { color: #dcdccc; }
25 | .cm-s-zenburn span.cm-tag { color: #93e0e3; }
26 | .cm-s-zenburn span.cm-property { color: #dfaf8f; }
27 | .cm-s-zenburn span.cm-attribute { color: #dfaf8f; }
28 | .cm-s-zenburn span.cm-qualifier { color: #7cb8bb; }
29 | .cm-s-zenburn span.cm-meta { color: #f0dfaf; }
30 | .cm-s-zenburn span.cm-header { color: #f0efd0; }
31 | .cm-s-zenburn span.cm-operator { color: #f0efd0; }
32 | .cm-s-zenburn span.CodeMirror-matchingbracket { box-sizing: border-box; background: transparent; border-bottom: 1px solid; }
33 | .cm-s-zenburn span.CodeMirror-nonmatchingbracket { border-bottom: 1px solid; background: none; }
34 | .cm-s-zenburn .CodeMirror-activeline { background: #000000; }
35 | .cm-s-zenburn .CodeMirror-activeline-background { background: #000000; }
36 | .cm-s-zenburn div.CodeMirror-selected { background: #545454; }
37 | .cm-s-zenburn .CodeMirror-focused div.CodeMirror-selected { background: #4f4f4f; }
38 |
--------------------------------------------------------------------------------
/vendor/mode/gas/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Gas mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Gas mode
27 |
28 |
29 | .syntax unified
30 | .global main
31 |
32 | /*
33 | * A
34 | * multi-line
35 | * comment.
36 | */
37 |
38 | @ A single line comment.
39 |
40 | main:
41 | push {sp, lr}
42 | ldr r0, =message
43 | bl puts
44 | mov r0, #0
45 | pop {sp, pc}
46 |
47 | message:
48 | .asciz "Hello world! "
49 |
50 |
51 |
52 |
58 |
59 | Handles AT&T assembler syntax (more specifically this handles
60 | the GNU Assembler (gas) syntax.)
61 | It takes a single optional configuration parameter:
62 | architecture, which can be one of "ARM",
63 | "ARMv6" or "x86".
64 | Including the parameter adds syntax for the registers and special
65 | directives for the supplied architecture.
66 |
67 |
MIME types defined: text/x-gas
68 |
69 |
--------------------------------------------------------------------------------
/vendor/theme/3024-day.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: 3024 day
4 | Author: Jan T. Sott (http://github.com/idleberg)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; }
12 | .cm-s-3024-day div.CodeMirror-selected { background: #d6d5d4; }
13 |
14 | .cm-s-3024-day .CodeMirror-line::selection, .cm-s-3024-day .CodeMirror-line > span::selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d6d5d4; }
15 | .cm-s-3024-day .CodeMirror-line::-moz-selection, .cm-s-3024-day .CodeMirror-line > span::-moz-selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d9d9d9; }
16 |
17 | .cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; }
18 | .cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; }
19 | .cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; }
20 | .cm-s-3024-day .CodeMirror-linenumber { color: #807d7c; }
21 |
22 | .cm-s-3024-day .CodeMirror-cursor { border-left: 1px solid #5c5855; }
23 |
24 | .cm-s-3024-day span.cm-comment { color: #cdab53; }
25 | .cm-s-3024-day span.cm-atom { color: #a16a94; }
26 | .cm-s-3024-day span.cm-number { color: #a16a94; }
27 |
28 | .cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute { color: #01a252; }
29 | .cm-s-3024-day span.cm-keyword { color: #db2d20; }
30 | .cm-s-3024-day span.cm-string { color: #fded02; }
31 |
32 | .cm-s-3024-day span.cm-variable { color: #01a252; }
33 | .cm-s-3024-day span.cm-variable-2 { color: #01a0e4; }
34 | .cm-s-3024-day span.cm-def { color: #e8bbd0; }
35 | .cm-s-3024-day span.cm-bracket { color: #3a3432; }
36 | .cm-s-3024-day span.cm-tag { color: #db2d20; }
37 | .cm-s-3024-day span.cm-link { color: #a16a94; }
38 | .cm-s-3024-day span.cm-error { background: #db2d20; color: #5c5855; }
39 |
40 | .cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; }
41 | .cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important; }
42 |
--------------------------------------------------------------------------------
/vendor/theme/seti.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: seti
4 | Author: Michael Kaminsky (http://github.com/mkaminsky11)
5 |
6 | Original seti color scheme by Jesse Weed (https://github.com/jesseweed/seti-syntax)
7 |
8 | */
9 |
10 |
11 | .cm-s-seti.CodeMirror {
12 | background-color: #151718 !important;
13 | color: #CFD2D1 !important;
14 | border: none;
15 | }
16 | .cm-s-seti .CodeMirror-gutters {
17 | color: #404b53;
18 | background-color: #0E1112;
19 | border: none;
20 | }
21 | .cm-s-seti .CodeMirror-cursor { border-left: solid thin #f8f8f0; }
22 | .cm-s-seti .CodeMirror-linenumber { color: #6D8A88; }
23 | .cm-s-seti.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
24 | .cm-s-seti .CodeMirror-line::selection, .cm-s-seti .CodeMirror-line > span::selection, .cm-s-seti .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
25 | .cm-s-seti .CodeMirror-line::-moz-selection, .cm-s-seti .CodeMirror-line > span::-moz-selection, .cm-s-seti .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }
26 | .cm-s-seti span.cm-comment { color: #41535b; }
27 | .cm-s-seti span.cm-string, .cm-s-seti span.cm-string-2 { color: #55b5db; }
28 | .cm-s-seti span.cm-number { color: #cd3f45; }
29 | .cm-s-seti span.cm-variable { color: #55b5db; }
30 | .cm-s-seti span.cm-variable-2 { color: #a074c4; }
31 | .cm-s-seti span.cm-def { color: #55b5db; }
32 | .cm-s-seti span.cm-keyword { color: #ff79c6; }
33 | .cm-s-seti span.cm-operator { color: #9fca56; }
34 | .cm-s-seti span.cm-keyword { color: #e6cd69; }
35 | .cm-s-seti span.cm-atom { color: #cd3f45; }
36 | .cm-s-seti span.cm-meta { color: #55b5db; }
37 | .cm-s-seti span.cm-tag { color: #55b5db; }
38 | .cm-s-seti span.cm-attribute { color: #9fca56; }
39 | .cm-s-seti span.cm-qualifier { color: #9fca56; }
40 | .cm-s-seti span.cm-property { color: #a074c4; }
41 | .cm-s-seti span.cm-variable-3 { color: #9fca56; }
42 | .cm-s-seti span.cm-builtin { color: #9fca56; }
43 | .cm-s-seti .CodeMirror-activeline-background { background: #101213; }
44 | .cm-s-seti .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
45 |
--------------------------------------------------------------------------------
/vendor/mode/toml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: TOML Mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | TOML Mode
27 |
28 | # This is a TOML document. Boom.
29 |
30 | title = "TOML Example"
31 |
32 | [owner]
33 | name = "Tom Preston-Werner"
34 | organization = "GitHub"
35 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
36 | dob = 1979-05-27T07:32:00Z # First class dates? Why not?
37 |
38 | [database]
39 | server = "192.168.1.1"
40 | ports = [ 8001, 8001, 8002 ]
41 | connection_max = 5000
42 | enabled = true
43 |
44 | [servers]
45 |
46 | # You can indent as you please. Tabs or spaces. TOML don't care.
47 | [servers.alpha]
48 | ip = "10.0.0.1"
49 | dc = "eqdc10"
50 |
51 | [servers.beta]
52 | ip = "10.0.0.2"
53 | dc = "eqdc10"
54 |
55 | [clients]
56 | data = [ ["gamma", "delta"], [1, 2] ]
57 |
58 | # Line breaks are OK when inside arrays
59 | hosts = [
60 | "alpha",
61 | "omega"
62 | ]
63 |
64 |
70 | The TOML Mode
71 | Created by Forbes Lindesay.
72 | MIME type defined: text/x-toml.
73 |
74 |
--------------------------------------------------------------------------------
/vendor/theme/panda-syntax.css:
--------------------------------------------------------------------------------
1 | /*
2 | Name: Panda Syntax
3 | Author: Siamak Mokhtari (http://github.com/siamak/)
4 | CodeMirror template by Siamak Mokhtari (https://github.com/siamak/atom-panda-syntax)
5 | */
6 | .cm-s-panda-syntax {
7 | background: #292A2B;
8 | color: #E6E6E6;
9 | line-height: 1.5;
10 | font-family: 'Operator Mono', 'Source Sans Pro', Menlo, Monaco, Consolas, Courier New, monospace;
11 | }
12 | .cm-s-panda-syntax .CodeMirror-cursor { border-color: #ff2c6d; }
13 | .cm-s-panda-syntax .CodeMirror-activeline-background {
14 | background: rgba(99, 123, 156, 0.1);
15 | }
16 | .cm-s-panda-syntax .CodeMirror-selected {
17 | background: #FFF;
18 | }
19 | .cm-s-panda-syntax .cm-comment {
20 | font-style: italic;
21 | color: #676B79;
22 | }
23 | .cm-s-panda-syntax .cm-operator {
24 | color: #f3f3f3;
25 | }
26 | .cm-s-panda-syntax .cm-string {
27 | color: #19F9D8;
28 | }
29 | .cm-s-panda-syntax .cm-string-2 {
30 | color: #FFB86C;
31 | }
32 |
33 | .cm-s-panda-syntax .cm-tag {
34 | color: #ff2c6d;
35 | }
36 | .cm-s-panda-syntax .cm-meta {
37 | color: #b084eb;
38 | }
39 |
40 | .cm-s-panda-syntax .cm-number {
41 | color: #FFB86C;
42 | }
43 | .cm-s-panda-syntax .cm-atom {
44 | color: #ff2c6d;
45 | }
46 | .cm-s-panda-syntax .cm-keyword {
47 | color: #FF75B5;
48 | }
49 | .cm-s-panda-syntax .cm-variable {
50 | color: #ffb86c;
51 | }
52 | .cm-s-panda-syntax .cm-variable-2 {
53 | color: #ff9ac1;
54 | }
55 | .cm-s-panda-syntax .cm-variable-3 {
56 | color: #ff9ac1;
57 | }
58 |
59 | .cm-s-panda-syntax .cm-def {
60 | color: #e6e6e6;
61 | }
62 | .cm-s-panda-syntax .cm-property {
63 | color: #f3f3f3;
64 | }
65 | .cm-s-panda-syntax .cm-unit {
66 | color: #ffb86c;
67 | }
68 |
69 | .cm-s-panda-syntax .cm-attribute {
70 | color: #ffb86c;
71 | }
72 |
73 | .cm-s-panda-syntax .CodeMirror-matchingbracket {
74 | border-bottom: 1px dotted #19F9D8;
75 | padding-bottom: 2px;
76 | color: #e6e6e6;
77 | }
78 | .cm-s-panda-syntax .CodeMirror-gutters {
79 | background: #292a2b;
80 | border-right-color: rgba(255, 255, 255, 0.1);
81 | }
82 | .cm-s-panda-syntax .CodeMirror-linenumber {
83 | color: #e6e6e6;
84 | opacity: 0.6;
85 | }
86 |
--------------------------------------------------------------------------------
/vendor/mode/clike/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-c");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("indent",
9 | "[variable-3 void] [def foo]([variable-3 void*] [variable a], [variable-3 int] [variable b]) {",
10 | " [variable-3 int] [variable c] [operator =] [variable b] [operator +]",
11 | " [number 1];",
12 | " [keyword return] [operator *][variable a];",
13 | "}");
14 |
15 | MT("indent_switch",
16 | "[keyword switch] ([variable x]) {",
17 | " [keyword case] [number 10]:",
18 | " [keyword return] [number 20];",
19 | " [keyword default]:",
20 | " [variable printf]([string \"foo %c\"], [variable x]);",
21 | "}");
22 |
23 | MT("def",
24 | "[variable-3 void] [def foo]() {}",
25 | "[keyword struct] [def bar]{}",
26 | "[variable-3 int] [variable-3 *][def baz]() {}");
27 |
28 | MT("def_new_line",
29 | "::[variable std]::[variable SomeTerribleType][operator <][variable T][operator >]",
30 | "[def SomeLongMethodNameThatDoesntFitIntoOneLine]([keyword const] [variable MyType][operator &] [variable param]) {}")
31 |
32 | MT("double_block",
33 | "[keyword for] (;;)",
34 | " [keyword for] (;;)",
35 | " [variable x][operator ++];",
36 | "[keyword return];");
37 |
38 | MT("preprocessor",
39 | "[meta #define FOO 3]",
40 | "[variable-3 int] [variable foo];",
41 | "[meta #define BAR\\]",
42 | "[meta 4]",
43 | "[variable-3 unsigned] [variable-3 int] [variable bar] [operator =] [number 8];",
44 | "[meta #include ][comment // comment]")
45 |
46 |
47 | var mode_cpp = CodeMirror.getMode({indentUnit: 2}, "text/x-c++src");
48 | function MTCPP(name) { test.mode(name, mode_cpp, Array.prototype.slice.call(arguments, 1)); }
49 |
50 | MTCPP("cpp14_literal",
51 | "[number 10'000];",
52 | "[number 0b10'000];",
53 | "[number 0x10'000];",
54 | "[string '100000'];");
55 | })();
56 |
--------------------------------------------------------------------------------
/vendor/mode/tiki/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tiki wiki mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Tiki wiki mode
28 |
29 |
30 |
31 | Headings
32 | !Header 1
33 | !!Header 2
34 | !!!Header 3
35 | !!!!Header 4
36 | !!!!!Header 5
37 | !!!!!!Header 6
38 |
39 | Styling
40 | -=titlebar=-
41 | ^^ Box on multi
42 | lines
43 | of content^^
44 | __bold__
45 | ''italic''
46 | ===underline===
47 | ::center::
48 | --Line Through--
49 |
50 | Operators
51 | ~np~No parse~/np~
52 |
53 | Link
54 | [link|desc|nocache]
55 |
56 | Wiki
57 | ((Wiki))
58 | ((Wiki|desc))
59 | ((Wiki|desc|timeout))
60 |
61 | Table
62 | ||row1 col1|row1 col2|row1 col3
63 | row2 col1|row2 col2|row2 col3
64 | row3 col1|row3 col2|row3 col3||
65 |
66 | Lists:
67 | *bla
68 | **bla-1
69 | ++continue-bla-1
70 | ***bla-2
71 | ++continue-bla-1
72 | *bla
73 | +continue-bla
74 | #bla
75 | ** tra-la-la
76 | +continue-bla
77 | #bla
78 |
79 | Plugin (standard):
80 | {PLUGIN(attr="my attr")}
81 | Plugin Body
82 | {PLUGIN}
83 |
84 | Plugin (inline):
85 | {plugin attr="my attr"}
86 |
87 |
88 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/vendor/mode/cypher/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Cypher Mode for CodeMirror
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
30 |
31 |
32 | Cypher Mode for CodeMirror
33 |
34 | // Cypher Mode for CodeMirror, using the neo theme
35 | MATCH (joe { name: 'Joe' })-[:knows*2..2]-(friend_of_friend)
36 | WHERE NOT (joe)-[:knows]-(friend_of_friend)
37 | RETURN friend_of_friend.name, COUNT(*)
38 | ORDER BY COUNT(*) DESC , friend_of_friend.name
39 |
40 |
41 | MIME types defined:
42 | application/x-cypher-query
43 |
44 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/vendor/mode/octave/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Octave mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Octave mode
27 |
28 |
29 | %numbers
30 | [1234 1234i 1234j]
31 | [.234 .234j 2.23i]
32 | [23e2 12E1j 123D-4 0x234]
33 |
34 | %strings
35 | 'asda''a'
36 | "asda""a"
37 |
38 | %identifiers
39 | a + as123 - __asd__
40 |
41 | %operators
42 | -
43 | +
44 | =
45 | ==
46 | >
47 | <
48 | >=
49 | <=
50 | &
51 | ~
52 | ...
53 | break zeros default margin round ones rand
54 | ceil floor size clear zeros eye mean std cov
55 | error eval function
56 | abs acos atan asin cos cosh exp log prod sum
57 | log10 max min sign sin sinh sqrt tan reshape
58 | return
59 | case switch
60 | else elseif end if otherwise
61 | do for while
62 | try catch
63 | classdef properties events methods
64 | global persistent
65 |
66 | %one line comment
67 | %{ multi
68 | line comment %}
69 |
70 |
71 |
81 |
82 | MIME types defined: text/x-octave.
83 |
84 |
--------------------------------------------------------------------------------
/vendor/mode/pegjs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CodeMirror: PEG.js Mode
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
28 |
29 |
30 | PEG.js Mode
31 |
32 | /*
33 | * Classic example grammar, which recognizes simple arithmetic expressions like
34 | * "2*(3+4)". The parser generated from this grammar then computes their value.
35 | */
36 |
37 | start
38 | = additive
39 |
40 | additive
41 | = left:multiplicative "+" right:additive { return left + right; }
42 | / multiplicative
43 |
44 | multiplicative
45 | = left:primary "*" right:multiplicative { return left * right; }
46 | / primary
47 |
48 | primary
49 | = integer
50 | / "(" additive:additive ")" { return additive; }
51 |
52 | integer "integer"
53 | = digits:[0-9]+ { return parseInt(digits.join(""), 10); }
54 |
55 | letter = [a-z]+
56 |
62 | The PEG.js Mode
63 | Created by Forbes Lindesay.
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/vendor/mode/smalltalk/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Smalltalk mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
16 |
29 |
30 |
31 | Smalltalk mode
32 |
33 | "
34 | This is a test of the Smalltalk code
35 | "
36 | Seaside.WAComponent subclass: #MyCounter [
37 | | count |
38 | MyCounter class >> canBeRoot [ ^true ]
39 |
40 | initialize [
41 | super initialize.
42 | count := 0.
43 | ]
44 | states [ ^{ self } ]
45 | renderContentOn: html [
46 | html heading: count.
47 | html anchor callback: [ count := count + 1 ]; with: '++'.
48 | html space.
49 | html anchor callback: [ count := count - 1 ]; with: '--'.
50 | ]
51 | ]
52 |
53 | MyCounter registerAsApplication: 'mycounter'
54 |
55 |
56 |
64 |
65 | Simple Smalltalk mode.
66 |
67 | MIME types defined: text/x-stsrc.
68 |
69 |
--------------------------------------------------------------------------------
/vendor/mode/sas/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: SAS mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
30 |
31 |
32 | SAS mode
33 |
34 | libname foo "/tmp/foobar";
35 | %let count=1;
36 |
37 | /* Multi line
38 | Comment
39 | */
40 | data _null_;
41 | x=ranuni();
42 | * single comment;
43 | x2=x**2;
44 | sx=sqrt(x);
45 | if x=x2 then put "x must be 1";
46 | else do;
47 | put x=;
48 | end;
49 | run;
50 |
51 | /* embedded comment
52 | * comment;
53 | */
54 |
55 | proc glm data=sashelp.class;
56 | class sex;
57 | model weight = height sex;
58 | run;
59 |
60 | proc sql;
61 | select count(*)
62 | from sashelp.class;
63 |
64 | create table foo as
65 | select * from sashelp.class;
66 |
67 | select *
68 | from foo;
69 | quit;
70 |
71 |
72 |
78 |
79 | MIME types defined: text/x-sas.
80 |
81 |
82 |
--------------------------------------------------------------------------------
/vendor/theme/dracula.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: dracula
4 | Author: Michael Kaminsky (http://github.com/mkaminsky11)
5 |
6 | Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme)
7 |
8 | */
9 |
10 |
11 | .cm-s-dracula.CodeMirror, .cm-s-dracula .CodeMirror-gutters {
12 | background-color: #282a36 !important;
13 | color: #f8f8f2 !important;
14 | border: none;
15 | }
16 | .cm-s-dracula .CodeMirror-gutters { color: #282a36; }
17 | .cm-s-dracula .CodeMirror-cursor { border-left: solid thin #f8f8f0; }
18 | .cm-s-dracula .CodeMirror-linenumber { color: #6D8A88; }
19 | .cm-s-dracula .CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
20 | .cm-s-dracula .CodeMirror-line::selection, .cm-s-dracula .CodeMirror-line > span::selection, .cm-s-dracula .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
21 | .cm-s-dracula .CodeMirror-line::-moz-selection, .cm-s-dracula .CodeMirror-line > span::-moz-selection, .cm-s-dracula .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }
22 | .cm-s-dracula span.cm-comment { color: #6272a4; }
23 | .cm-s-dracula span.cm-string, .cm-s-dracula span.cm-string-2 { color: #f1fa8c; }
24 | .cm-s-dracula span.cm-number { color: #bd93f9; }
25 | .cm-s-dracula span.cm-variable { color: #50fa7b; }
26 | .cm-s-dracula span.cm-variable-2 { color: white; }
27 | .cm-s-dracula span.cm-def { color: #ffb86c; }
28 | .cm-s-dracula span.cm-keyword { color: #ff79c6; }
29 | .cm-s-dracula span.cm-operator { color: #ff79c6; }
30 | .cm-s-dracula span.cm-keyword { color: #ff79c6; }
31 | .cm-s-dracula span.cm-atom { color: #bd93f9; }
32 | .cm-s-dracula span.cm-meta { color: #f8f8f2; }
33 | .cm-s-dracula span.cm-tag { color: #ff79c6; }
34 | .cm-s-dracula span.cm-attribute { color: #50fa7b; }
35 | .cm-s-dracula span.cm-qualifier { color: #50fa7b; }
36 | .cm-s-dracula span.cm-property { color: #66d9ef; }
37 | .cm-s-dracula span.cm-builtin { color: #50fa7b; }
38 | .cm-s-dracula span.cm-variable-3 { color: #50fa7b; }
39 |
40 | .cm-s-dracula .CodeMirror-activeline-background { background: rgba(255,255,255,0.1); }
41 | .cm-s-dracula .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
42 |
--------------------------------------------------------------------------------
/vendor/theme/paraiso-dark.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Paraíso (Dark)
4 | Author: Jan T. Sott
5 |
6 | Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
7 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
8 |
9 | */
10 |
11 | .cm-s-paraiso-dark.CodeMirror { background: #2f1e2e; color: #b9b6b0; }
12 | .cm-s-paraiso-dark div.CodeMirror-selected { background: #41323f; }
13 | .cm-s-paraiso-dark .CodeMirror-line::selection, .cm-s-paraiso-dark .CodeMirror-line > span::selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::selection { background: rgba(65, 50, 63, .99); }
14 | .cm-s-paraiso-dark .CodeMirror-line::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(65, 50, 63, .99); }
15 | .cm-s-paraiso-dark .CodeMirror-gutters { background: #2f1e2e; border-right: 0px; }
16 | .cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; }
17 | .cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; }
18 | .cm-s-paraiso-dark .CodeMirror-linenumber { color: #776e71; }
19 | .cm-s-paraiso-dark .CodeMirror-cursor { border-left: 1px solid #8d8687; }
20 |
21 | .cm-s-paraiso-dark span.cm-comment { color: #e96ba8; }
22 | .cm-s-paraiso-dark span.cm-atom { color: #815ba4; }
23 | .cm-s-paraiso-dark span.cm-number { color: #815ba4; }
24 |
25 | .cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute { color: #48b685; }
26 | .cm-s-paraiso-dark span.cm-keyword { color: #ef6155; }
27 | .cm-s-paraiso-dark span.cm-string { color: #fec418; }
28 |
29 | .cm-s-paraiso-dark span.cm-variable { color: #48b685; }
30 | .cm-s-paraiso-dark span.cm-variable-2 { color: #06b6ef; }
31 | .cm-s-paraiso-dark span.cm-def { color: #f99b15; }
32 | .cm-s-paraiso-dark span.cm-bracket { color: #b9b6b0; }
33 | .cm-s-paraiso-dark span.cm-tag { color: #ef6155; }
34 | .cm-s-paraiso-dark span.cm-link { color: #815ba4; }
35 | .cm-s-paraiso-dark span.cm-error { background: #ef6155; color: #8d8687; }
36 |
37 | .cm-s-paraiso-dark .CodeMirror-activeline-background { background: #4D344A; }
38 | .cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
39 |
--------------------------------------------------------------------------------
/vendor/theme/paraiso-light.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Paraíso (Light)
4 | Author: Jan T. Sott
5 |
6 | Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
7 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
8 |
9 | */
10 |
11 | .cm-s-paraiso-light.CodeMirror { background: #e7e9db; color: #41323f; }
12 | .cm-s-paraiso-light div.CodeMirror-selected { background: #b9b6b0; }
13 | .cm-s-paraiso-light .CodeMirror-line::selection, .cm-s-paraiso-light .CodeMirror-line > span::selection, .cm-s-paraiso-light .CodeMirror-line > span > span::selection { background: #b9b6b0; }
14 | .cm-s-paraiso-light .CodeMirror-line::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span::-moz-selection, .cm-s-paraiso-light .CodeMirror-line > span > span::-moz-selection { background: #b9b6b0; }
15 | .cm-s-paraiso-light .CodeMirror-gutters { background: #e7e9db; border-right: 0px; }
16 | .cm-s-paraiso-light .CodeMirror-guttermarker { color: black; }
17 | .cm-s-paraiso-light .CodeMirror-guttermarker-subtle { color: #8d8687; }
18 | .cm-s-paraiso-light .CodeMirror-linenumber { color: #8d8687; }
19 | .cm-s-paraiso-light .CodeMirror-cursor { border-left: 1px solid #776e71; }
20 |
21 | .cm-s-paraiso-light span.cm-comment { color: #e96ba8; }
22 | .cm-s-paraiso-light span.cm-atom { color: #815ba4; }
23 | .cm-s-paraiso-light span.cm-number { color: #815ba4; }
24 |
25 | .cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute { color: #48b685; }
26 | .cm-s-paraiso-light span.cm-keyword { color: #ef6155; }
27 | .cm-s-paraiso-light span.cm-string { color: #fec418; }
28 |
29 | .cm-s-paraiso-light span.cm-variable { color: #48b685; }
30 | .cm-s-paraiso-light span.cm-variable-2 { color: #06b6ef; }
31 | .cm-s-paraiso-light span.cm-def { color: #f99b15; }
32 | .cm-s-paraiso-light span.cm-bracket { color: #41323f; }
33 | .cm-s-paraiso-light span.cm-tag { color: #ef6155; }
34 | .cm-s-paraiso-light span.cm-link { color: #815ba4; }
35 | .cm-s-paraiso-light span.cm-error { background: #ef6155; color: #776e71; }
36 |
37 | .cm-s-paraiso-light .CodeMirror-activeline-background { background: #CFD1C4; }
38 | .cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
39 |
--------------------------------------------------------------------------------
/vendor/theme/3024-night.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: 3024 night
4 | Author: Jan T. Sott (http://github.com/idleberg)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; }
12 | .cm-s-3024-night div.CodeMirror-selected { background: #3a3432; }
13 | .cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); }
14 | .cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); }
15 | .cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; }
16 | .cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; }
17 | .cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; }
18 | .cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; }
19 |
20 | .cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; }
21 |
22 | .cm-s-3024-night span.cm-comment { color: #cdab53; }
23 | .cm-s-3024-night span.cm-atom { color: #a16a94; }
24 | .cm-s-3024-night span.cm-number { color: #a16a94; }
25 |
26 | .cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; }
27 | .cm-s-3024-night span.cm-keyword { color: #db2d20; }
28 | .cm-s-3024-night span.cm-string { color: #fded02; }
29 |
30 | .cm-s-3024-night span.cm-variable { color: #01a252; }
31 | .cm-s-3024-night span.cm-variable-2 { color: #01a0e4; }
32 | .cm-s-3024-night span.cm-def { color: #e8bbd0; }
33 | .cm-s-3024-night span.cm-bracket { color: #d6d5d4; }
34 | .cm-s-3024-night span.cm-tag { color: #db2d20; }
35 | .cm-s-3024-night span.cm-link { color: #a16a94; }
36 | .cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; }
37 |
38 | .cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; }
39 | .cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
40 |
--------------------------------------------------------------------------------
/vendor/mode/soy/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Soy (Closure Template) mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
29 |
30 |
31 | Soy (Closure Template) mode
32 |
33 | {namespace example}
34 |
35 | /**
36 | * Says hello to the world.
37 | */
38 | {template .helloWorld}
39 | {@param name: string}
40 | {@param? score: number}
41 | Hello {$name} !
42 |
43 | {if $score}
44 | {$score} points
45 | {else}
46 | no score
47 | {/if}
48 |
49 | {/template}
50 |
51 | {template .alertHelloWorld kind="js"}
52 | alert('Hello World');
53 | {/template}
54 |
55 |
56 |
65 |
66 | A mode for Closure Templates (Soy).
67 | MIME type defined: text/x-soy.
68 |
69 |
--------------------------------------------------------------------------------
/vendor/theme/vibrant-ink.css:
--------------------------------------------------------------------------------
1 | /* Taken from the popular Visual Studio Vibrant Ink Schema */
2 |
3 | .cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
4 | .cm-s-vibrant-ink div.CodeMirror-selected { background: #35493c; }
5 | .cm-s-vibrant-ink .CodeMirror-line::selection, .cm-s-vibrant-ink .CodeMirror-line > span::selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::selection { background: rgba(53, 73, 60, 0.99); }
6 | .cm-s-vibrant-ink .CodeMirror-line::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span::-moz-selection, .cm-s-vibrant-ink .CodeMirror-line > span > span::-moz-selection { background: rgba(53, 73, 60, 0.99); }
7 |
8 | .cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
9 | .cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; }
10 | .cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
11 | .cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; }
12 | .cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white; }
13 |
14 | .cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
15 | .cm-s-vibrant-ink .cm-atom { color: #FC0; }
16 | .cm-s-vibrant-ink .cm-number { color: #FFEE98; }
17 | .cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
18 | .cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D; }
19 | .cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D; }
20 | .cm-s-vibrant-ink .cm-operator { color: #888; }
21 | .cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
22 | .cm-s-vibrant-ink .cm-string { color: #A5C25C; }
23 | .cm-s-vibrant-ink .cm-string-2 { color: red; }
24 | .cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
25 | .cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
26 | .cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
27 | .cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
28 | .cm-s-vibrant-ink .cm-header { color: #FF6400; }
29 | .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
30 | .cm-s-vibrant-ink .cm-link { color: blue; }
31 | .cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
32 |
33 | .cm-s-vibrant-ink .CodeMirror-activeline-background { background: #27282E; }
34 | .cm-s-vibrant-ink .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }
35 |
--------------------------------------------------------------------------------
/vendor/mode/css/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: CSS mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 | CSS mode
30 |
31 | /* Some example CSS */
32 |
33 | @import url("something.css");
34 |
35 | body {
36 | margin: 0;
37 | padding: 3em 6em;
38 | font-family: tahoma, arial, sans-serif;
39 | color: #000;
40 | }
41 |
42 | #navigation a {
43 | font-weight: bold;
44 | text-decoration: none !important;
45 | }
46 |
47 | h1 {
48 | font-size: 2.5em;
49 | }
50 |
51 | h2 {
52 | font-size: 1.7em;
53 | }
54 |
55 | h1:before, h2:before {
56 | content: "::";
57 | }
58 |
59 | code {
60 | font-family: courier, monospace;
61 | font-size: 80%;
62 | color: #418A8A;
63 | }
64 |
65 |
70 |
71 | MIME types defined: text/css, text/x-scss (demo ), text/x-less (demo ).
72 |
73 | Parsing/Highlighting Tests: normal , verbose .
74 |
75 |
76 |
--------------------------------------------------------------------------------
/vendor/theme/mbo.css:
--------------------------------------------------------------------------------
1 | /****************************************************************/
2 | /* Based on mbonaci's Brackets mbo theme */
3 | /* https://github.com/mbonaci/global/blob/master/Mbo.tmTheme */
4 | /* Create your own: http://tmtheme-editor.herokuapp.com */
5 | /****************************************************************/
6 |
7 | .cm-s-mbo.CodeMirror { background: #2c2c2c; color: #ffffec; }
8 | .cm-s-mbo div.CodeMirror-selected { background: #716C62; }
9 | .cm-s-mbo .CodeMirror-line::selection, .cm-s-mbo .CodeMirror-line > span::selection, .cm-s-mbo .CodeMirror-line > span > span::selection { background: rgba(113, 108, 98, .99); }
10 | .cm-s-mbo .CodeMirror-line::-moz-selection, .cm-s-mbo .CodeMirror-line > span::-moz-selection, .cm-s-mbo .CodeMirror-line > span > span::-moz-selection { background: rgba(113, 108, 98, .99); }
11 | .cm-s-mbo .CodeMirror-gutters { background: #4e4e4e; border-right: 0px; }
12 | .cm-s-mbo .CodeMirror-guttermarker { color: white; }
13 | .cm-s-mbo .CodeMirror-guttermarker-subtle { color: grey; }
14 | .cm-s-mbo .CodeMirror-linenumber { color: #dadada; }
15 | .cm-s-mbo .CodeMirror-cursor { border-left: 1px solid #ffffec; }
16 |
17 | .cm-s-mbo span.cm-comment { color: #95958a; }
18 | .cm-s-mbo span.cm-atom { color: #00a8c6; }
19 | .cm-s-mbo span.cm-number { color: #00a8c6; }
20 |
21 | .cm-s-mbo span.cm-property, .cm-s-mbo span.cm-attribute { color: #9ddfe9; }
22 | .cm-s-mbo span.cm-keyword { color: #ffb928; }
23 | .cm-s-mbo span.cm-string { color: #ffcf6c; }
24 | .cm-s-mbo span.cm-string.cm-property { color: #ffffec; }
25 |
26 | .cm-s-mbo span.cm-variable { color: #ffffec; }
27 | .cm-s-mbo span.cm-variable-2 { color: #00a8c6; }
28 | .cm-s-mbo span.cm-def { color: #ffffec; }
29 | .cm-s-mbo span.cm-bracket { color: #fffffc; font-weight: bold; }
30 | .cm-s-mbo span.cm-tag { color: #9ddfe9; }
31 | .cm-s-mbo span.cm-link { color: #f54b07; }
32 | .cm-s-mbo span.cm-error { border-bottom: #636363; color: #ffffec; }
33 | .cm-s-mbo span.cm-qualifier { color: #ffffec; }
34 |
35 | .cm-s-mbo .CodeMirror-activeline-background { background: #494b41; }
36 | .cm-s-mbo .CodeMirror-matchingbracket { color: #ffb928 !important; }
37 | .cm-s-mbo .CodeMirror-matchingtag { background: rgba(255, 255, 255, .37); }
38 |
--------------------------------------------------------------------------------
/vendor/theme/twilight.css:
--------------------------------------------------------------------------------
1 | .cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/
2 | .cm-s-twilight div.CodeMirror-selected { background: #323232; } /**/
3 | .cm-s-twilight .CodeMirror-line::selection, .cm-s-twilight .CodeMirror-line > span::selection, .cm-s-twilight .CodeMirror-line > span > span::selection { background: rgba(50, 50, 50, 0.99); }
4 | .cm-s-twilight .CodeMirror-line::-moz-selection, .cm-s-twilight .CodeMirror-line > span::-moz-selection, .cm-s-twilight .CodeMirror-line > span > span::-moz-selection { background: rgba(50, 50, 50, 0.99); }
5 |
6 | .cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; }
7 | .cm-s-twilight .CodeMirror-guttermarker { color: white; }
8 | .cm-s-twilight .CodeMirror-guttermarker-subtle { color: #aaa; }
9 | .cm-s-twilight .CodeMirror-linenumber { color: #aaa; }
10 | .cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white; }
11 |
12 | .cm-s-twilight .cm-keyword { color: #f9ee98; } /**/
13 | .cm-s-twilight .cm-atom { color: #FC0; }
14 | .cm-s-twilight .cm-number { color: #ca7841; } /**/
15 | .cm-s-twilight .cm-def { color: #8DA6CE; }
16 | .cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/
17 | .cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/
18 | .cm-s-twilight .cm-operator { color: #cda869; } /**/
19 | .cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/
20 | .cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/
21 | .cm-s-twilight .cm-string-2 { color:#bd6b18; } /*?*/
22 | .cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/
23 | .cm-s-twilight .cm-builtin { color: #cda869; } /*?*/
24 | .cm-s-twilight .cm-tag { color: #997643; } /**/
25 | .cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/
26 | .cm-s-twilight .cm-header { color: #FF6400; }
27 | .cm-s-twilight .cm-hr { color: #AEAEAE; }
28 | .cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/
29 | .cm-s-twilight .cm-error { border-bottom: 1px solid red; }
30 |
31 | .cm-s-twilight .CodeMirror-activeline-background { background: #27282E; }
32 | .cm-s-twilight .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }
33 |
--------------------------------------------------------------------------------
/vendor/theme/base16-dark.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Base16 Default Dark
4 | Author: Chris Kempson (http://chriskempson.com)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-base16-dark.CodeMirror { background: #151515; color: #e0e0e0; }
12 | .cm-s-base16-dark div.CodeMirror-selected { background: #303030; }
13 | .cm-s-base16-dark .CodeMirror-line::selection, .cm-s-base16-dark .CodeMirror-line > span::selection, .cm-s-base16-dark .CodeMirror-line > span > span::selection { background: rgba(48, 48, 48, .99); }
14 | .cm-s-base16-dark .CodeMirror-line::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span::-moz-selection, .cm-s-base16-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(48, 48, 48, .99); }
15 | .cm-s-base16-dark .CodeMirror-gutters { background: #151515; border-right: 0px; }
16 | .cm-s-base16-dark .CodeMirror-guttermarker { color: #ac4142; }
17 | .cm-s-base16-dark .CodeMirror-guttermarker-subtle { color: #505050; }
18 | .cm-s-base16-dark .CodeMirror-linenumber { color: #505050; }
19 | .cm-s-base16-dark .CodeMirror-cursor { border-left: 1px solid #b0b0b0; }
20 |
21 | .cm-s-base16-dark span.cm-comment { color: #8f5536; }
22 | .cm-s-base16-dark span.cm-atom { color: #aa759f; }
23 | .cm-s-base16-dark span.cm-number { color: #aa759f; }
24 |
25 | .cm-s-base16-dark span.cm-property, .cm-s-base16-dark span.cm-attribute { color: #90a959; }
26 | .cm-s-base16-dark span.cm-keyword { color: #ac4142; }
27 | .cm-s-base16-dark span.cm-string { color: #f4bf75; }
28 |
29 | .cm-s-base16-dark span.cm-variable { color: #90a959; }
30 | .cm-s-base16-dark span.cm-variable-2 { color: #6a9fb5; }
31 | .cm-s-base16-dark span.cm-def { color: #d28445; }
32 | .cm-s-base16-dark span.cm-bracket { color: #e0e0e0; }
33 | .cm-s-base16-dark span.cm-tag { color: #ac4142; }
34 | .cm-s-base16-dark span.cm-link { color: #aa759f; }
35 | .cm-s-base16-dark span.cm-error { background: #ac4142; color: #b0b0b0; }
36 |
37 | .cm-s-base16-dark .CodeMirror-activeline-background { background: #202020; }
38 | .cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
39 |
--------------------------------------------------------------------------------
/vendor/theme/base16-light.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Base16 Default Light
4 | Author: Chris Kempson (http://chriskempson.com)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-base16-light.CodeMirror { background: #f5f5f5; color: #202020; }
12 | .cm-s-base16-light div.CodeMirror-selected { background: #e0e0e0; }
13 | .cm-s-base16-light .CodeMirror-line::selection, .cm-s-base16-light .CodeMirror-line > span::selection, .cm-s-base16-light .CodeMirror-line > span > span::selection { background: #e0e0e0; }
14 | .cm-s-base16-light .CodeMirror-line::-moz-selection, .cm-s-base16-light .CodeMirror-line > span::-moz-selection, .cm-s-base16-light .CodeMirror-line > span > span::-moz-selection { background: #e0e0e0; }
15 | .cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 0px; }
16 | .cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; }
17 | .cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; }
18 | .cm-s-base16-light .CodeMirror-linenumber { color: #b0b0b0; }
19 | .cm-s-base16-light .CodeMirror-cursor { border-left: 1px solid #505050; }
20 |
21 | .cm-s-base16-light span.cm-comment { color: #8f5536; }
22 | .cm-s-base16-light span.cm-atom { color: #aa759f; }
23 | .cm-s-base16-light span.cm-number { color: #aa759f; }
24 |
25 | .cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute { color: #90a959; }
26 | .cm-s-base16-light span.cm-keyword { color: #ac4142; }
27 | .cm-s-base16-light span.cm-string { color: #f4bf75; }
28 |
29 | .cm-s-base16-light span.cm-variable { color: #90a959; }
30 | .cm-s-base16-light span.cm-variable-2 { color: #6a9fb5; }
31 | .cm-s-base16-light span.cm-def { color: #d28445; }
32 | .cm-s-base16-light span.cm-bracket { color: #202020; }
33 | .cm-s-base16-light span.cm-tag { color: #ac4142; }
34 | .cm-s-base16-light span.cm-link { color: #aa759f; }
35 | .cm-s-base16-light span.cm-error { background: #ac4142; color: #505050; }
36 |
37 | .cm-s-base16-light .CodeMirror-activeline-background { background: #DDDCDC; }
38 | .cm-s-base16-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
39 |
--------------------------------------------------------------------------------
/vendor/mode/php/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: PHP mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
30 |
31 |
32 | PHP mode
33 |
34 | 1, 'b' => 2, 3 => 'c');
36 |
37 | echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]";
38 |
39 | function hello($who) {
40 | return "Hello $who!";
41 | }
42 | ?>
43 | The program says = hello("World") ?>.
44 |
47 |
48 |
49 |
58 |
59 | Simple HTML/PHP mode based on
60 | the C-like mode. Depends on XML,
61 | JavaScript, CSS, HTMLMixed, and C-like modes.
62 |
63 | MIME types defined: application/x-httpd-php (HTML with PHP code), text/x-php (plain, non-wrapped PHP code).
64 |
65 |
--------------------------------------------------------------------------------
/vendor/mode/modelica/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Modelica mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 | Modelica mode
30 |
31 |
32 | model BouncingBall
33 | parameter Real e = 0.7;
34 | parameter Real g = 9.81;
35 | Real h(start=1);
36 | Real v;
37 | Boolean flying(start=true);
38 | Boolean impact;
39 | Real v_new;
40 | equation
41 | impact = h <= 0.0;
42 | der(v) = if flying then -g else 0;
43 | der(h) = v;
44 | when {h <= 0.0 and v <= 0.0, impact} then
45 | v_new = if edge(impact) then -e*pre(v) else 0;
46 | flying = v_new > 0;
47 | reinit(v, v_new);
48 | end when;
49 | annotation (uses(Modelica(version="3.2")));
50 | end BouncingBall;
51 |
52 |
53 |
62 |
63 | Simple mode that tries to handle Modelica as well as it can.
64 |
65 | MIME types defined: text/x-modelica
66 | (Modlica code).
67 |
68 |
--------------------------------------------------------------------------------
/vendor/theme/midnight.css:
--------------------------------------------------------------------------------
1 | /* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */
2 |
3 | /**/
4 | .cm-s-midnight span.CodeMirror-matchhighlight { background: #494949; }
5 | .cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; }
6 |
7 | /**/
8 | .cm-s-midnight .CodeMirror-activeline-background { background: #253540; }
9 |
10 | .cm-s-midnight.CodeMirror {
11 | background: #0F192A;
12 | color: #D1EDFF;
13 | }
14 |
15 | .cm-s-midnight.CodeMirror { border-top: 1px solid black; border-bottom: 1px solid black; }
16 |
17 | .cm-s-midnight div.CodeMirror-selected { background: #314D67; }
18 | .cm-s-midnight .CodeMirror-line::selection, .cm-s-midnight .CodeMirror-line > span::selection, .cm-s-midnight .CodeMirror-line > span > span::selection { background: rgba(49, 77, 103, .99); }
19 | .cm-s-midnight .CodeMirror-line::-moz-selection, .cm-s-midnight .CodeMirror-line > span::-moz-selection, .cm-s-midnight .CodeMirror-line > span > span::-moz-selection { background: rgba(49, 77, 103, .99); }
20 | .cm-s-midnight .CodeMirror-gutters { background: #0F192A; border-right: 1px solid; }
21 | .cm-s-midnight .CodeMirror-guttermarker { color: white; }
22 | .cm-s-midnight .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
23 | .cm-s-midnight .CodeMirror-linenumber { color: #D0D0D0; }
24 | .cm-s-midnight .CodeMirror-cursor { border-left: 1px solid #F8F8F0; }
25 |
26 | .cm-s-midnight span.cm-comment { color: #428BDD; }
27 | .cm-s-midnight span.cm-atom { color: #AE81FF; }
28 | .cm-s-midnight span.cm-number { color: #D1EDFF; }
29 |
30 | .cm-s-midnight span.cm-property, .cm-s-midnight span.cm-attribute { color: #A6E22E; }
31 | .cm-s-midnight span.cm-keyword { color: #E83737; }
32 | .cm-s-midnight span.cm-string { color: #1DC116; }
33 |
34 | .cm-s-midnight span.cm-variable { color: #FFAA3E; }
35 | .cm-s-midnight span.cm-variable-2 { color: #FFAA3E; }
36 | .cm-s-midnight span.cm-def { color: #4DD; }
37 | .cm-s-midnight span.cm-bracket { color: #D1EDFF; }
38 | .cm-s-midnight span.cm-tag { color: #449; }
39 | .cm-s-midnight span.cm-link { color: #AE81FF; }
40 | .cm-s-midnight span.cm-error { background: #F92672; color: #F8F8F0; }
41 |
42 | .cm-s-midnight .CodeMirror-matchingbracket {
43 | text-decoration: underline;
44 | color: white !important;
45 | }
46 |
--------------------------------------------------------------------------------
/vendor/mode/htmlembedded/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Html Embedded Scripts mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
29 |
30 |
31 | Html Embedded Scripts mode
32 |
33 | <%
34 | function hello(who) {
35 | return "Hello " + who;
36 | }
37 | %>
38 | This is an example of EJS (embedded javascript)
39 | The program says <%= hello("world") %>.
40 |
43 |
44 |
45 |
53 |
54 | Mode for html embedded scripts like JSP and ASP.NET. Depends on multiplex and HtmlMixed which in turn depends on
55 | JavaScript, CSS and XML. Other dependencies include those of the scripting language chosen.
56 |
57 | MIME types defined: application/x-aspx (ASP.NET),
58 | application/x-ejs (Embedded Javascript), application/x-jsp (JavaServer Pages)
59 | and application/x-erb
60 |
61 |
--------------------------------------------------------------------------------
/vendor/mode/vue/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Vue.js mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
36 |
37 |
38 | Vue.js mode
39 |
40 |
41 | Im am a {{mustache-like}} template
42 |
43 |
44 |
48 |
49 |
53 |
54 |
55 |
66 |
67 | MIME types defined: text/x-vue
68 |
69 |
70 |
--------------------------------------------------------------------------------
/vendor/mode/factor/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Factor mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
18 |
31 |
32 |
33 |
34 | Factor mode
35 |
36 |
37 | ! Copyright (C) 2008 Slava Pestov.
38 | ! See http://factorcode.org/license.txt for BSD license.
39 |
40 | ! A simple time server
41 |
42 | USING: accessors calendar calendar.format io io.encodings.ascii
43 | io.servers kernel threads ;
44 | IN: time-server
45 |
46 | : handle-time-client ( -- )
47 | now timestamp>rfc822 print ;
48 |
49 | : ( -- threaded-server )
50 | ascii
51 | "time-server" >>name
52 | 1234 >>insecure
53 | [ handle-time-client ] >>handler ;
54 |
55 | : start-time-server ( -- )
56 | start-server drop ;
57 |
58 | MAIN: start-time-server
59 |
60 |
61 |
62 |
72 |
73 | Simple mode that handles Factor Syntax (Factor on WikiPedia ).
74 |
75 | MIME types defined: text/x-factor.
76 |
77 |
78 |
--------------------------------------------------------------------------------
/vendor/theme/erlang-dark.css:
--------------------------------------------------------------------------------
1 | .cm-s-erlang-dark.CodeMirror { background: #002240; color: white; }
2 | .cm-s-erlang-dark div.CodeMirror-selected { background: #b36539; }
3 | .cm-s-erlang-dark .CodeMirror-line::selection, .cm-s-erlang-dark .CodeMirror-line > span::selection, .cm-s-erlang-dark .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); }
4 | .cm-s-erlang-dark .CodeMirror-line::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span::-moz-selection, .cm-s-erlang-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); }
5 | .cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
6 | .cm-s-erlang-dark .CodeMirror-guttermarker { color: white; }
7 | .cm-s-erlang-dark .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
8 | .cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; }
9 | .cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white; }
10 |
11 | .cm-s-erlang-dark span.cm-quote { color: #ccc; }
12 | .cm-s-erlang-dark span.cm-atom { color: #f133f1; }
13 | .cm-s-erlang-dark span.cm-attribute { color: #ff80e1; }
14 | .cm-s-erlang-dark span.cm-bracket { color: #ff9d00; }
15 | .cm-s-erlang-dark span.cm-builtin { color: #eaa; }
16 | .cm-s-erlang-dark span.cm-comment { color: #77f; }
17 | .cm-s-erlang-dark span.cm-def { color: #e7a; }
18 | .cm-s-erlang-dark span.cm-keyword { color: #ffee80; }
19 | .cm-s-erlang-dark span.cm-meta { color: #50fefe; }
20 | .cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
21 | .cm-s-erlang-dark span.cm-operator { color: #d55; }
22 | .cm-s-erlang-dark span.cm-property { color: #ccc; }
23 | .cm-s-erlang-dark span.cm-qualifier { color: #ccc; }
24 | .cm-s-erlang-dark span.cm-special { color: #ffbbbb; }
25 | .cm-s-erlang-dark span.cm-string { color: #3ad900; }
26 | .cm-s-erlang-dark span.cm-string-2 { color: #ccc; }
27 | .cm-s-erlang-dark span.cm-tag { color: #9effff; }
28 | .cm-s-erlang-dark span.cm-variable { color: #50fe50; }
29 | .cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
30 | .cm-s-erlang-dark span.cm-variable-3 { color: #ccc; }
31 | .cm-s-erlang-dark span.cm-error { color: #9d1e15; }
32 |
33 | .cm-s-erlang-dark .CodeMirror-activeline-background { background: #013461; }
34 | .cm-s-erlang-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }
35 |
--------------------------------------------------------------------------------
/vendor/theme/xq-light.css:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2011 by MarkLogic Corporation
3 | Author: Mike Brevoort
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 | */
23 | .cm-s-xq-light span.cm-keyword { line-height: 1em; font-weight: bold; color: #5A5CAD; }
24 | .cm-s-xq-light span.cm-atom { color: #6C8CD5; }
25 | .cm-s-xq-light span.cm-number { color: #164; }
26 | .cm-s-xq-light span.cm-def { text-decoration:underline; }
27 | .cm-s-xq-light span.cm-variable { color: black; }
28 | .cm-s-xq-light span.cm-variable-2 { color:black; }
29 | .cm-s-xq-light span.cm-variable-3 { color: black; }
30 | .cm-s-xq-light span.cm-property {}
31 | .cm-s-xq-light span.cm-operator {}
32 | .cm-s-xq-light span.cm-comment { color: #0080FF; font-style: italic; }
33 | .cm-s-xq-light span.cm-string { color: red; }
34 | .cm-s-xq-light span.cm-meta { color: yellow; }
35 | .cm-s-xq-light span.cm-qualifier { color: grey; }
36 | .cm-s-xq-light span.cm-builtin { color: #7EA656; }
37 | .cm-s-xq-light span.cm-bracket { color: #cc7; }
38 | .cm-s-xq-light span.cm-tag { color: #3F7F7F; }
39 | .cm-s-xq-light span.cm-attribute { color: #7F007F; }
40 | .cm-s-xq-light span.cm-error { color: #f00; }
41 |
42 | .cm-s-xq-light .CodeMirror-activeline-background { background: #e8f2ff; }
43 | .cm-s-xq-light .CodeMirror-matchingbracket { outline:1px solid grey;color:black !important;background:yellow; }
44 |
--------------------------------------------------------------------------------
/vendor/mode/django/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Django template mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
28 |
29 |
30 | Django template mode
31 |
32 |
33 |
34 |
35 | My Django web application
36 |
37 |
38 |
39 | {{ page.title|capfirst }}
40 |
41 |
42 | {# traverse a list of items and produce links to their views. #}
43 | {% for item in items %}
44 |
45 |
46 | {{ item.name }}
47 |
48 |
49 | {% empty %}
50 | You have no items in your list.
51 | {% endfor %}
52 |
53 | {% comment "this is a forgotten footer" %}
54 |
55 | {% endcomment %}
56 |
57 |
58 |
59 |
60 |
69 |
70 | Mode for HTML with embedded Django template markup.
71 |
72 | MIME types defined: text/x-django
73 |
74 |
--------------------------------------------------------------------------------
/vendor/mode/apl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: APL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
27 |
28 |
29 | APL mode
30 |
31 | ⍝ Conway's game of life
32 |
33 | ⍝ This example was inspired by the impressive demo at
34 | ⍝ http://www.youtube.com/watch?v=a9xAKttWgP4
35 |
36 | ⍝ Create a matrix:
37 | ⍝ 0 1 1
38 | ⍝ 1 1 0
39 | ⍝ 0 1 0
40 | creature ← (3 3 ⍴ ⍳ 9) ∈ 1 2 3 4 7 ⍝ Original creature from demo
41 | creature ← (3 3 ⍴ ⍳ 9) ∈ 1 3 6 7 8 ⍝ Glider
42 |
43 | ⍝ Place the creature on a larger board, near the centre
44 | board ← ¯1 ⊖ ¯2 ⌽ 5 7 ↑ creature
45 |
46 | ⍝ A function to move from one generation to the next
47 | life ← {∨/ 1 ⍵ ∧ 3 4 = ⊂+/ +⌿ 1 0 ¯1 ∘.⊖ 1 0 ¯1 ⌽¨ ⊂⍵}
48 |
49 | ⍝ Compute n-th generation and format it as a
50 | ⍝ character matrix
51 | gen ← {' #'[(life ⍣ ⍵) board]}
52 |
53 | ⍝ Show first three generations
54 | (gen 1) (gen 2) (gen 3)
55 |
56 |
57 |
64 |
65 | Simple mode that tries to handle APL as well as it can.
66 | It attempts to label functions/operators based upon
67 | monadic/dyadic usage (but this is far from fully fleshed out).
68 | This means there are meaningful classnames so hover states can
69 | have popups etc.
70 |
71 | MIME types defined: text/apl (APL code)
72 |
73 |
--------------------------------------------------------------------------------
/vendor/mode/protobuf/protobuf.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | function wordRegexp(words) {
15 | return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
16 | };
17 |
18 | var keywordArray = [
19 | "package", "message", "import", "syntax",
20 | "required", "optional", "repeated", "reserved", "default", "extensions", "packed",
21 | "bool", "bytes", "double", "enum", "float", "string",
22 | "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64"
23 | ];
24 | var keywords = wordRegexp(keywordArray);
25 |
26 | CodeMirror.registerHelper("hintWords", "protobuf", keywordArray);
27 |
28 | var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");
29 |
30 | function tokenBase(stream) {
31 | // whitespaces
32 | if (stream.eatSpace()) return null;
33 |
34 | // Handle one line Comments
35 | if (stream.match("//")) {
36 | stream.skipToEnd();
37 | return "comment";
38 | }
39 |
40 | // Handle Number Literals
41 | if (stream.match(/^[0-9\.+-]/, false)) {
42 | if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
43 | return "number";
44 | if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
45 | return "number";
46 | if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
47 | return "number";
48 | }
49 |
50 | // Handle Strings
51 | if (stream.match(/^"([^"]|(""))*"/)) { return "string"; }
52 | if (stream.match(/^'([^']|(''))*'/)) { return "string"; }
53 |
54 | // Handle words
55 | if (stream.match(keywords)) { return "keyword"; }
56 | if (stream.match(identifiers)) { return "variable"; } ;
57 |
58 | // Handle non-detected items
59 | stream.next();
60 | return null;
61 | };
62 |
63 | CodeMirror.defineMode("protobuf", function() {
64 | return {token: tokenBase};
65 | });
66 |
67 | CodeMirror.defineMIME("text/x-protobuf", "protobuf");
68 | });
69 |
--------------------------------------------------------------------------------
/vendor/mode/haml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: HAML mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
28 |
29 |
30 | HAML mode
31 |
32 | !!!
33 | #content
34 | .left.column(title="title"){:href => "/hello", :test => "#{hello}_#{world}"}
35 |
36 | %h2 Welcome to our site!
37 | %p= puts "HAML MODE"
38 | .right.column
39 | = render :partial => "sidebar"
40 |
41 | .container
42 | .row
43 | .span8
44 | %h1.title= @page_title
45 | %p.title= @page_title
46 | %p
47 | /
48 | The same as HTML comment
49 | Hello multiline comment
50 |
51 | -# haml comment
52 | This wont be displayed
53 | nor will this
54 | Date/Time:
55 | - now = DateTime.now
56 | %strong= now
57 | - if now > DateTime.parse("December 31, 2006")
58 | = "Happy new " + "year!"
59 |
60 | %title
61 | = @title
62 | \= @title
63 | Title
64 |
65 | Title
66 |
67 |
68 |
74 |
75 | MIME types defined: text/x-haml.
76 |
77 | Parsing/Highlighting Tests: normal , verbose .
78 |
79 |
80 |
--------------------------------------------------------------------------------
/vendor/mode/xml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: XML mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | XML mode
27 |
28 | <html style="color: green">
29 | <!-- this is a comment -->
30 | <head>
31 | <title>HTML Example</title>
32 | </head>
33 | <body>
34 | The indentation tries to be <em>somewhat "do what
35 | I mean"</em>... but might not match your style.
36 | </body>
37 | </html>
38 |
39 |
45 | The XML mode supports these configuration parameters:
46 |
47 | htmlMode (boolean)
48 | This switches the mode to parse HTML instead of XML. This
49 | means attributes do not have to be quoted, and some elements
50 | (such as br) do not require a closing tag.
51 | matchClosing (boolean)
52 | Controls whether the mode checks that close tags match the
53 | corresponding opening tag, and highlights mismatches as errors.
54 | Defaults to true.
55 | alignCDATA (boolean)
56 | Setting this to true will force the opening tag of CDATA
57 | blocks to not be indented.
58 |
59 |
60 | MIME types defined: application/xml, text/html.
61 |
62 |
--------------------------------------------------------------------------------
/vendor/mode/handlebars/handlebars.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../../addon/mode/simple"), require("../../addon/mode/multiplex"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "../../addon/mode/simple", "../../addon/mode/multiplex"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineSimpleMode("handlebars-tags", {
15 | start: [
16 | { regex: /\{\{!--/, push: "dash_comment", token: "comment" },
17 | { regex: /\{\{!/, push: "comment", token: "comment" },
18 | { regex: /\{\{/, push: "handlebars", token: "tag" }
19 | ],
20 | handlebars: [
21 | { regex: /\}\}/, pop: true, token: "tag" },
22 |
23 | // Double and single quotes
24 | { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" },
25 | { regex: /'(?:[^\\']|\\.)*'?/, token: "string" },
26 |
27 | // Handlebars keywords
28 | { regex: />|[#\/]([A-Za-z_]\w*)/, token: "keyword" },
29 | { regex: /(?:else|this)\b/, token: "keyword" },
30 |
31 | // Numeral
32 | { regex: /\d+/i, token: "number" },
33 |
34 | // Atoms like = and .
35 | { regex: /=|~|@|true|false/, token: "atom" },
36 |
37 | // Paths
38 | { regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, token: "variable-2" }
39 | ],
40 | dash_comment: [
41 | { regex: /--\}\}/, pop: true, token: "comment" },
42 |
43 | // Commented code
44 | { regex: /./, token: "comment"}
45 | ],
46 | comment: [
47 | { regex: /\}\}/, pop: true, token: "comment" },
48 | { regex: /./, token: "comment" }
49 | ]
50 | });
51 |
52 | CodeMirror.defineMode("handlebars", function(config, parserConfig) {
53 | var handlebars = CodeMirror.getMode(config, "handlebars-tags");
54 | if (!parserConfig || !parserConfig.base) return handlebars;
55 | return CodeMirror.multiplexingMode(
56 | CodeMirror.getMode(config, parserConfig.base),
57 | {open: "{{", close: "}}", mode: handlebars, parseDelimiters: true}
58 | );
59 | });
60 |
61 | CodeMirror.defineMIME("text/x-handlebars-template", "handlebars");
62 | });
63 |
--------------------------------------------------------------------------------
/vendor/mode/lua/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Lua mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
28 | Lua mode
29 |
30 | --[[
31 | example useless code to show lua syntax highlighting
32 | this is multiline comment
33 | ]]
34 |
35 | function blahblahblah(x)
36 |
37 | local table = {
38 | "asd" = 123,
39 | "x" = 0.34,
40 | }
41 | if x ~= 3 then
42 | print( x )
43 | elseif x == "string"
44 | my_custom_function( 0x34 )
45 | else
46 | unknown_function( "some string" )
47 | end
48 |
49 | --single line comment
50 |
51 | end
52 |
53 | function blablabla3()
54 |
55 | for k,v in ipairs( table ) do
56 | --abcde..
57 | y=[=[
58 | x=[[
59 | x is a multi line string
60 | ]]
61 | but its definition is iside a highest level string!
62 | ]=]
63 | print(" \"\" ")
64 |
65 | s = math.sin( x )
66 | end
67 |
68 | end
69 |
70 |
76 |
77 | Loosely based on Franciszek
78 | Wawrzak's CodeMirror
79 | 1 mode . One configuration parameter is
80 | supported, specials, to which you can provide an
81 | array of strings to have those identifiers highlighted with
82 | the lua-special style.
83 | MIME types defined: text/x-lua.
84 |
85 |
86 |
--------------------------------------------------------------------------------
/vendor/mode/yaml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: YAML mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | YAML mode
27 |
28 | --- # Favorite movies
29 | - Casablanca
30 | - North by Northwest
31 | - The Man Who Wasn't There
32 | --- # Shopping list
33 | [milk, pumpkin pie, eggs, juice]
34 | --- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs
35 | name: John Smith
36 | age: 33
37 | --- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces
38 | {name: John Smith, age: 33}
39 | ---
40 | receipt: Oz-Ware Purchase Invoice
41 | date: 2007-08-06
42 | customer:
43 | given: Dorothy
44 | family: Gale
45 |
46 | items:
47 | - part_no: A4786
48 | descrip: Water Bucket (Filled)
49 | price: 1.47
50 | quantity: 4
51 |
52 | - part_no: E1628
53 | descrip: High Heeled "Ruby" Slippers
54 | size: 8
55 | price: 100.27
56 | quantity: 1
57 |
58 | bill-to: &id001
59 | street: |
60 | 123 Tornado Alley
61 | Suite 16
62 | city: East Centerville
63 | state: KS
64 |
65 | ship-to: *id001
66 |
67 | specialDelivery: >
68 | Follow the Yellow Brick
69 | Road to the Emerald City.
70 | Pay no attention to the
71 | man behind the curtain.
72 | ...
73 |
74 |
77 |
78 | MIME types defined: text/x-yaml.
79 |
80 |
81 |
--------------------------------------------------------------------------------
/vendor/mode/javascript/json-ld.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: JSON-LD mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 | JSON-LD mode
30 |
31 |
32 |
33 | {
34 | "@context": {
35 | "name": "http://schema.org/name",
36 | "description": "http://schema.org/description",
37 | "image": {
38 | "@id": "http://schema.org/image",
39 | "@type": "@id"
40 | },
41 | "geo": "http://schema.org/geo",
42 | "latitude": {
43 | "@id": "http://schema.org/latitude",
44 | "@type": "xsd:float"
45 | },
46 | "longitude": {
47 | "@id": "http://schema.org/longitude",
48 | "@type": "xsd:float"
49 | },
50 | "xsd": "http://www.w3.org/2001/XMLSchema#"
51 | },
52 | "name": "The Empire State Building",
53 | "description": "The Empire State Building is a 102-story landmark in New York City.",
54 | "image": "http://www.civil.usherbrooke.ca/cours/gci215a/empire-state-building.jpg",
55 | "geo": {
56 | "latitude": "40.75",
57 | "longitude": "73.98"
58 | }
59 | }
60 |
61 |
62 |
70 |
71 | This is a specialization of the JavaScript mode .
72 |
73 |
--------------------------------------------------------------------------------
/vendor/mode/rpm/changes/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: RPM changes mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
28 | RPM changes mode
29 |
30 |
31 | -------------------------------------------------------------------
32 | Tue Oct 18 13:58:40 UTC 2011 - misterx@example.com
33 |
34 | - Update to r60.3
35 | - Fixes bug in the reflect package
36 | * disallow Interface method on Value obtained via unexported name
37 |
38 | -------------------------------------------------------------------
39 | Thu Oct 6 08:14:24 UTC 2011 - misterx@example.com
40 |
41 | - Update to r60.2
42 | - Fixes memory leak in certain map types
43 |
44 | -------------------------------------------------------------------
45 | Wed Oct 5 14:34:10 UTC 2011 - misterx@example.com
46 |
47 | - Tweaks for gdb debugging
48 | - go.spec changes:
49 | - move %go_arch definition to %prep section
50 | - pass correct location of go specific gdb pretty printer and
51 | functions to cpp as HOST_EXTRA_CFLAGS macro
52 | - install go gdb functions & printer
53 | - gdb-printer.patch
54 | - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go
55 | gdb functions and pretty printer
56 |
57 |
64 |
65 | MIME types defined: text/x-rpm-changes.
66 |
67 |
--------------------------------------------------------------------------------
/vendor/mode/swift/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Swift mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
27 |
28 |
29 | Swift mode
30 |
31 | //
32 | // TipCalculatorModel.swift
33 | // TipCalculator
34 | //
35 | // Created by Main Account on 12/18/14.
36 | // Copyright (c) 2014 Razeware LLC. All rights reserved.
37 | //
38 |
39 | import Foundation
40 |
41 | class TipCalculatorModel {
42 |
43 | var total: Double
44 | var taxPct: Double
45 | var subtotal: Double {
46 | get {
47 | return total / (taxPct + 1)
48 | }
49 | }
50 |
51 | init(total: Double, taxPct: Double) {
52 | self.total = total
53 | self.taxPct = taxPct
54 | }
55 |
56 | func calcTipWithTipPct(tipPct: Double) -> Double {
57 | return subtotal * tipPct
58 | }
59 |
60 | func returnPossibleTips() -> [Int: Double] {
61 |
62 | let possibleTipsInferred = [0.15, 0.18, 0.20]
63 | let possibleTipsExplicit:[Double] = [0.15, 0.18, 0.20]
64 |
65 | var retval = [Int: Double]()
66 | for possibleTip in possibleTipsInferred {
67 | let intPct = Int(possibleTip*100)
68 | retval[intPct] = calcTipWithTipPct(possibleTip)
69 | }
70 | return retval
71 |
72 | }
73 |
74 | }
75 |
76 |
77 |
84 |
85 | A simple mode for Swift
86 |
87 | MIME types defined: text/x-swift (Swift code)
88 |
89 |
--------------------------------------------------------------------------------
/vendor/mode/webidl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Web IDL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Web IDL mode
28 |
29 |
30 |
31 | [NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
32 | interface HTMLImageElement : HTMLElement {
33 | attribute DOMString alt;
34 | attribute DOMString src;
35 | attribute DOMString srcset;
36 | attribute DOMString sizes;
37 | attribute DOMString? crossOrigin;
38 | attribute DOMString useMap;
39 | attribute boolean isMap;
40 | attribute unsigned long width;
41 | attribute unsigned long height;
42 | readonly attribute unsigned long naturalWidth;
43 | readonly attribute unsigned long naturalHeight;
44 | readonly attribute boolean complete;
45 | readonly attribute DOMString currentSrc;
46 |
47 | // also has obsolete members
48 | };
49 |
50 | partial interface HTMLImageElement {
51 | attribute DOMString name;
52 | attribute DOMString lowsrc;
53 | attribute DOMString align;
54 | attribute unsigned long hspace;
55 | attribute unsigned long vspace;
56 | attribute DOMString longDesc;
57 |
58 | [TreatNullAs=EmptyString] attribute DOMString border;
59 | };
60 |
61 |
62 |
63 |
69 |
70 | MIME type defined: text/x-webidl.
71 |
72 |
--------------------------------------------------------------------------------
/vendor/mode/erlang/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Erlang mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
28 | Erlang mode
29 |
30 | %% -*- mode: erlang; erlang-indent-level: 2 -*-
31 | %%% Created : 7 May 2012 by mats cronqvist
32 |
33 | %% @doc
34 | %% Demonstrates how to print a record.
35 | %% @end
36 |
37 | -module('ex').
38 | -author('mats cronqvist').
39 | -export([demo/0,
40 | rec_info/1]).
41 |
42 | -record(demo,{a="One",b="Two",c="Three",d="Four"}).
43 |
44 | rec_info(demo) -> record_info(fields,demo).
45 |
46 | demo() -> expand_recs(?MODULE,#demo{a="A",b="BB"}).
47 |
48 | expand_recs(M,List) when is_list(List) ->
49 | [expand_recs(M,L)||L<-List];
50 | expand_recs(M,Tup) when is_tuple(Tup) ->
51 | case tuple_size(Tup) of
52 | L when L < 1 -> Tup;
53 | L ->
54 | try
55 | Fields = M:rec_info(element(1,Tup)),
56 | L = length(Fields)+1,
57 | lists:zip(Fields,expand_recs(M,tl(tuple_to_list(Tup))))
58 | catch
59 | _:_ -> list_to_tuple(expand_recs(M,tuple_to_list(Tup)))
60 | end
61 | end;
62 | expand_recs(_,Term) ->
63 | Term.
64 |
65 |
66 |
74 |
75 | MIME types defined: text/x-erlang.
76 |
77 |
--------------------------------------------------------------------------------
/vendor/mode/haskell/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Haskell mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
28 | Haskell mode
29 |
30 | module UniquePerms (
31 | uniquePerms
32 | )
33 | where
34 |
35 | -- | Find all unique permutations of a list where there might be duplicates.
36 | uniquePerms :: (Eq a) => [a] -> [[a]]
37 | uniquePerms = permBag . makeBag
38 |
39 | -- | An unordered collection where duplicate values are allowed,
40 | -- but represented with a single value and a count.
41 | type Bag a = [(a, Int)]
42 |
43 | makeBag :: (Eq a) => [a] -> Bag a
44 | makeBag [] = []
45 | makeBag (a:as) = mix a $ makeBag as
46 | where
47 | mix a [] = [(a,1)]
48 | mix a (bn@(b,n):bs) | a == b = (b,n+1):bs
49 | | otherwise = bn : mix a bs
50 |
51 | permBag :: Bag a -> [[a]]
52 | permBag [] = [[]]
53 | permBag bs = concatMap (\(f,cs) -> map (f:) $ permBag cs) . oneOfEach $ bs
54 | where
55 | oneOfEach [] = []
56 | oneOfEach (an@(a,n):bs) =
57 | let bs' = if n == 1 then bs else (a,n-1):bs
58 | in (a,bs') : mapSnd (an:) (oneOfEach bs)
59 |
60 | apSnd f (a,b) = (a, f b)
61 | mapSnd = map . apSnd
62 |
63 |
64 |
71 |
72 | MIME types defined: text/x-haskell.
73 |
74 |
--------------------------------------------------------------------------------
/vendor/mode/properties/properties.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineMode("properties", function() {
15 | return {
16 | token: function(stream, state) {
17 | var sol = stream.sol() || state.afterSection;
18 | var eol = stream.eol();
19 |
20 | state.afterSection = false;
21 |
22 | if (sol) {
23 | if (state.nextMultiline) {
24 | state.inMultiline = true;
25 | state.nextMultiline = false;
26 | } else {
27 | state.position = "def";
28 | }
29 | }
30 |
31 | if (eol && ! state.nextMultiline) {
32 | state.inMultiline = false;
33 | state.position = "def";
34 | }
35 |
36 | if (sol) {
37 | while(stream.eatSpace()) {}
38 | }
39 |
40 | var ch = stream.next();
41 |
42 | if (sol && (ch === "#" || ch === "!" || ch === ";")) {
43 | state.position = "comment";
44 | stream.skipToEnd();
45 | return "comment";
46 | } else if (sol && ch === "[") {
47 | state.afterSection = true;
48 | stream.skipTo("]"); stream.eat("]");
49 | return "header";
50 | } else if (ch === "=" || ch === ":") {
51 | state.position = "quote";
52 | return null;
53 | } else if (ch === "\\" && state.position === "quote") {
54 | if (stream.eol()) { // end of line?
55 | // Multiline value
56 | state.nextMultiline = true;
57 | }
58 | }
59 |
60 | return state.position;
61 | },
62 |
63 | startState: function() {
64 | return {
65 | position : "def", // Current position, "def", "quote" or "comment"
66 | nextMultiline : false, // Is the next line multiline value
67 | inMultiline : false, // Is the current line a multiline value
68 | afterSection : false // Did we just open a section
69 | };
70 | }
71 |
72 | };
73 | });
74 |
75 | CodeMirror.defineMIME("text/x-properties", "properties");
76 | CodeMirror.defineMIME("text/x-ini", "properties");
77 |
78 | });
79 |
--------------------------------------------------------------------------------
/vendor/mode/go/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Go mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
28 | Go mode
29 |
30 | // Prime Sieve in Go.
31 | // Taken from the Go specification.
32 | // Copyright © The Go Authors.
33 |
34 | package main
35 |
36 | import "fmt"
37 |
38 | // Send the sequence 2, 3, 4, ... to channel 'ch'.
39 | func generate(ch chan<- int) {
40 | for i := 2; ; i++ {
41 | ch <- i // Send 'i' to channel 'ch'
42 | }
43 | }
44 |
45 | // Copy the values from channel 'src' to channel 'dst',
46 | // removing those divisible by 'prime'.
47 | func filter(src <-chan int, dst chan<- int, prime int) {
48 | for i := range src { // Loop over values received from 'src'.
49 | if i%prime != 0 {
50 | dst <- i // Send 'i' to channel 'dst'.
51 | }
52 | }
53 | }
54 |
55 | // The prime sieve: Daisy-chain filter processes together.
56 | func sieve() {
57 | ch := make(chan int) // Create a new channel.
58 | go generate(ch) // Start generate() as a subprocess.
59 | for {
60 | prime := <-ch
61 | fmt.Print(prime, "\n")
62 | ch1 := make(chan int)
63 | go filter(ch, ch1, prime)
64 | ch = ch1
65 | }
66 | }
67 |
68 | func main() {
69 | sieve()
70 | }
71 |
72 |
73 |
83 |
84 | MIME type: text/x-go
85 |
86 |
--------------------------------------------------------------------------------