├── js ├── mobile.js ├── material.js ├── repl.js ├── logic │ ├── logic.html │ ├── global.js │ └── init.js ├── images.js ├── broadcast.js └── ready.js ├── favicon.ico ├── favicon.png ├── test1.txt ├── icon_128.png ├── error ├── error.png ├── error_codes │ ├── e502.html │ ├── e503.html │ ├── e504.html │ ├── e404.html │ ├── e400.html │ ├── e408.html │ ├── e500.html │ ├── e401.html │ └── e403.html └── standard.css ├── images ├── cloud.png ├── web.png ├── paypal.png ├── cloud_128.png ├── cloud_flat.png ├── other │ └── none.jpg ├── cloud_white.png ├── cloud_flat_128.png ├── cloud_white_128.png ├── buttons │ ├── donate_small.png │ └── star_small.png └── svg │ └── load.svg ├── lib ├── codemirror │ ├── .travis.yml │ ├── bin │ │ ├── lint │ │ ├── authors.sh │ │ ├── source-highlight │ │ └── release │ ├── doc │ │ ├── logo.png │ │ └── yinyang.png │ ├── .gitignore │ ├── theme │ │ ├── ambiance-mobile.css │ │ ├── neat.css │ │ ├── elegant.css │ │ ├── neo.css │ │ ├── eclipse.css │ │ ├── bespin.css │ │ ├── isotope.css │ │ ├── hopscotch.css │ │ ├── railscasts.css │ │ ├── colorforth.css │ │ ├── cobalt.css │ │ ├── rubyblue.css │ │ ├── night.css │ │ ├── tomorrow-night-bright.css │ │ ├── monokai.css │ │ ├── the-matrix.css │ │ ├── yeti.css │ │ ├── blackboard.css │ │ └── abcdef.css │ ├── .gitattributes │ ├── .npmignore │ ├── addon │ │ ├── display │ │ │ ├── fullscreen.css │ │ │ ├── fullscreen.js │ │ │ └── autorefresh.js │ │ ├── search │ │ │ └── matchesonscrollbar.css │ │ ├── fold │ │ │ ├── foldgutter.css │ │ │ ├── indent-fold.js │ │ │ └── markdown-fold.js │ │ ├── dialog │ │ │ └── dialog.css │ │ ├── hint │ │ │ ├── show-hint.css │ │ │ └── anyword-hint.js │ │ ├── lint │ │ │ ├── yaml-lint.js │ │ │ ├── json-lint.js │ │ │ ├── css-lint.js │ │ │ ├── coffeescript-lint.js │ │ │ └── html-lint.js │ │ ├── mode │ │ │ └── multiplex_test.js │ │ ├── minimap │ │ │ └── minimap.css │ │ ├── edit │ │ │ ├── trailingspace.js │ │ │ └── continuelist.js │ │ ├── tern │ │ │ └── worker.js │ │ ├── runmode │ │ │ └── colorize.js │ │ └── scroll │ │ │ ├── simplescrollbars.css │ │ │ └── scrollpastend.js │ ├── mode │ │ ├── tiddlywiki │ │ │ └── tiddlywiki.css │ │ ├── ruby │ │ │ └── test.js │ │ ├── css │ │ │ ├── gss_test.js │ │ │ └── less_test.js │ │ ├── tiki │ │ │ └── tiki.css │ │ ├── rust │ │ │ ├── test.js │ │ │ └── index.html │ │ ├── diff │ │ │ └── diff.js │ │ ├── asciiarmor │ │ │ └── index.html │ │ ├── htmlembedded │ │ │ └── htmlembedded.js │ │ ├── ntriples │ │ │ └── index.html │ │ ├── twig │ │ │ └── index.html │ │ ├── spreadsheet │ │ │ └── index.html │ │ ├── http │ │ │ └── index.html │ │ ├── clike │ │ │ └── test.js │ │ ├── solr │ │ │ └── index.html │ │ ├── ecl │ │ │ └── index.html │ │ ├── z80 │ │ │ └── index.html │ │ ├── oz │ │ │ └── index.html │ │ ├── turtle │ │ │ └── index.html │ │ ├── pascal │ │ │ └── index.html │ │ ├── pig │ │ │ └── index.html │ │ ├── vbscript │ │ │ └── index.html │ │ ├── gherkin │ │ │ └── index.html │ │ ├── properties │ │ │ └── index.html │ │ ├── javascript │ │ │ └── typescript.html │ │ ├── sass │ │ │ └── index.html │ │ ├── perl │ │ │ └── index.html │ │ ├── elm │ │ │ └── index.html │ │ ├── idl │ │ │ └── index.html │ │ ├── dart │ │ │ └── index.html │ │ ├── xml │ │ │ └── test.js │ │ ├── jinja2 │ │ │ └── index.html │ │ ├── shell │ │ │ ├── test.js │ │ │ └── index.html │ │ ├── sparql │ │ │ └── index.html │ │ └── tornado │ │ │ └── index.html │ ├── test │ │ ├── lint.js │ │ ├── mode_test.css │ │ ├── run.js │ │ └── phantom_driver.js │ ├── package.json │ ├── LICENSE │ ├── demo │ │ ├── closetag.html │ │ ├── resize.html │ │ ├── matchtags.html │ │ ├── rulers.html │ │ ├── placeholder.html │ │ ├── marker.html │ │ ├── trailingspace.html │ │ ├── matchhighlighter.html │ │ ├── closebrackets.html │ │ ├── changemode.html │ │ ├── html5complete.html │ │ └── markselection.html │ └── README.md ├── devicons │ ├── devicons.eot │ ├── devicons.ttf │ └── devicons.woff ├── Font │ └── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff ├── repl │ ├── index.html │ └── repl.js ├── picker │ ├── index.html │ └── color.css ├── keyboard │ ├── component.json │ ├── jwerty.enderBridge.js │ └── jwerty.canBridge.js ├── auto │ ├── signal.min.js │ ├── signal.js │ └── comment.min.js └── messenger │ └── js │ ├── messenger-theme-flat.js │ └── messenger-theme-future.js ├── fonts ├── Roboto-Bold.ttf ├── Roboto-Thin.ttf ├── more │ ├── Baron.otf │ ├── Baron_Black.otf │ ├── Baron_Bold.otf │ ├── Baron_Italic.otf │ ├── Baron_Black_Italic.otf │ └── Baron_Bold_Italic.otf ├── Roboto-Black.ttf ├── Roboto-Black.woff ├── Roboto-Bold.woff ├── Roboto-Italic.ttf ├── Roboto-Light.ttf ├── Roboto-Light.woff ├── Roboto-Medium.ttf ├── Roboto-Thin.woff ├── Roboto-Italic.woff ├── Roboto-Medium.woff ├── Roboto-Regular.ttf ├── Roboto-Regular.woff └── material │ └── fonts │ ├── Material-Design-Iconic-Font.eot │ ├── Material-Design-Iconic-Font.ttf │ └── Material-Design-Iconic-Font.woff ├── about ├── images │ ├── record.gif │ ├── code-gray.png │ ├── doc-black.png │ ├── doc-gray.png │ ├── eye-black.png │ ├── eye-gray.png │ ├── note-gray.png │ ├── cloud-black.png │ ├── cloud-gray.png │ ├── code-black.png │ ├── note-black.png │ ├── thumb-black.png │ ├── thumb-gray.png │ ├── web_record.gif │ ├── screen_recording_720.mp4 │ ├── briefcase.svg │ ├── cloud-check.svg │ ├── eye.svg │ ├── logo.svg │ └── thumbs-up.svg ├── lib │ └── fit.js └── css │ └── grid.css ├── mobile ├── mobile.js ├── mobile.html ├── global.js └── picker.js ├── .gitignore └── intro.txt /js/mobile.js: -------------------------------------------------------------------------------- 1 | //just mobile stuff -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/favicon.ico -------------------------------------------------------------------------------- /favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/favicon.png -------------------------------------------------------------------------------- /test1.txt: -------------------------------------------------------------------------------- 1 | ::ffff:107.0.95.254 2 | ::ffff:73.143.79.81 3 | ::ffff:73.143.79.81 4 | -------------------------------------------------------------------------------- /icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/icon_128.png -------------------------------------------------------------------------------- /error/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/error/error.png -------------------------------------------------------------------------------- /images/cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/cloud.png -------------------------------------------------------------------------------- /images/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/web.png -------------------------------------------------------------------------------- /lib/codemirror/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - stable 4 | sudo: false 5 | -------------------------------------------------------------------------------- /images/paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/paypal.png -------------------------------------------------------------------------------- /js/material.js: -------------------------------------------------------------------------------- 1 | //material design stuff 2 | //had things, but the wave pattern was not needed 3 | -------------------------------------------------------------------------------- /fonts/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Bold.ttf -------------------------------------------------------------------------------- /fonts/Roboto-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Thin.ttf -------------------------------------------------------------------------------- /fonts/more/Baron.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/more/Baron.otf -------------------------------------------------------------------------------- /images/cloud_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/cloud_128.png -------------------------------------------------------------------------------- /images/cloud_flat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/cloud_flat.png -------------------------------------------------------------------------------- /images/other/none.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/other/none.jpg -------------------------------------------------------------------------------- /about/images/record.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/record.gif -------------------------------------------------------------------------------- /fonts/Roboto-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Black.ttf -------------------------------------------------------------------------------- /fonts/Roboto-Black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Black.woff -------------------------------------------------------------------------------- /fonts/Roboto-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Bold.woff -------------------------------------------------------------------------------- /fonts/Roboto-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Italic.ttf -------------------------------------------------------------------------------- /fonts/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Light.ttf -------------------------------------------------------------------------------- /fonts/Roboto-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Light.woff -------------------------------------------------------------------------------- /fonts/Roboto-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Medium.ttf -------------------------------------------------------------------------------- /fonts/Roboto-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Thin.woff -------------------------------------------------------------------------------- /images/cloud_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/cloud_white.png -------------------------------------------------------------------------------- /lib/codemirror/bin/lint: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | process.exit(require("../test/lint").ok ? 0 : 1); 4 | -------------------------------------------------------------------------------- /about/images/code-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/code-gray.png -------------------------------------------------------------------------------- /about/images/doc-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/doc-black.png -------------------------------------------------------------------------------- /about/images/doc-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/doc-gray.png -------------------------------------------------------------------------------- /about/images/eye-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/eye-black.png -------------------------------------------------------------------------------- /about/images/eye-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/eye-gray.png -------------------------------------------------------------------------------- /about/images/note-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/note-gray.png -------------------------------------------------------------------------------- /fonts/Roboto-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Italic.woff -------------------------------------------------------------------------------- /fonts/Roboto-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Medium.woff -------------------------------------------------------------------------------- /fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /fonts/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/Roboto-Regular.woff -------------------------------------------------------------------------------- /fonts/more/Baron_Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/more/Baron_Black.otf -------------------------------------------------------------------------------- /fonts/more/Baron_Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/more/Baron_Bold.otf -------------------------------------------------------------------------------- /images/cloud_flat_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/cloud_flat_128.png -------------------------------------------------------------------------------- /images/cloud_white_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/cloud_white_128.png -------------------------------------------------------------------------------- /lib/devicons/devicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/devicons/devicons.eot -------------------------------------------------------------------------------- /lib/devicons/devicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/devicons/devicons.ttf -------------------------------------------------------------------------------- /lib/devicons/devicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/devicons/devicons.woff -------------------------------------------------------------------------------- /about/images/cloud-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/cloud-black.png -------------------------------------------------------------------------------- /about/images/cloud-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/cloud-gray.png -------------------------------------------------------------------------------- /about/images/code-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/code-black.png -------------------------------------------------------------------------------- /about/images/note-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/note-black.png -------------------------------------------------------------------------------- /about/images/thumb-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/thumb-black.png -------------------------------------------------------------------------------- /about/images/thumb-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/thumb-gray.png -------------------------------------------------------------------------------- /about/images/web_record.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/web_record.gif -------------------------------------------------------------------------------- /fonts/more/Baron_Italic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/more/Baron_Italic.otf -------------------------------------------------------------------------------- /lib/codemirror/doc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/codemirror/doc/logo.png -------------------------------------------------------------------------------- /images/buttons/donate_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/buttons/donate_small.png -------------------------------------------------------------------------------- /images/buttons/star_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/images/buttons/star_small.png -------------------------------------------------------------------------------- /lib/Font/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/Font/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /lib/codemirror/doc/yinyang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/codemirror/doc/yinyang.png -------------------------------------------------------------------------------- /fonts/more/Baron_Black_Italic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/more/Baron_Black_Italic.otf -------------------------------------------------------------------------------- /fonts/more/Baron_Bold_Italic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/more/Baron_Bold_Italic.otf -------------------------------------------------------------------------------- /lib/codemirror/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /npm-debug.log 3 | /test*.html 4 | .tern-* 5 | *~ 6 | *.swp 7 | .idea 8 | *.iml 9 | -------------------------------------------------------------------------------- /about/images/screen_recording_720.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/about/images/screen_recording_720.mp4 -------------------------------------------------------------------------------- /lib/Font/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/Font/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /lib/Font/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/Font/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /lib/Font/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/lib/Font/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /fonts/material/fonts/Material-Design-Iconic-Font.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/material/fonts/Material-Design-Iconic-Font.eot -------------------------------------------------------------------------------- /fonts/material/fonts/Material-Design-Iconic-Font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/material/fonts/Material-Design-Iconic-Font.ttf -------------------------------------------------------------------------------- /fonts/material/fonts/Material-Design-Iconic-Font.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaminsky11/codeyourcloud/HEAD/fonts/material/fonts/Material-Design-Iconic-Font.woff -------------------------------------------------------------------------------- /lib/codemirror/.gitattributes: -------------------------------------------------------------------------------- 1 | *.txt text 2 | *.js text 3 | *.html text 4 | *.md text 5 | *.json text 6 | *.yml text 7 | *.css text 8 | *.svg text 9 | -------------------------------------------------------------------------------- /lib/codemirror/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /demo 3 | /doc 4 | /test 5 | /test*.html 6 | /index.html 7 | /mode/*/*test.js 8 | /mode/*/*.html 9 | /mode/index.html 10 | .* 11 | -------------------------------------------------------------------------------- /lib/codemirror/addon/display/fullscreen.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-fullscreen { 2 | position: fixed; 3 | top: 0; left: 0; right: 0; bottom: 0; 4 | height: auto; 5 | z-index: 9; 6 | } 7 | -------------------------------------------------------------------------------- /lib/repl/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/codemirror/addon/search/matchesonscrollbar.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-search-match { 2 | background: gold; 3 | border-top: 1px solid orange; 4 | border-bottom: 1px solid orange; 5 | -moz-box-sizing: border-box; 6 | box-sizing: border-box; 7 | opacity: .5; 8 | } 9 | -------------------------------------------------------------------------------- /js/repl.js: -------------------------------------------------------------------------------- 1 | var repl = {}; 2 | repl.send = function(send){ 3 | repl.elem.contentWindow.postMessage(JSON.stringify(send), '*'); 4 | } 5 | repl.init = function(){ 6 | repl.elem = document.getElementById("repl"); 7 | } 8 | repl.run = function(text){ 9 | repl.send({ 10 | type: "run", 11 | data: text 12 | }); 13 | } -------------------------------------------------------------------------------- /lib/picker/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/bin/authors.sh: -------------------------------------------------------------------------------- 1 | # Combine existing list of authors with everyone known in git, sort, add header. 2 | tail --lines=+3 AUTHORS > AUTHORS.tmp 3 | git log --format='%aN' >> AUTHORS.tmp 4 | echo -e "List of CodeMirror contributors. Updated before every release.\n" > AUTHORS 5 | sort -u AUTHORS.tmp >> AUTHORS 6 | rm -f AUTHORS.tmp 7 | -------------------------------------------------------------------------------- /js/logic/logic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /mobile/mobile.js: -------------------------------------------------------------------------------- 1 | /* 2 | 1. link to websockets 3 | 2. check if logged in 4 | YES -> send to parent, handle it there 5 | a) send session info 6 | NO -> send to parent, handle it there 7 | 3. a change in title/text 8 | YES -> send it 9 | NO -> do nothing 10 | 4. collaborator change? 11 | YES -> send it 12 | NO -> do nothing 13 | 5. if asked for text 14 | a) get it 15 | b) send it 16 | 6. if asked for title 17 | a) get it 18 | b) send it 19 | */ 20 | -------------------------------------------------------------------------------- /lib/codemirror/test/lint.js: -------------------------------------------------------------------------------- 1 | var blint = require("blint"); 2 | 3 | ["mode", "lib", "addon", "keymap"].forEach(function(dir) { 4 | blint.checkDir(dir, { 5 | browser: true, 6 | allowedGlobals: ["CodeMirror", "define", "test", "requirejs"], 7 | blob: "// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: http:\/\/codemirror.net\/LICENSE\n\n" 8 | }); 9 | }); 10 | 11 | module.exports = {ok: blint.success()}; 12 | -------------------------------------------------------------------------------- /lib/codemirror/test/mode_test.css: -------------------------------------------------------------------------------- 1 | .mt-output .mt-token { 2 | border: 1px solid #ddd; 3 | white-space: pre; 4 | font-family: "Consolas", monospace; 5 | text-align: center; 6 | } 7 | 8 | .mt-output .mt-style { 9 | font-size: x-small; 10 | } 11 | 12 | .mt-output .mt-state { 13 | font-size: x-small; 14 | vertical-align: top; 15 | } 16 | 17 | .mt-output .mt-state-row { 18 | display: none; 19 | } 20 | 21 | .mt-state-unhide .mt-output .mt-state-row { 22 | display: table-row; 23 | } 24 | -------------------------------------------------------------------------------- /mobile/mobile.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/addon/fold/foldgutter.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-foldmarker { 2 | color: blue; 3 | text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px; 4 | font-family: arial; 5 | line-height: .3; 6 | cursor: pointer; 7 | } 8 | .CodeMirror-foldgutter { 9 | width: .7em; 10 | } 11 | .CodeMirror-foldgutter-open, 12 | .CodeMirror-foldgutter-folded { 13 | cursor: pointer; 14 | } 15 | .CodeMirror-foldgutter-open:after { 16 | content: "\25BE"; 17 | } 18 | .CodeMirror-foldgutter-folded:after { 19 | content: "\25B8"; 20 | } 21 | -------------------------------------------------------------------------------- /lib/keyboard/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jwerty", 3 | "version": "0.3.2", 4 | "description": "Awesome handling of keyboard events", 5 | "keywords": [ 6 | "key", 7 | "dom", 8 | "keyup", 9 | "KeyboardEvent", 10 | "addEventListener", 11 | "jQuery", 12 | "Zepto", 13 | "browser", 14 | "ender" 15 | ], 16 | "main": "./jwerty.js", 17 | "dependencies": { 18 | "jquery": ">=1.8" 19 | }, 20 | "devDependencies": { 21 | "jquery": ">=1.8", 22 | "zepto": "1.0.0rc1" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/repl/repl.js: -------------------------------------------------------------------------------- 1 | function _window_send(send){ 2 | window.top.postMessage(JSON.stringify(send), '*') 3 | } 4 | 5 | function _window_log(val){ 6 | _window_send({ 7 | type: "run", 8 | data: val 9 | }); 10 | } 11 | 12 | window.onmessage = function(e){ 13 | //e.data 14 | //things to run 15 | //console.log goes to _window_send 16 | var json = JSON.parse(e.data); 17 | if(json.type === "run"){ 18 | var to_run = json.data.replace("console.log","_window_log"); 19 | var res = window.eval(to_run); 20 | _window_log(res); 21 | } 22 | }; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | sail 2 | /sail 3 | .htaccess 4 | .htaccess 5 | server.js 6 | ssh.js 7 | comments.txt 8 | server 9 | /server 10 | /pub 11 | pub 12 | zohoverify 13 | node_modules 14 | /harvard 15 | harvard 16 | /poly 17 | poly 18 | /swift 19 | plus 20 | /plus 21 | /old 22 | old 23 | bower.json 24 | bower_components 25 | bot.js 26 | const.js 27 | /nodebot 28 | nodebot 29 | keybase.txt 30 | googlejs 31 | /googlejs 32 | mkaminsky11 33 | /mkaminsky11 34 | mkaminsky11.github.io 35 | /mkaminsky11.github.io 36 | .meteor 37 | /.meteor 38 | LOLore 39 | lolore 40 | /LOLore 41 | /lolore 42 | -------------------------------------------------------------------------------- /lib/codemirror/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 | } -------------------------------------------------------------------------------- /lib/codemirror/addon/dialog/dialog.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-dialog { 2 | position: absolute; 3 | left: 0; right: 0; 4 | background: inherit; 5 | z-index: 15; 6 | padding: .1em .8em; 7 | overflow: hidden; 8 | color: inherit; 9 | } 10 | 11 | .CodeMirror-dialog-top { 12 | border-bottom: 1px solid #eee; 13 | top: 0; 14 | } 15 | 16 | .CodeMirror-dialog-bottom { 17 | border-top: 1px solid #eee; 18 | bottom: 0; 19 | } 20 | 21 | .CodeMirror-dialog input { 22 | border: none; 23 | outline: none; 24 | background: transparent; 25 | width: 20em; 26 | color: inherit; 27 | font-family: monospace; 28 | } 29 | 30 | .CodeMirror-dialog button { 31 | font-size: 70%; 32 | } 33 | -------------------------------------------------------------------------------- /lib/auto/signal.min.js: -------------------------------------------------------------------------------- 1 | (function(mod){if(typeof exports=="object"&&typeof module=="object")return mod(exports);if(typeof define=="function"&&define.amd)return define(["exports"],mod);mod((self.tern||(self.tern={})).signal={})})(function(exports){function on(type,f){var handlers=this._handlers||(this._handlers=Object.create(null));(handlers[type]||(handlers[type]=[])).push(f)}function off(type,f){var arr=this._handlers&&this._handlers[type];if(arr)for(var i=0;i 13 | * @license http://keithamus.mit-license.org/ 14 | * @copyright Copyright © 2011, Keith Cirkel 15 | * 16 | */ 17 | (function ($, r) { 18 | var kk = r('jwerty').jwerty; 19 | $.ender({ 20 | key: kk.key, 21 | keyEvent: kk.event, 22 | isKey: kk.is, 23 | fireKey: kk.fire 24 | }); 25 | }(ender, require)); -------------------------------------------------------------------------------- /error/error_codes/e502.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 502 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 502

18 |
19 |

Go Back

20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /error/error_codes/e503.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 503 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 503

18 |
19 |

Go Back

20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /error/error_codes/e504.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 504 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 504

18 |
19 |

Go Back

20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /lib/codemirror/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codemirror", 3 | "version":"5.9.1", 4 | "main": "lib/codemirror.js", 5 | "description": "In-browser code editing made bearable", 6 | "license": "MIT", 7 | "directories": {"lib": "./lib"}, 8 | "scripts": {"test": "node ./test/run.js"}, 9 | "devDependencies": {"node-static": "0.6.0", 10 | "phantomjs": "1.9.2-5", 11 | "blint": ">=0.1.1"}, 12 | "bugs": "http://github.com/codemirror/CodeMirror/issues", 13 | "keywords": ["JavaScript", "CodeMirror", "Editor"], 14 | "homepage": "http://codemirror.net", 15 | "maintainers":[{"name": "Marijn Haverbeke", 16 | "email": "marijnh@gmail.com", 17 | "web": "http://marijnhaverbeke.nl"}], 18 | "repository": {"type": "git", 19 | "url": "https://github.com/codemirror/CodeMirror.git"} 20 | } 21 | -------------------------------------------------------------------------------- /error/standard.css: -------------------------------------------------------------------------------- 1 | html, 2 | body { 3 | margin:0; 4 | padding:0; 5 | height:100%; 6 | text-align: center; 7 | background-color: white; 8 | color: #607d8b; 9 | 10 | font-family: "Roboto"; 11 | } 12 | 13 | h1{ 14 | color: #0F1011; 15 | font-size: 35px; 16 | } 17 | 18 | h3{ 19 | margin-bottom: 20px; 20 | margin-top: 5px; 21 | color: #262B2F; 22 | font-size: 30px; 23 | } 24 | 25 | a{ 26 | margin-top: 20px; 27 | font-size: 20px; 28 | text-decoration: none; 29 | padding: 10px; 30 | font-weight: 500; 31 | color: white; 32 | background-color:#E74C3C; 33 | border-radius: 7px; 34 | } 35 | 36 | img{ 37 | display: block; 38 | margin-left: auto; 39 | margin-right: auto; 40 | } 41 | 42 | footer{ 43 | background-color: #ECF0F1; 44 | color: #7F8C8D; 45 | padding: 10px; 46 | position: fixed; 47 | bottom: 0; 48 | width: calc(100% - 20px); 49 | padding-top: 20px; 50 | padding-bottom: 20px; 51 | } -------------------------------------------------------------------------------- /error/error_codes/e404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 404 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 404

18 |

File Not Found

19 |
20 |

Go Back

21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /error/error_codes/e400.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 400 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 400

18 |

Bad Request: Synax Error

19 |
20 |

Go Back

21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /error/error_codes/e408.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 408 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 408

18 |

Your Request Timed Out

19 |
20 |

Go Back

21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /error/error_codes/e500.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 500 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 500

18 |

This Page Has Been Removed

19 |
20 |

Go Back

21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /lib/keyboard/jwerty.canBridge.js: -------------------------------------------------------------------------------- 1 | steal('can/control/modifier', './jwerty.js' function(Control){ 2 | 3 | /** 4 | * Add templated-event-binding with keydown specific bindings 5 | * into CanJS(http://www.canjs.us) JavaScript framework. 6 | * 7 | * For example, the following would bind to keydown on "CTRL+P". 8 | * 9 | * can.Control({ 10 | * "keydown:(ctrl+p)":function(elm,ev){ 11 | * console.log("ctrl+p was pressed"); 12 | * } 13 | * }); 14 | * 15 | */ 16 | 17 | // Hang on to original action 18 | var originalShifter = can.Control._shifter; 19 | 20 | // Redefine _isAction to handle new syntax 21 | can.extend( can.Control, { 22 | 23 | _shifter: function( context, name ) { 24 | var fn = originalShifter.apply( this, arguments ), 25 | parts = name.split(":"); 26 | 27 | if ( parts[1] && parts[0] === "keydown" ) { 28 | fn = jwerty.event(parts[1].replace(/\(|\)/gi,''), fn); 29 | } 30 | 31 | return fn; 32 | } 33 | }); 34 | 35 | }); -------------------------------------------------------------------------------- /error/error_codes/e401.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 401 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 401

18 |

Request Denied: Invalid Authentication

19 |
20 |

Go Back

21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /error/error_codes/e403.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Error: 403

18 |

You Are Forbidden From Viewing This File

19 |
20 |

Go Back

21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /lib/codemirror/addon/lint/yaml-lint.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 | // Depends on js-yaml.js from https://github.com/nodeca/js-yaml 15 | 16 | // declare global: jsyaml 17 | 18 | CodeMirror.registerHelper("lint", "yaml", function(text) { 19 | var found = []; 20 | try { jsyaml.load(text); } 21 | catch(e) { 22 | var loc = e.mark; 23 | found.push({ from: CodeMirror.Pos(loc.line, loc.column), to: CodeMirror.Pos(loc.line, loc.column), message: e.message }); 24 | } 25 | return found; 26 | }); 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /lib/picker/color.css: -------------------------------------------------------------------------------- 1 | .color-main{ 2 | width: 240px; 3 | height: 390px; 4 | position: relative; 5 | } 6 | .color-canvas{ 7 | position: absolute; 8 | width: 100%; 9 | height: 100%; 10 | top: 0; 11 | left: 0; 12 | z-index: 1; 13 | } 14 | .color-select{ 15 | position: absolute; 16 | padding: 5px; 17 | border: none; 18 | box-shadow: none; 19 | font-size: 12px; 20 | top: 160px; 21 | left: 20px; 22 | z-index: 3; 23 | width: calc(100% - 41px); 24 | border-radius: 2px; 25 | border: solid 2px #E8E8E8; 26 | color: #636060; 27 | background-color: #F3F2F2; 28 | height: 29px; 29 | 30 | } 31 | .color-input{ 32 | position: absolute; 33 | padding: 5px; 34 | border: none; 35 | box-shadow: none; 36 | font-size: 12px; 37 | top: 193px; 38 | left: 20px; 39 | z-index: 2; 40 | width: calc(100% - 55px); 41 | border-radius: 2px; 42 | border: solid 2px #E8E8E8; 43 | color: #636060; 44 | background-color: #F3F2F2; 45 | } -------------------------------------------------------------------------------- /lib/codemirror/addon/mode/multiplex_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 | CodeMirror.defineMode("markdown_with_stex", function(){ 6 | var inner = CodeMirror.getMode({}, "stex"); 7 | var outer = CodeMirror.getMode({}, "markdown"); 8 | 9 | var innerOptions = { 10 | open: '$', 11 | close: '$', 12 | mode: inner, 13 | delimStyle: 'delim', 14 | innerStyle: 'inner' 15 | }; 16 | 17 | return CodeMirror.multiplexingMode(outer, innerOptions); 18 | }); 19 | 20 | var mode = CodeMirror.getMode({}, "markdown_with_stex"); 21 | 22 | function MT(name) { 23 | test.mode( 24 | name, 25 | mode, 26 | Array.prototype.slice.call(arguments, 1), 27 | 'multiplexing'); 28 | } 29 | 30 | MT( 31 | "stexInsideMarkdown", 32 | "[strong **Equation:**] [delim&delim-open $][inner&tag \\pi][delim&delim-close $]"); 33 | })(); 34 | -------------------------------------------------------------------------------- /images/svg/load.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /lib/codemirror/test/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var ok = require("./lint").ok; 4 | 5 | var files = new (require('node-static').Server)(); 6 | 7 | var server = require('http').createServer(function (req, res) { 8 | req.addListener('end', function () { 9 | files.serve(req, res, function (err/*, result */) { 10 | if (err) { 11 | console.error(err); 12 | process.exit(1); 13 | } 14 | }); 15 | }).resume(); 16 | }).addListener('error', function (err) { 17 | throw err; 18 | }).listen(3000, function () { 19 | var childProcess = require('child_process'); 20 | var phantomjs = require("phantomjs"); 21 | var childArgs = [ 22 | require("path").join(__dirname, 'phantom_driver.js') 23 | ]; 24 | childProcess.execFile(phantomjs.path, childArgs, function (err, stdout, stderr) { 25 | server.close(); 26 | console.log(stdout); 27 | if (err) console.error(err); 28 | if (stderr) console.error(stderr); 29 | process.exit(err || stderr || !ok ? 1 : 0); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /lib/codemirror/addon/minimap/minimap.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-minimap{ 2 | position: absolute; 3 | top: 0; 4 | right: 0; 5 | width: 200px; 6 | height: 100%; 7 | overflow: hidden; 8 | z-index: 999; 9 | border-left: solid thin gray; 10 | } 11 | 12 | .CodeMirror-minimap-line{ 13 | position: relative !important; 14 | width: 100% !important; 15 | display: flex !important; 16 | overflow: hidden !important; 17 | height: 2px !important; 18 | margin-top: 0px !important; 19 | margin-bottom: 1px !important; 20 | font-size:2px !important; 21 | } 22 | .CodeMirror-minimap-line .cm-null{ 23 | background-color: white; 24 | } 25 | .CodeMirror-minimap-line > div, .CodeMirror-minimap-line > span > span, { 26 | height: 100%; 27 | position: relative; 28 | display: inline-block; 29 | } 30 | 31 | .mini-block{ 32 | width: 2px; 33 | background-color: white; 34 | } 35 | 36 | .mini-space{ 37 | width: 1px; 38 | background-color: transparent; 39 | } 40 | 41 | .mini-tab{ 42 | width: 3px; 43 | background-color: transparent; 44 | } -------------------------------------------------------------------------------- /lib/auto/signal.js: -------------------------------------------------------------------------------- 1 | (function(mod) { 2 | if (typeof exports == "object" && typeof module == "object") // CommonJS 3 | return mod(exports); 4 | if (typeof define == "function" && define.amd) // AMD 5 | return define(["exports"], mod); 6 | mod((self.tern || (self.tern = {})).signal = {}); // Plain browser env 7 | })(function(exports) { 8 | function on(type, f) { 9 | var handlers = this._handlers || (this._handlers = Object.create(null)); 10 | (handlers[type] || (handlers[type] = [])).push(f); 11 | } 12 | function off(type, f) { 13 | var arr = this._handlers && this._handlers[type]; 14 | if (arr) for (var i = 0; i < arr.length; ++i) 15 | if (arr[i] == f) { arr.splice(i, 1); break; } 16 | } 17 | function signal(type, a1, a2, a3, a4) { 18 | var arr = this._handlers && this._handlers[type]; 19 | if (arr) for (var i = 0; i < arr.length; ++i) arr[i].call(this, a1, a2, a3, a4); 20 | } 21 | 22 | exports.mixin = function(obj) { 23 | obj.on = on; obj.off = off; obj.signal = signal; 24 | return obj; 25 | }; 26 | }); 27 | -------------------------------------------------------------------------------- /js/logic/global.js: -------------------------------------------------------------------------------- 1 | /*============================== 2 | A file to store global variables 3 | ==============================*/ 4 | 5 | var CLIENT_ID = '953350323460-0i28dhkj1hljs8m9ggvm3fbiv79cude6.apps.googleusercontent.com'; 6 | var SCOPES = ['https://www.googleapis.com/auth/drive.install','https://www.googleapis.com/auth/drive']; 7 | 8 | var drive_loaded = false; 9 | var real_loaded = false; 10 | var doc_real; 11 | var current = ""; 12 | var text; 13 | var list; 14 | var chats; 15 | var binding; 16 | var title; 17 | 18 | var your_session_id = ""; 19 | var your_color = ""; 20 | var your_user_id = ""; 21 | var your_name = ""; 22 | var your_photo = ""; 23 | 24 | var logged_in = false; 25 | var current_file = ""; 26 | 27 | /*========== 28 | INIT 29 | ============*/ 30 | var all_saved = false; 31 | var was_error = false; 32 | var were_changes = false; 33 | var is_welcome = false; 34 | 35 | var init_needed = false; 36 | var init_loaded = false; 37 | var title_loaded = false; 38 | 39 | 40 | var myRootFolderId; 41 | var myEmail; 42 | var userName; 43 | var userUrl; 44 | var userId; -------------------------------------------------------------------------------- /lib/codemirror/test/phantom_driver.js: -------------------------------------------------------------------------------- 1 | var page = require('webpage').create(); 2 | 3 | page.open("http://localhost:3000/test/index.html", function (status) { 4 | if (status != "success") { 5 | console.log("page couldn't be loaded successfully"); 6 | phantom.exit(1); 7 | } 8 | waitFor(function () { 9 | return page.evaluate(function () { 10 | var output = document.getElementById('status'); 11 | if (!output) { return false; } 12 | return (/^(\d+ failures?|all passed)/i).test(output.innerText); 13 | }); 14 | }, function () { 15 | var failed = page.evaluate(function () { return window.failed; }); 16 | var output = page.evaluate(function () { 17 | return document.getElementById('output').innerText + "\n" + 18 | document.getElementById('status').innerText; 19 | }); 20 | console.log(output); 21 | phantom.exit(failed > 0 ? 1 : 0); 22 | }); 23 | }); 24 | 25 | function waitFor (test, cb) { 26 | if (test()) { 27 | cb(); 28 | } else { 29 | setTimeout(function () { waitFor(test, cb); }, 250); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /about/images/briefcase.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /lib/codemirror/addon/lint/json-lint.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // Depends on jsonlint.js from https://github.com/zaach/jsonlint 5 | 6 | // declare global: jsonlint 7 | 8 | (function(mod) { 9 | if (typeof exports == "object" && typeof module == "object") // CommonJS 10 | mod(require("../../lib/codemirror")); 11 | else if (typeof define == "function" && define.amd) // AMD 12 | define(["../../lib/codemirror"], mod); 13 | else // Plain browser env 14 | mod(CodeMirror); 15 | })(function(CodeMirror) { 16 | "use strict"; 17 | 18 | CodeMirror.registerHelper("lint", "json", function(text) { 19 | var found = []; 20 | jsonlint.parseError = function(str, hash) { 21 | var loc = hash.loc; 22 | found.push({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column), 23 | to: CodeMirror.Pos(loc.last_line - 1, loc.last_column), 24 | message: str}); 25 | }; 26 | try { jsonlint.parse(text); } 27 | catch(e) {} 28 | return found; 29 | }); 30 | 31 | }); 32 | -------------------------------------------------------------------------------- /mobile/global.js: -------------------------------------------------------------------------------- 1 | /*============================== 2 | A file to store global variables 3 | ==============================*/ 4 | 5 | var CLIENT_ID = '953350323460-0i28dhkj1hljs8m9ggvm3fbiv79cude6.apps.googleusercontent.com'; 6 | var SCOPES = ['https://www.googleapis.com/auth/drive.install','https://www.googleapis.com/auth/drive']; 7 | 8 | var drive_loaded = false; 9 | var real_loaded = false; 10 | var doc_real; 11 | var current = ""; 12 | var text; 13 | var list; 14 | var chats; 15 | var binding; 16 | var title; 17 | 18 | var your_session_id = ""; 19 | var your_color = ""; 20 | var your_user_id = ""; 21 | var your_name = ""; 22 | var your_photo = ""; 23 | 24 | var logged_in = false; 25 | var current = ""; 26 | 27 | /*========== 28 | INIT 29 | ============*/ 30 | var all_saved = false; 31 | var was_error = false; 32 | var were_changes = false; 33 | var is_welcome = false; 34 | 35 | var init_needed = false; 36 | var init_loaded = false; 37 | var title_loaded = false; 38 | 39 | 40 | var myRootFolderId; 41 | var myEmail; 42 | var userName; 43 | var userUrl; 44 | var userId; 45 | 46 | var saveas_d = ""; 47 | var saveas_t = ""; -------------------------------------------------------------------------------- /lib/codemirror/addon/edit/trailingspace.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 | CodeMirror.defineOption("showTrailingSpace", false, function(cm, val, prev) { 13 | if (prev == CodeMirror.Init) prev = false; 14 | if (prev && !val) 15 | cm.removeOverlay("trailingspace"); 16 | else if (!prev && val) 17 | cm.addOverlay({ 18 | token: function(stream) { 19 | for (var l = stream.string.length, i = l; i && /\s/.test(stream.string.charAt(i - 1)); --i) {} 20 | if (i > stream.pos) { stream.pos = i; return null; } 21 | stream.pos = l; 22 | return "trailingspace"; 23 | }, 24 | name: "trailingspace" 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2015 by Marijn Haverbeke and others 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /about/lib/fit.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (function( $ ){ 5 | 6 | 7 | 8 | $.fn.fitText = function( kompressor, options ) { 9 | 10 | 11 | 12 | // Setup options 13 | 14 | var compressor = kompressor || 1, 15 | 16 | settings = $.extend({ 17 | 18 | 'minFontSize' : Number.NEGATIVE_INFINITY, 19 | 20 | 'maxFontSize' : Number.POSITIVE_INFINITY 21 | 22 | }, options); 23 | 24 | 25 | 26 | return this.each(function(){ 27 | 28 | 29 | 30 | // Store the object 31 | 32 | var $this = $(this); 33 | 34 | 35 | 36 | // Resizer() resizes items based on the object width divided by the compressor * 10 37 | 38 | var resizer = function () { 39 | 40 | $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); 41 | 42 | }; 43 | 44 | 45 | 46 | // Call once to set. 47 | 48 | resizer(); 49 | 50 | 51 | 52 | // Call on resize. Opera debounces their resize by default. 53 | 54 | $(window).on('resize.fittext orientationchange.fittext', resizer); 55 | 56 | 57 | 58 | }); 59 | 60 | 61 | 62 | }; 63 | 64 | 65 | 66 | })( jQuery ); 67 | -------------------------------------------------------------------------------- /js/images.js: -------------------------------------------------------------------------------- 1 | var images = {}; 2 | 3 | images.ext = ["png","jpg","jpeg","gif","tiff"]; 4 | images.vide = ["mp3","mp4"]; 5 | 6 | images.init = function(id){ 7 | drive.getFile(id, function(resp){ 8 | //https://doc-0o-34-docs.googleusercontent.com/docs/securesc/5bfhdfjhb08jjkevjs6gmvs27afnj8mn/5uus0edh2velrig75kjpkdj6ltg7kmum/1429380000000/09572991516856320887/09572991516856320887/0ByWSHHBN-zyoeE1lX29JSzBFdFE 9 | //?e=download&gd=true 10 | $(".codemirror-container[data-fileid=\""+id+"\"]").append("
"); 11 | $(".codemirror-container[data-fileid=\""+id+"\"] .codemirror-image").css("background-image","url(\""+images.getImageUrl(resp.downloadUrl)+"\")"); 12 | }); 13 | } 14 | 15 | images.isImage = function(ext){ 16 | try{ 17 | ext = ext.toLowerCase(); 18 | if(images.ext.indexOf(ext) !== -1){ 19 | return true; 20 | } 21 | }catch(e){} 22 | return false; 23 | }; 24 | 25 | images.getImageUrl = function(downloadUrl){ 26 | //downloadUrl 27 | //https://doc-08-34-docs.googleusercontent.com/docs/securesc/5bfhdfjhb08jjkevjs6gmvs27afnj8mn/mnndq44jcfv9eu02j2jbkufc9chh49mo/1445205600000/09572991516856320887/09572991516856320887/0ByWSHHBN-zyoX2Vtc3FCanNJdkE?e=download&gd=true 28 | return downloadUrl.split("?")[0]; 29 | } -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /js/logic/init.js: -------------------------------------------------------------------------------- 1 | 2 | function loadDrive(){ 3 | gapi.auth.authorize({'client_id': CLIENT_ID, 'scope': SCOPES.join(' '), 'immediate': true},handleAuth); 4 | } 5 | //handles result 6 | function handleAuth(authResult){ 7 | if (!authResult.error) { 8 | loadClient(); 9 | } 10 | else { 11 | } 12 | } 13 | 14 | function loadClient() { 15 | 16 | current_file = getParameterByName("id"); 17 | 18 | gapi.client.load('drive', 'v2', load_drive); 19 | gapi.load("auth:client,drive-realtime", load_real); 20 | 21 | } 22 | 23 | function load_drive(){ 24 | setInterval(function(){ 25 | refreshToken(); 26 | },3000000); 27 | drive_loaded = true; 28 | if(real_loaded){ 29 | init(); 30 | } 31 | } 32 | 33 | function refreshToken() { 34 | gapi.auth.authorize({'client_id': CLIENT_ID, 'scope': SCOPES.join(' '), 'immediate':true},function(result){ 35 | 36 | }); 37 | } 38 | 39 | function load_real(){ 40 | real_loaded = true; 41 | if(drive_loaded){ 42 | init(); 43 | } 44 | } 45 | 46 | 47 | function init_realtime(model){ 48 | init_needed = true; 49 | getContentOfFile(current_file, model); 50 | } 51 | 52 | function errorFn(error){ 53 | was_error = true; 54 | console.log(error); 55 | } 56 | 57 | 58 | function init(){ 59 | gapi.drive.realtime.load(current_file, loaded_realtime, init_realtime, errorFn); 60 | } -------------------------------------------------------------------------------- /lib/codemirror/addon/lint/css-lint.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // Depends on csslint.js from https://github.com/stubbornella/csslint 5 | 6 | // declare global: CSSLint 7 | 8 | (function(mod) { 9 | if (typeof exports == "object" && typeof module == "object") // CommonJS 10 | mod(require("../../lib/codemirror")); 11 | else if (typeof define == "function" && define.amd) // AMD 12 | define(["../../lib/codemirror"], mod); 13 | else // Plain browser env 14 | mod(CodeMirror); 15 | })(function(CodeMirror) { 16 | "use strict"; 17 | 18 | CodeMirror.registerHelper("lint", "css", function(text) { 19 | var found = []; 20 | if (!window.CSSLint) return found; 21 | var results = CSSLint.verify(text), messages = results.messages, message = null; 22 | for ( var i = 0; i < messages.length; i++) { 23 | message = messages[i]; 24 | var startLine = message.line -1, endLine = message.line -1, startCol = message.col -1, endCol = message.col; 25 | found.push({ 26 | from: CodeMirror.Pos(startLine, startCol), 27 | to: CodeMirror.Pos(endLine, endCol), 28 | message: message.message, 29 | severity : message.type 30 | }); 31 | } 32 | return found; 33 | }); 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /about/images/cloud-check.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /about/images/eye.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /lib/codemirror/addon/tern/worker.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // declare global: tern, server 5 | 6 | var server; 7 | 8 | this.onmessage = function(e) { 9 | var data = e.data; 10 | switch (data.type) { 11 | case "init": return startServer(data.defs, data.plugins, data.scripts); 12 | case "add": return server.addFile(data.name, data.text); 13 | case "del": return server.delFile(data.name); 14 | case "req": return server.request(data.body, function(err, reqData) { 15 | postMessage({id: data.id, body: reqData, err: err && String(err)}); 16 | }); 17 | case "getFile": 18 | var c = pending[data.id]; 19 | delete pending[data.id]; 20 | return c(data.err, data.text); 21 | default: throw new Error("Unknown message type: " + data.type); 22 | } 23 | }; 24 | 25 | var nextId = 0, pending = {}; 26 | function getFile(file, c) { 27 | postMessage({type: "getFile", name: file, id: ++nextId}); 28 | pending[nextId] = c; 29 | } 30 | 31 | function startServer(defs, plugins, scripts) { 32 | if (scripts) importScripts.apply(null, scripts); 33 | 34 | server = new tern.Server({ 35 | getFile: getFile, 36 | async: true, 37 | defs: defs, 38 | plugins: plugins 39 | }); 40 | } 41 | 42 | this.console = { 43 | log: function(v) { postMessage({type: "debug", message: v}); } 44 | }; 45 | -------------------------------------------------------------------------------- /lib/messenger/js/messenger-theme-flat.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var $, FlatMessage, spinner_template, 3 | __hasProp = {}.hasOwnProperty, 4 | __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; 5 | 6 | $ = jQuery; 7 | 8 | spinner_template = '
\n \n \n \n \n \n \n
'; 9 | 10 | FlatMessage = (function(_super) { 11 | 12 | __extends(FlatMessage, _super); 13 | 14 | function FlatMessage() { 15 | return FlatMessage.__super__.constructor.apply(this, arguments); 16 | } 17 | 18 | FlatMessage.prototype.template = function(opts) { 19 | var $message; 20 | $message = FlatMessage.__super__.template.apply(this, arguments); 21 | $message.append($(spinner_template)); 22 | return $message; 23 | }; 24 | 25 | return FlatMessage; 26 | 27 | })(window.Messenger.Message); 28 | 29 | window.Messenger.themes.flat = { 30 | Message: FlatMessage 31 | }; 32 | 33 | }).call(this); 34 | -------------------------------------------------------------------------------- /js/broadcast.js: -------------------------------------------------------------------------------- 1 | var broadcast = {}; 2 | broadcast.init = function(){ 3 | //github already shown... 4 | var val = localStorage.getItem("cyc-donate") 5 | if(val === null){ 6 | localStorage.setItem("cyc-donate", 0); 7 | $("#broadcast #donate").css("display","flex"); 8 | broadcast.show(); 9 | } 10 | else if(val === "0"){ 11 | $("#broadcast #donate").css("display","flex"); 12 | broadcast.show(); 13 | localStorage.setItem("cyc-donate", 8); //countdown! 14 | } 15 | else{ 16 | localStorage.setItem("cyc-donate", val - 1); 17 | } 18 | }; 19 | 20 | broadcast.show = function(){ 21 | if($("#broadcast").css("display") === "none"){ 22 | $("#broadcast").css("opacity",0).css("display","block"); 23 | window.setTimeout(function(){ 24 | $("#broadcast").velocity("transition.bounceUpIn"); 25 | }, 500); 26 | } 27 | else{ 28 | $("#broadcast").velocity("callout.bounce"); 29 | } 30 | }; 31 | 32 | broadcast.close = function(){ 33 | $("#broadcast").velocity("transition.bounceDownOut",{ 34 | complete: function(){ 35 | $("#broadcast").css("display","none"); 36 | } 37 | }); 38 | }; 39 | 40 | broadcast.minimapWarn = function(){ 41 | 42 | } 43 | 44 | broadcast.reset = function(){ 45 | $("#broadcast > div").css("display","none"); 46 | } 47 | 48 | broadcast.ad_ok = function(){ 49 | connection.send(JSON.stringify({type:"survey",vote:"yes"})); 50 | } 51 | broadcast.ad_no = function(){ 52 | connection.send(JSON.stringify({type:"survey",vote:"no"})); 53 | } 54 | -------------------------------------------------------------------------------- /lib/messenger/js/messenger-theme-future.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var $, FutureMessage, spinner_template, 3 | __hasProp = {}.hasOwnProperty, 4 | __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; 5 | 6 | $ = jQuery; 7 | 8 | spinner_template = '
\n \n \n \n \n \n \n
'; 9 | 10 | FutureMessage = (function(_super) { 11 | 12 | __extends(FutureMessage, _super); 13 | 14 | function FutureMessage() { 15 | return FutureMessage.__super__.constructor.apply(this, arguments); 16 | } 17 | 18 | FutureMessage.prototype.template = function(opts) { 19 | var $message; 20 | $message = FutureMessage.__super__.template.apply(this, arguments); 21 | $message.append($(spinner_template)); 22 | return $message; 23 | }; 24 | 25 | return FutureMessage; 26 | 27 | })(window.Messenger.Message); 28 | 29 | window.Messenger.themes.future = { 30 | Message: FutureMessage 31 | }; 32 | 33 | }).call(this); 34 | -------------------------------------------------------------------------------- /lib/codemirror/addon/lint/coffeescript-lint.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js 5 | 6 | // declare global: coffeelint 7 | 8 | (function(mod) { 9 | if (typeof exports == "object" && typeof module == "object") // CommonJS 10 | mod(require("../../lib/codemirror")); 11 | else if (typeof define == "function" && define.amd) // AMD 12 | define(["../../lib/codemirror"], mod); 13 | else // Plain browser env 14 | mod(CodeMirror); 15 | })(function(CodeMirror) { 16 | "use strict"; 17 | 18 | CodeMirror.registerHelper("lint", "coffeescript", function(text) { 19 | var found = []; 20 | var parseError = function(err) { 21 | var loc = err.lineNumber; 22 | found.push({from: CodeMirror.Pos(loc-1, 0), 23 | to: CodeMirror.Pos(loc, 0), 24 | severity: err.level, 25 | message: err.message}); 26 | }; 27 | try { 28 | var res = coffeelint.lint(text); 29 | for(var i = 0; i < res.length; i++) { 30 | parseError(res[i]); 31 | } 32 | } catch(e) { 33 | found.push({from: CodeMirror.Pos(e.location.first_line, 0), 34 | to: CodeMirror.Pos(e.location.last_line, e.location.last_column), 35 | severity: 'error', 36 | message: e.message}); 37 | } 38 | return found; 39 | }); 40 | 41 | }); 42 | -------------------------------------------------------------------------------- /lib/codemirror/demo/closetag.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Close-Tag Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 30 | 31 |
32 |

Close-Tag Demo

33 |
34 | 35 | 41 |
42 | -------------------------------------------------------------------------------- /lib/codemirror/addon/runmode/colorize.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("./runmode")); 7 | else if (typeof define == "function" && define.amd) // AMD 8 | define(["../../lib/codemirror", "./runmode"], mod); 9 | else // Plain browser env 10 | mod(CodeMirror); 11 | })(function(CodeMirror) { 12 | "use strict"; 13 | 14 | var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/; 15 | 16 | function textContent(node, out) { 17 | if (node.nodeType == 3) return out.push(node.nodeValue); 18 | for (var ch = node.firstChild; ch; ch = ch.nextSibling) { 19 | textContent(ch, out); 20 | if (isBlock.test(node.nodeType)) out.push("\n"); 21 | } 22 | } 23 | 24 | CodeMirror.colorize = function(collection, defaultMode) { 25 | if (!collection) collection = document.body.getElementsByTagName("pre"); 26 | 27 | for (var i = 0; i < collection.length; ++i) { 28 | var node = collection[i]; 29 | var mode = node.getAttribute("data-lang") || defaultMode; 30 | if (!mode) continue; 31 | 32 | var text = []; 33 | textContent(node, text); 34 | node.innerHTML = ""; 35 | CodeMirror.runMode(text.join(""), mode, node); 36 | 37 | node.className += " cm-s-default"; 38 | } 39 | }; 40 | }); 41 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
36 | 37 | 42 | 43 |

MIME types 44 | defined: application/pgp, application/pgp-keys, application/pgp-signature

45 | 46 |
47 | -------------------------------------------------------------------------------- /lib/codemirror/README.md: -------------------------------------------------------------------------------- 1 | # CodeMirror 2 | [![Build Status](https://travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror) 3 | [![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.org/package/codemirror) 4 | [![Join the chat at https://gitter.im/codemirror/CodeMirror](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/codemirror/CodeMirror) 5 | [Funding status: ![maintainer happiness](https://marijnhaverbeke.nl/fund/status_s.png?again)](https://marijnhaverbeke.nl/fund/) 6 | 7 | CodeMirror is a versatile text editor implemented in JavaScript for 8 | the browser. It is specialized for editing code, and comes with over 9 | 100 language modes and various addons that implement more advanced 10 | editing functionality. 11 | 12 | A rich programming API and a CSS theming system are available for 13 | customizing CodeMirror to fit your application, and extending it with 14 | new functionality. 15 | 16 | You can find more information (and the 17 | [manual](http://codemirror.net/doc/manual.html)) on the [project 18 | page](http://codemirror.net). For questions and discussion, use the 19 | [discussion forum](https://discuss.codemirror.net/). 20 | 21 | See 22 | [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md) 23 | for contributing guidelines. 24 | 25 | The CodeMirror community aims to be welcoming to everybody. We use the 26 | [Contributor Covenant 27 | (1.1)](http://contributor-covenant.org/version/1/1/0/) as our code of 28 | conduct. 29 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/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 | 39 |
40 | 41 | 44 |

MIME types defined: text/n-triples.

45 |
46 | -------------------------------------------------------------------------------- /lib/codemirror/mode/twig/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Twig mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Twig mode

27 |
40 | 45 |
46 | -------------------------------------------------------------------------------- /lib/codemirror/demo/resize.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Autoresize Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 28 | 29 |
30 |

Autoresize Demo

31 |
37 | 38 |

By setting an editor's height style 39 | to auto and giving 40 | the viewportMargin 41 | a value of Infinity, CodeMirror can be made to 42 | automatically resize to fit its content.

43 | 44 | 50 | 51 |
52 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
29 | 30 | 37 | 38 |

MIME types defined: text/x-spreadsheet.

39 | 40 |

The Spreadsheet Mode

41 |

Created by Robert Plummer

42 |
43 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/demo/matchtags.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Tag Matcher Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 27 | 28 |
29 |

Tag Matcher Demo

30 | 31 | 32 |
33 | 34 | 44 | 45 |

Put the cursor on or inside a pair of tags to highlight them. 46 | Press Ctrl-J to jump to the tag that matches the one under the 47 | cursor.

48 |
49 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
39 | 40 | 43 | 44 |

MIME types defined: message/http.

45 |
46 | -------------------------------------------------------------------------------- /lib/codemirror/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("double_block", 29 | "[keyword for] (;;)", 30 | " [keyword for] (;;)", 31 | " [variable x][operator ++];", 32 | "[keyword return];"); 33 | 34 | var mode_cpp = CodeMirror.getMode({indentUnit: 2}, "text/x-c++src"); 35 | function MTCPP(name) { test.mode(name, mode_cpp, Array.prototype.slice.call(arguments, 1)); } 36 | 37 | MTCPP("cpp14_literal", 38 | "[number 10'000];", 39 | "[number 0b10'000];", 40 | "[number 0x10'000];", 41 | "[string '100000'];"); 42 | })(); 43 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /intro.txt: -------------------------------------------------------------------------------- 1 | ________ ________ ________ _______ 2 | |\ ____\|\ __ \|\ ___ \|\ ___ \ 3 | \ \ \___|\ \ \|\ \ \ \_|\ \ \ __/| 4 | \ \ \ \ \ \\\ \ \ \ \\ \ \ \_|/__ 5 | \ \ \____\ \ \\\ \ \ \_\\ \ \ \_|\ \ 6 | \ \_______\ \_______\ \_______\ \_______\ 7 | \|_______|\|_______|\|_______|\|_______| 8 | 9 | 10 | 11 | ___ ___ ________ ___ ___ ________ 12 | |\ \ / /|\ __ \|\ \|\ \|\ __ \ 13 | \ \ \/ / | \ \|\ \ \ \\\ \ \ \|\ \ 14 | \ \ / / \ \ \\\ \ \ \\\ \ \ _ _\ 15 | \/ / / \ \ \\\ \ \ \\\ \ \ \\ \| 16 | __/ / / \ \_______\ \_______\ \__\\ _\ 17 | |\___/ / \|_______|\|_______|\|__|\|__| 18 | \|___|/ 19 | 20 | 21 | ________ ___ ________ ___ ___ ________ 22 | |\ ____\|\ \ |\ __ \|\ \|\ \|\ ___ \ 23 | \ \ \___|\ \ \ \ \ \|\ \ \ \\\ \ \ \_|\ \ 24 | \ \ \ \ \ \ \ \ \\\ \ \ \\\ \ \ \ \\ \ 25 | \ \ \____\ \ \____\ \ \\\ \ \ \\\ \ \ \_\\ \ 26 | \ \_______\ \_______\ \_______\ \_______\ \_______\ 27 | \|_______|\|_______|\|_______|\|_______|\|_______| 28 | 29 | 30 | A free, in-browser code editor for Google Drive and OneDrive! Check us out at: 31 | 32 | github.com/mkaminsky11/codeyourcloud.com 33 | 34 | To get started, open a file by clicking the folder icon in the top-right corner or by opening the sidebar -------------------------------------------------------------------------------- /lib/codemirror/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 | 47 |
48 | 49 | 55 | 56 |

MIME types defined: text/x-solr.

57 |
58 | -------------------------------------------------------------------------------- /lib/codemirror/demo/rulers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Ruler Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 25 | 26 |
27 |

Ruler Demo

28 | 29 | 44 | 45 |

Demonstration of 46 | the rulers addon, which 47 | displays vertical lines at given column offsets.

48 | 49 |
50 | -------------------------------------------------------------------------------- /lib/codemirror/mode/ecl/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: ECL mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

ECL mode

27 |
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 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
45 | 46 | 51 | 52 |

MIME types defined: text/x-z80, text/x-ez80.

53 |
54 | -------------------------------------------------------------------------------- /lib/codemirror/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 | 50 |

MIME type defined: text/x-oz.

51 | 52 | 59 |
60 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /js/ready.js: -------------------------------------------------------------------------------- 1 | /*=== 2 | * CODEYOURCLOUD 3 | ===*/ 4 | 5 | //============= 6 | //INITIALIZE WELCOME EDITOR 7 | //============ 8 | 9 | var e = CodeMirror(document.getElementById("welcome"),{ 10 | lineNumbers: settings.state.lineNumbers, 11 | mode: "text", 12 | theme: settings.state.theme, 13 | lineWrapping: settings.state.lineWrap, 14 | indentUnit: settings.state.indentUnit, 15 | indentWithTabs: settings.state.indentWithTabs, 16 | foldGutter: true, 17 | gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"], 18 | minimap: settings.state.minimap, 19 | tabSize: settings.state.tabSize 20 | }); 21 | //sets the introduction text 22 | e.setValue(introText); 23 | addEditor(e, "welcome", true); 24 | 25 | current_file = "welcome"; 26 | editor().on("beforeSelectionChange", function(cm, selection){}); 27 | editor().setOption("autoCloseBrackets",true); //TODO: make this optional 28 | editor().setOption("matchBrackets",true); 29 | $(".CodeMirror").css("line-height","1"); 30 | adjust(); 31 | editor().refresh(); //so that it fits the div wall 32 | 33 | $(document).ready(function(){ 34 | console.log("Greetings, developer! Have you checked out Code Your Cloud on Github yet? You should. https://github.com/mkaminsky11/codeyourcloud"); 35 | 36 | //============= 37 | //INIT 38 | //============= 39 | settings.init(); 40 | broadcast.init(); 41 | connect.init(); 42 | context.init(); 43 | snippets.init(); 44 | repl.init(); 45 | 46 | //=========== 47 | //SAVE DIALOG 48 | //=========== 49 | window.onbeforeunload = function(){ 50 | if(manager.allSaved() === false){ 51 | return "You have unsaved work. Do you really want to quit?" 52 | } 53 | }; 54 | }); 55 | -------------------------------------------------------------------------------- /lib/codemirror/addon/scroll/simplescrollbars.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div { 2 | position: absolute; 3 | background: #ccc; 4 | -moz-box-sizing: border-box; 5 | box-sizing: border-box; 6 | border: 1px solid #bbb; 7 | border-radius: 2px; 8 | } 9 | 10 | .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical { 11 | position: absolute; 12 | z-index: 6; 13 | background: #eee; 14 | } 15 | 16 | .CodeMirror-simplescroll-horizontal { 17 | bottom: 0; left: 0; 18 | height: 8px; 19 | } 20 | .CodeMirror-simplescroll-horizontal div { 21 | bottom: 0; 22 | height: 100%; 23 | } 24 | 25 | .CodeMirror-simplescroll-vertical { 26 | right: 0; top: 0; 27 | width: 8px; 28 | } 29 | .CodeMirror-simplescroll-vertical div { 30 | right: 0; 31 | width: 100%; 32 | } 33 | 34 | 35 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler { 36 | display: none; 37 | } 38 | 39 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div { 40 | position: absolute; 41 | background: #bcd; 42 | border-radius: 3px; 43 | } 44 | 45 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical { 46 | position: absolute; 47 | z-index: 6; 48 | } 49 | 50 | .CodeMirror-overlayscroll-horizontal { 51 | bottom: 0; left: 0; 52 | height: 6px; 53 | } 54 | .CodeMirror-overlayscroll-horizontal div { 55 | bottom: 0; 56 | height: 100%; 57 | } 58 | 59 | .CodeMirror-overlayscroll-vertical { 60 | right: 0; top: 0; 61 | width: 6px; 62 | } 63 | .CodeMirror-overlayscroll-vertical div { 64 | right: 0; 65 | width: 100%; 66 | } 67 | -------------------------------------------------------------------------------- /lib/codemirror/addon/display/fullscreen.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.defineOption("fullScreen", false, function(cm, val, old) { 15 | if (old == CodeMirror.Init) old = false; 16 | if (!old == !val) return; 17 | if (val) setFullscreen(cm); 18 | else setNormal(cm); 19 | }); 20 | 21 | function setFullscreen(cm) { 22 | var wrap = cm.getWrapperElement(); 23 | cm.state.fullScreenRestore = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset, 24 | width: wrap.style.width, height: wrap.style.height}; 25 | wrap.style.width = ""; 26 | wrap.style.height = "auto"; 27 | wrap.className += " CodeMirror-fullscreen"; 28 | document.documentElement.style.overflow = "hidden"; 29 | cm.refresh(); 30 | } 31 | 32 | function setNormal(cm) { 33 | var wrap = cm.getWrapperElement(); 34 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, ""); 35 | document.documentElement.style.overflow = ""; 36 | var info = cm.state.fullScreenRestore; 37 | wrap.style.width = info.width; wrap.style.height = info.height; 38 | window.scrollTo(info.scrollLeft, info.scrollTop); 39 | cm.refresh(); 40 | } 41 | }); 42 | -------------------------------------------------------------------------------- /lib/codemirror/bin/source-highlight: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | // Simple command-line code highlighting tool. Reads code from stdin, 4 | // spits html to stdout. For example: 5 | // 6 | // echo 'function foo(a) { return a; }' | bin/source-highlight -s javascript 7 | // bin/source-highlight -s 8 | 9 | var fs = require("fs"); 10 | 11 | var CodeMirror = require("../addon/runmode/runmode.node.js"); 12 | require("../mode/meta.js"); 13 | 14 | var sPos = process.argv.indexOf("-s"); 15 | if (sPos == -1 || sPos == process.argv.length - 1) { 16 | console.error("Usage: source-highlight -s language"); 17 | process.exit(1); 18 | } 19 | var lang = process.argv[sPos + 1].toLowerCase(), modeName = lang; 20 | CodeMirror.modeInfo.forEach(function(info) { 21 | if (info.mime == lang) { 22 | modeName = info.mode; 23 | } else if (info.name.toLowerCase() == lang) { 24 | modeName = info.mode; 25 | lang = info.mime; 26 | } 27 | }); 28 | 29 | if (!CodeMirror.modes[modeName]) 30 | require("../mode/" + modeName + "/" + modeName + ".js"); 31 | 32 | function esc(str) { 33 | return str.replace(/[<&]/g, function(ch) { return ch == "&" ? "&" : "<"; }); 34 | } 35 | 36 | var code = fs.readFileSync("/dev/stdin", "utf8"); 37 | var curStyle = null, accum = ""; 38 | function flush() { 39 | if (curStyle) process.stdout.write("" + esc(accum) + ""); 40 | else process.stdout.write(esc(accum)); 41 | } 42 | 43 | CodeMirror.runMode(code, lang, function(text, style) { 44 | if (style != curStyle) { 45 | flush(); 46 | curStyle = style; accum = text; 47 | } else { 48 | accum += text; 49 | } 50 | }); 51 | flush(); 52 | -------------------------------------------------------------------------------- /lib/codemirror/mode/turtle/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Turtle mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Turtle mode

27 |
41 | 47 | 48 |

MIME types defined: text/turtle.

49 | 50 |
51 | -------------------------------------------------------------------------------- /lib/codemirror/addon/scroll/scrollpastend.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.defineOption("scrollPastEnd", false, function(cm, val, old) { 15 | if (old && old != CodeMirror.Init) { 16 | cm.off("change", onChange); 17 | cm.off("refresh", updateBottomMargin); 18 | cm.display.lineSpace.parentNode.style.paddingBottom = ""; 19 | cm.state.scrollPastEndPadding = null; 20 | } 21 | if (val) { 22 | cm.on("change", onChange); 23 | cm.on("refresh", updateBottomMargin); 24 | updateBottomMargin(cm); 25 | } 26 | }); 27 | 28 | function onChange(cm, change) { 29 | if (CodeMirror.changeEnd(change).line == cm.lastLine()) 30 | updateBottomMargin(cm); 31 | } 32 | 33 | function updateBottomMargin(cm) { 34 | var padding = ""; 35 | if (cm.lineCount() > 1) { 36 | var totalH = cm.display.scroller.clientHeight - 30, 37 | lastLineH = cm.getLineHandle(cm.lastLine()).height; 38 | padding = (totalH - lastLineH) + "px"; 39 | } 40 | if (cm.state.scrollPastEndPadding != padding) { 41 | cm.state.scrollPastEndPadding = padding; 42 | cm.display.lineSpace.parentNode.style.paddingBottom = padding; 43 | cm.setSize(); 44 | } 45 | } 46 | }); 47 | -------------------------------------------------------------------------------- /lib/codemirror/demo/placeholder.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Placeholder demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 28 | 29 |
30 |

Placeholder demo

31 |
32 | 33 |

The placeholder 34 | plug-in adds an option placeholder that can be set to 35 | make text appear in the editor when it is empty and not focused. 36 | If the source textarea has a placeholder attribute, 37 | it will automatically be inherited.

38 | 39 | 44 | 45 |
46 | -------------------------------------------------------------------------------- /lib/codemirror/demo/marker.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Breakpoint Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 27 | 28 |
29 |

Breakpoint Demo

30 |
47 | 48 |

Click the line-number gutter to add or remove 'breakpoints'.

49 | 50 | 51 | 52 |
53 | -------------------------------------------------------------------------------- /lib/codemirror/addon/lint/html-lint.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // Depends on htmlhint.js from http://htmlhint.com/js/htmlhint.js 5 | 6 | // declare global: HTMLHint 7 | 8 | (function(mod) { 9 | if (typeof exports == "object" && typeof module == "object") // CommonJS 10 | mod(require("../../lib/codemirror"), require("htmlhint")); 11 | else if (typeof define == "function" && define.amd) // AMD 12 | define(["../../lib/codemirror", "htmlhint"], mod); 13 | else // Plain browser env 14 | mod(CodeMirror); 15 | })(function(CodeMirror) { 16 | "use strict"; 17 | 18 | var defaultRules = { 19 | "tagname-lowercase": true, 20 | "attr-lowercase": true, 21 | "attr-value-double-quotes": true, 22 | "doctype-first": false, 23 | "tag-pair": true, 24 | "spec-char-escape": true, 25 | "id-unique": true, 26 | "src-not-empty": true, 27 | "attr-no-duplication": true 28 | }; 29 | 30 | CodeMirror.registerHelper("lint", "html", function(text, options) { 31 | var found = []; 32 | if (!window.HTMLHint) return found; 33 | var messages = HTMLHint.verify(text, options && options.rules || defaultRules); 34 | for (var i = 0; i < messages.length; i++) { 35 | var message = messages[i]; 36 | var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1, endCol = message.col; 37 | found.push({ 38 | from: CodeMirror.Pos(startLine, startCol), 39 | to: CodeMirror.Pos(endLine, endCol), 40 | message: message.message, 41 | severity : message.type 42 | }); 43 | } 44 | return found; 45 | }); 46 | }); 47 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
52 | 53 | 59 | 60 |

MIME types defined: text/x-pascal.

61 |
62 | -------------------------------------------------------------------------------- /lib/codemirror/mode/pig/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Pig Latin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Pig Latin mode

27 |
39 | 40 | 47 | 48 |

49 | Simple mode that handles Pig Latin language. 50 |

51 | 52 |

MIME type defined: text/x-pig 53 | (PIG code) 54 | 55 |

56 | -------------------------------------------------------------------------------- /lib/codemirror/addon/display/autorefresh.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.defineOption("autoRefresh", false, function(cm, val) { 15 | if (cm.state.autoRefresh) { 16 | stopListening(cm, cm.state.autoRefresh) 17 | cm.state.autoRefresh = null 18 | } 19 | if (val && cm.display.wrapper.offsetHeight == 0) 20 | startListening(cm, cm.state.autoRefresh = {delay: val.delay || 250}) 21 | }) 22 | 23 | function startListening(cm, state) { 24 | function check() { 25 | if (cm.display.wrapper.offsetHeight) { 26 | stopListening(cm, state) 27 | if (cm.display.lastWrapHeight != cm.display.wrapper.clientHeight) 28 | cm.refresh() 29 | } else { 30 | state.timeout = setTimeout(check, state.delay) 31 | } 32 | } 33 | state.timeout = setTimeout(check, state.delay) 34 | state.hurry = function() { 35 | clearTimeout(state.timeout) 36 | state.timeout = setTimeout(check, 50) 37 | } 38 | CodeMirror.on(window, "mouseup", state.hurry) 39 | CodeMirror.on(window, "keyup", state.hurry) 40 | } 41 | 42 | function stopListening(_cm, state) { 43 | clearTimeout(state.timeout) 44 | CodeMirror.off(window, "mouseup", state.hurry) 45 | CodeMirror.off(window, "keyup", state.hurry) 46 | } 47 | }); 48 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
46 | 47 | 53 | 54 |

MIME types defined: text/vbscript.

55 |
56 | -------------------------------------------------------------------------------- /mobile/picker.js: -------------------------------------------------------------------------------- 1 | 2 | var just_folder = []; 3 | var count = 0; 4 | 5 | function getFolder(folder_id, path){ 6 | retrieveAllFilesInFolder(folder_id, path, addAllItems); 7 | } 8 | 9 | function compare(a,b) { 10 | if (a.name < b.name) 11 | return -1; 12 | if (a.name > b.name) 13 | return 1; 14 | return 0; 15 | } 16 | 17 | function justRoot(){ 18 | justFolder(myRootFolderId); 19 | } 20 | 21 | function justFolder(folder_id){ 22 | count = 0; 23 | just_folder = []; 24 | retrieveAllFilesInFolder(folder_id, justAllItems); 25 | } 26 | function justAllItems(result, id){ 27 | if(typeof result[0] === 'undefined'){ 28 | console.log("nothing"); 29 | sendFolder([], id); 30 | return; 31 | } 32 | var goal = result.length; 33 | for(var j = 0; j < result.length; j++){ 34 | try{ 35 | test = result[j].id; 36 | } 37 | catch(e){ 38 | j--; 39 | } 40 | } 41 | 42 | for(var i = 0; i < result.length; i++){ 43 | try{ 44 | getFile(result[i].id, justItem, goal, id); 45 | } 46 | catch(e){ 47 | 48 | } 49 | } 50 | } 51 | function justItem(result, goal, id){ 52 | count++; 53 | var is_folder = false; 54 | 55 | //console.log(result); 56 | if(result.mimeType === "application/vnd.google-apps.folder"){ 57 | is_folder = true; 58 | } 59 | 60 | var to_push ={ 61 | name: result.title, 62 | id: result.id, 63 | folder: is_folder, 64 | date: result.modifiedDate, 65 | mime: result.mimeType 66 | }; 67 | 68 | if(result.explicitlyTrashed){ 69 | 70 | } 71 | else{ 72 | just_folder.push(to_push); 73 | } 74 | 75 | if(count === goal){ 76 | sendFolder(just_folder.sort(compare), id); 77 | } 78 | } 79 | 80 | function one_folder_back(folder_id){ 81 | getParents(folder_id, one_back); 82 | } 83 | 84 | function one_back(id){ 85 | justFolder(id); 86 | } -------------------------------------------------------------------------------- /lib/codemirror/demo/trailingspace.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Trailing Whitespace Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 18 | 30 | 31 |
32 |

Trailing Whitespace Demo

33 |
36 | 37 | 43 | 44 |

Uses 45 | the trailingspace 46 | addon to highlight trailing whitespace.

47 | 48 |
49 | -------------------------------------------------------------------------------- /lib/codemirror/mode/gherkin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Gherkin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Gherkin mode

27 |
42 | 45 | 46 |

MIME types defined: text/x-feature.

47 | 48 |
49 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /about/css/grid.css: -------------------------------------------------------------------------------- 1 | /* SECTIONS */ 2 | .section { 3 | clear: both; 4 | padding: 0px; 5 | margin: 0px; 6 | } 7 | 8 | /* COLUMN SETUP */ 9 | .col { 10 | display: block; 11 | float:left; 12 | margin: 1% 0 1% 1.6%; 13 | position: relative; 14 | } 15 | .col:first-child { margin-left: 0; } 16 | 17 | 18 | /* GROUPING */ 19 | .group:before, 20 | .group:after { 21 | content:""; 22 | display:table; 23 | } 24 | .group:after { 25 | clear:both; 26 | } 27 | .group { 28 | zoom:1; /* For IE 6/7 */ 29 | } 30 | 31 | /* GRID OF THREE */ 32 | .span_3_of_3 { 33 | width: 100%; 34 | } 35 | .span_2_of_3 { 36 | width: 66.1%; 37 | } 38 | .span_1_of_3 { 39 | width: 32.2%; 40 | } 41 | 42 | .span_2_of_2 { 43 | width: 100%; 44 | } 45 | 46 | .span_1_of_2 { 47 | width: 49.2%; 48 | } 49 | .span_4_of_4 { 50 | width: 100%; 51 | } 52 | 53 | .span_3_of_4 { 54 | width: 74.6%; 55 | } 56 | 57 | .span_2_of_4 { 58 | width: 49.2%; 59 | } 60 | 61 | .span_1_of_4 { 62 | width: 23.8%; 63 | } 64 | 65 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */ 66 | 67 | @media only screen and (max-width: 480px) { 68 | .col { 69 | margin: 1% 0 1% 0%; 70 | } 71 | } 72 | 73 | @media only screen and (max-width: 480px) { 74 | .col{ 75 | border: none; 76 | } 77 | 78 | .span_3_of_3 { 79 | width: 100%; 80 | } 81 | .span_2_of_3 { 82 | width: 100%; 83 | } 84 | .span_1_of_3 { 85 | width: 100%; 86 | } 87 | .span_2_of_2 { 88 | width: 100%; 89 | } 90 | .span_1_of_2 { 91 | width: 100%; 92 | } 93 | 94 | .span_4_of_4 { 95 | width: 100%; 96 | } 97 | .span_3_of_4 { 98 | width: 100%; 99 | } 100 | .span_2_of_4 { 101 | width: 100%; 102 | } 103 | .span_1_of_4 { 104 | width: 100%; 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
46 | 49 | 50 |

MIME types defined: text/x-properties, 51 | text/x-ini.

52 | 53 |
54 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/addon/fold/indent-fold.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.registerHelper("fold", "indent", function(cm, start) { 15 | var tabSize = cm.getOption("tabSize"), firstLine = cm.getLine(start.line); 16 | if (!/\S/.test(firstLine)) return; 17 | var getIndent = function(line) { 18 | return CodeMirror.countColumn(line, null, tabSize); 19 | }; 20 | var myIndent = getIndent(firstLine); 21 | var lastLineInFold = null; 22 | // Go through lines until we find a line that definitely doesn't belong in 23 | // the block we're folding, or to the end. 24 | for (var i = start.line + 1, end = cm.lastLine(); i <= end; ++i) { 25 | var curLine = cm.getLine(i); 26 | var curIndent = getIndent(curLine); 27 | if (curIndent > myIndent) { 28 | // Lines with a greater indent are considered part of the block. 29 | lastLineInFold = i; 30 | } else if (!/\S/.test(curLine)) { 31 | // Empty lines might be breaks within the block we're trying to fold. 32 | } else { 33 | // A non-empty line at an indent equal to or less than ours marks the 34 | // start of another block. 35 | break; 36 | } 37 | } 38 | if (lastLineInFold) return { 39 | from: CodeMirror.Pos(start.line, firstLine.length), 40 | to: CodeMirror.Pos(lastLineInFold, cm.getLine(lastLineInFold).length) 41 | }; 42 | }); 43 | 44 | }); 45 | -------------------------------------------------------------------------------- /lib/codemirror/bin/release: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var fs = require("fs"), child = require("child_process"); 4 | 5 | var number, bumpOnly; 6 | 7 | for (var i = 2; i < process.argv.length; i++) { 8 | if (process.argv[i] == "-bump") bumpOnly = true; 9 | else if (/^\d+\.\d+\.\d+$/.test(process.argv[i])) number = process.argv[i]; 10 | else { console.log("Bogus command line arg: " + process.argv[i]); process.exit(1); } 11 | } 12 | 13 | if (!number) { console.log("Must give a version"); process.exit(1); } 14 | 15 | function rewrite(file, f) { 16 | fs.writeFileSync(file, f(fs.readFileSync(file, "utf8")), "utf8"); 17 | } 18 | 19 | rewrite("lib/codemirror.js", function(lib) { 20 | return lib.replace(/CodeMirror\.version = "\d+\.\d+\.\d+"/, 21 | "CodeMirror.version = \"" + number + "\""); 22 | }); 23 | function rewriteJSON(pack) { 24 | return pack.replace(/"version":"\d+\.\d+\.\d+"/, "\"version\":\"" + number + "\""); 25 | } 26 | rewrite("package.json", rewriteJSON); 27 | rewrite("doc/manual.html", function(manual) { 28 | return manual.replace(/>version \d+\.\d+\.\d+<\/span>/, ">version " + number + ""); 29 | }); 30 | 31 | if (bumpOnly) process.exit(0); 32 | 33 | child.exec("bash bin/authors.sh", function(){}); 34 | 35 | var simple = number.slice(0, number.lastIndexOf(".")); 36 | 37 | rewrite("doc/compress.html", function(cmp) { 38 | return cmp.replace(/\n "); 40 | }); 41 | 42 | rewrite("index.html", function(index) { 43 | return index.replace(/\.zip">\d+\.\d+<\/a>/, 44 | ".zip\">" + simple + ""); 45 | }); 46 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
53 | 54 | 62 | 63 |

MIME types defined: text/x-rustsrc.

64 |
65 | -------------------------------------------------------------------------------- /lib/auto/comment.min.js: -------------------------------------------------------------------------------- 1 | (function(mod){if(typeof exports=="object"&&typeof module=="object")return mod(exports);if(typeof define=="function"&&define.amd)return define(["exports"],mod);mod(tern.comment||(tern.comment={}))})(function(exports){function isSpace(ch){return ch<14&&ch>8||ch===32||ch===160}function onOwnLine(text,pos){for(;pos>0;--pos){var ch=text.charCodeAt(pos-1);if(ch==10)break;if(!isSpace(ch))return false}return true}exports.commentsBefore=function(text,pos){var found=null,emptyLines=0,topIsLineComment;out:while(pos>0){var prev=text.charCodeAt(pos-1);if(prev==10){for(var scan=--pos,sawNonWS=false;scan>0;--scan){prev=text.charCodeAt(scan-1);if(prev==47&&text.charCodeAt(scan-2)==47){if(!onOwnLine(text,scan-2))break out;var content=text.slice(scan,pos);if(!emptyLines&&topIsLineComment)found[0]=content+"\n"+found[0];else(found||(found=[])).unshift(content);topIsLineComment=true;emptyLines=0;pos=scan-2;break}else if(prev==10){if(!sawNonWS&&++emptyLines>1)break out;break}else if(!sawNonWS&&!isSpace(prev)){sawNonWS=true}}}else if(prev==47&&text.charCodeAt(pos-2)==42){for(var scan=pos-2;scan>1;--scan){if(text.charCodeAt(scan-1)==42&&text.charCodeAt(scan-2)==47){if(!onOwnLine(text,scan-2))break out;(found||(found=[])).unshift(text.slice(scan,pos-2));topIsLineComment=false;emptyLines=0;break}}pos=scan-2}else if(isSpace(prev)){--pos}else{break}}return found};exports.commentAfter=function(text,pos){while(pos 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

TypeScript mode

27 | 28 | 29 |
51 | 52 | 59 | 60 |

This is a specialization of the JavaScript mode.

61 |
62 | -------------------------------------------------------------------------------- /lib/codemirror/demo/matchhighlighter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Match Highlighter Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 19 | 31 | 32 |
33 |

Match Highlighter Demo

34 |
37 | 38 | 44 | 45 |

Search and highlight occurences of the selected text.

46 | 47 |
48 | -------------------------------------------------------------------------------- /lib/codemirror/addon/hint/anyword-hint.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 | var WORD = /[\w$]+/, RANGE = 500; 15 | 16 | CodeMirror.registerHelper("hint", "anyword", function(editor, options) { 17 | var word = options && options.word || WORD; 18 | var range = options && options.range || RANGE; 19 | var cur = editor.getCursor(), curLine = editor.getLine(cur.line); 20 | var end = cur.ch, start = end; 21 | while (start && word.test(curLine.charAt(start - 1))) --start; 22 | var curWord = start != end && curLine.slice(start, end); 23 | 24 | var list = options && options.list || [], seen = {}; 25 | var re = new RegExp(word.source, "g"); 26 | for (var dir = -1; dir <= 1; dir += 2) { 27 | var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir; 28 | for (; line != endLine; line += dir) { 29 | var text = editor.getLine(line), m; 30 | while (m = re.exec(text)) { 31 | if (line == cur.line && m[0] === curWord) continue; 32 | if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) { 33 | seen[m[0]] = true; 34 | list.push(m[0]); 35 | } 36 | } 37 | } 38 | } 39 | return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)}; 40 | }); 41 | }); 42 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /about/images/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
58 | 64 | 65 |

MIME types defined: text/x-sass.

66 |
67 | -------------------------------------------------------------------------------- /lib/codemirror/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: #6900a1; } 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-comment { color: #6900a1; } 23 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; } 24 | .cm-s-night span.cm-link { color: #845dc4; } 25 | .cm-s-night span.cm-error { color: #9d1e15; } 26 | 27 | .cm-s-night .CodeMirror-activeline-background { background: #1C005A; } 28 | .cm-s-night .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; } 29 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
67 | 68 | 73 | 74 |

MIME types defined: text/x-perl.

75 |
76 | -------------------------------------------------------------------------------- /lib/codemirror/demo/closebrackets.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Closebrackets Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 26 | 27 |
28 |

Closebrackets Demo

29 |
48 | 49 | 52 |
53 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
52 | 53 | 59 | 60 |

MIME types defined: text/x-elm.

61 |
62 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
52 | 62 | 63 |

MIME types defined: text/x-idl.

64 |
65 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/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 | 62 |
63 | 64 | 70 | 71 |
72 | -------------------------------------------------------------------------------- /lib/codemirror/demo/changemode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Mode-Changing Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 26 | 27 |
28 |

Mode-Changing Demo

29 |
36 | 37 |

On changes to the content of the above editor, a (crude) script 38 | tries to auto-detect the language used, and switches the editor to 39 | either JavaScript or Scheme mode based on that.

40 | 41 | 58 |
59 | -------------------------------------------------------------------------------- /lib/codemirror/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 ]"); 13 | 14 | MT("nonmatching", 15 | "[tag&bracket <][tag top][tag&bracket >]", 16 | " [tag&bracket <][tag inner][tag&bracket />]", 17 | " [tag&bracket ]"); 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 ]"); 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 ]"); 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 ]"); 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 | -------------------------------------------------------------------------------- /lib/codemirror/addon/edit/continuelist.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 | var listRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\s*)/, 15 | emptyListRE = /^(\s*)(>[> ]*|[*+-]|(\d+)[.)])(\s*)$/, 16 | unorderedListRE = /[*+-]\s/; 17 | 18 | CodeMirror.commands.newlineAndIndentContinueMarkdownList = function(cm) { 19 | if (cm.getOption("disableInput")) return CodeMirror.Pass; 20 | var ranges = cm.listSelections(), replacements = []; 21 | for (var i = 0; i < ranges.length; i++) { 22 | var pos = ranges[i].head; 23 | var eolState = cm.getStateAfter(pos.line); 24 | var inList = eolState.list !== false; 25 | var inQuote = eolState.quote !== 0; 26 | 27 | var line = cm.getLine(pos.line), match = listRE.exec(line); 28 | if (!ranges[i].empty() || (!inList && !inQuote) || !match) { 29 | cm.execCommand("newlineAndIndent"); 30 | return; 31 | } 32 | if (emptyListRE.test(line)) { 33 | cm.replaceRange("", { 34 | line: pos.line, ch: 0 35 | }, { 36 | line: pos.line, ch: pos.ch + 1 37 | }); 38 | replacements[i] = "\n"; 39 | } else { 40 | var indent = match[1], after = match[5]; 41 | var bullet = unorderedListRE.test(match[2]) || match[2].indexOf(">") >= 0 42 | ? match[2] 43 | : (parseInt(match[3], 10) + 1) + match[4]; 44 | 45 | replacements[i] = "\n" + indent + bullet + after; 46 | } 47 | } 48 | 49 | cm.replaceSelections(replacements); 50 | }; 51 | }); 52 | -------------------------------------------------------------------------------- /lib/codemirror/mode/jinja2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Jinja2 mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Jinja2 mode

27 |
49 | 54 |
55 | -------------------------------------------------------------------------------- /lib/codemirror/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-string { color: #e6db74; } 20 | 21 | .cm-s-monokai span.cm-variable { color: #f8f8f2; } 22 | .cm-s-monokai span.cm-variable-2 { color: #9effff; } 23 | .cm-s-monokai span.cm-variable-3 { color: #66d9ef; } 24 | .cm-s-monokai span.cm-def { color: #fd971f; } 25 | .cm-s-monokai span.cm-bracket { color: #f8f8f2; } 26 | .cm-s-monokai span.cm-tag { color: #f92672; } 27 | .cm-s-monokai span.cm-header { color: #ae81ff; } 28 | .cm-s-monokai span.cm-link { color: #ae81ff; } 29 | .cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; } 30 | 31 | .cm-s-monokai .CodeMirror-activeline-background { background: #373831; } 32 | .cm-s-monokai .CodeMirror-matchingbracket { 33 | text-decoration: underline; 34 | color: white !important; 35 | } 36 | -------------------------------------------------------------------------------- /lib/codemirror/demo/html5complete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | CodeMirror: HTML completion demo 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | 36 | 37 |
38 |

HTML completion demo

39 | 40 |

Shows the XML completer 41 | parameterized with information about the tags in HTML. 42 | Press ctrl-space to activate completion.

43 | 44 |
45 | 46 | 55 |
56 | 57 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/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 | 56 | 57 | 64 | 65 |

MIME types defined: text/x-sh.

66 |
67 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
52 | 58 | 59 |

MIME types defined: application/sparql-query.

60 | 61 |
62 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /lib/codemirror/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 | -------------------------------------------------------------------------------- /about/images/thumbs-up.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /lib/codemirror/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 |
50 | 51 | 59 | 60 |

Mode for HTML with embedded Tornado template markup.

61 | 62 |

MIME types defined: text/x-tornado

63 |
64 | -------------------------------------------------------------------------------- /lib/codemirror/demo/markselection.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Selection Marking Demo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 17 | 29 | 30 |
31 |

Selection Marking Demo

32 |
41 | 42 | 49 | 50 |

Simple addon to easily mark (and style) selected text. Docs.

51 | 52 |
53 | -------------------------------------------------------------------------------- /lib/codemirror/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]: [variable darken]([variable-2 @color], [number 10%]);", 30 | "}", 31 | "[qualifier .mixin] ([variable light]; [variable-2 @color]) {", 32 | " [property color]: [variable 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 | --------------------------------------------------------------------------------