├── .gitignore ├── Gruntfile.js ├── LICENSE ├── README.md ├── app.js ├── package.json ├── public ├── javascripts │ ├── defaults │ │ ├── about.js │ │ └── scratch.js │ ├── lib │ │ ├── ace │ │ │ ├── ace.js │ │ │ ├── ext-elastic_tabstops_lite.js │ │ │ ├── ext-emmet.js │ │ │ ├── ext-keybinding_menu.js │ │ │ ├── ext-modelist.js │ │ │ ├── ext-searchbox.js │ │ │ ├── ext-settings_menu.js │ │ │ ├── ext-spellcheck.js │ │ │ ├── ext-static_highlight.js │ │ │ ├── ext-statusbar.js │ │ │ ├── ext-textarea.js │ │ │ ├── ext-themelist.js │ │ │ ├── ext-whitespace.js │ │ │ ├── keybinding-emacs.js │ │ │ ├── keybinding-vim.js │ │ │ ├── mode-abap.js │ │ │ ├── mode-actionscript.js │ │ │ ├── mode-asciidoc.js │ │ │ ├── mode-autohotkey.js │ │ │ ├── mode-batchfile.js │ │ │ ├── mode-c9search.js │ │ │ ├── mode-c_cpp.js │ │ │ ├── mode-clojure.js │ │ │ ├── mode-coffee.js │ │ │ ├── mode-coldfusion.js │ │ │ ├── mode-csharp.js │ │ │ ├── mode-css.js │ │ │ ├── mode-curly.js │ │ │ ├── mode-dart.js │ │ │ ├── mode-diff.js │ │ │ ├── mode-django.js │ │ │ ├── mode-dot.js │ │ │ ├── mode-erlang.js │ │ │ ├── mode-forth.js │ │ │ ├── mode-ftl.js │ │ │ ├── mode-glsl.js │ │ │ ├── mode-golang.js │ │ │ ├── mode-groovy.js │ │ │ ├── mode-haml.js │ │ │ ├── mode-haskell.js │ │ │ ├── mode-haxe.js │ │ │ ├── mode-html.js │ │ │ ├── mode-ini.js │ │ │ ├── mode-jade.js │ │ │ ├── mode-java.js │ │ │ ├── mode-javascript.js │ │ │ ├── mode-json.js │ │ │ ├── mode-jsoniq.js │ │ │ ├── mode-jsp.js │ │ │ ├── mode-jsx.js │ │ │ ├── mode-julia.js │ │ │ ├── mode-latex.js │ │ │ ├── mode-less.js │ │ │ ├── mode-liquid.js │ │ │ ├── mode-lisp.js │ │ │ ├── mode-livescript.js │ │ │ ├── mode-logiql.js │ │ │ ├── mode-lsl.js │ │ │ ├── mode-lua.js │ │ │ ├── mode-luapage.js │ │ │ ├── mode-lucene.js │ │ │ ├── mode-makefile.js │ │ │ ├── mode-markdown.js │ │ │ ├── mode-mushcode.js │ │ │ ├── mode-mushcode_high_rules.js │ │ │ ├── mode-objectivec.js │ │ │ ├── mode-ocaml.js │ │ │ ├── mode-pascal.js │ │ │ ├── mode-perl.js │ │ │ ├── mode-pgsql.js │ │ │ ├── mode-php.js │ │ │ ├── mode-powershell.js │ │ │ ├── mode-prolog.js │ │ │ ├── mode-properties.js │ │ │ ├── mode-python.js │ │ │ ├── mode-r.js │ │ │ ├── mode-rdoc.js │ │ │ ├── mode-rhtml.js │ │ │ ├── mode-ruby.js │ │ │ ├── mode-rust.js │ │ │ ├── mode-sass.js │ │ │ ├── mode-scad.js │ │ │ ├── mode-scala.js │ │ │ ├── mode-scheme.js │ │ │ ├── mode-scss.js │ │ │ ├── mode-sh.js │ │ │ ├── mode-snippets.js │ │ │ ├── mode-sql.js │ │ │ ├── mode-stylus.js │ │ │ ├── mode-svg.js │ │ │ ├── mode-tcl.js │ │ │ ├── mode-tex.js │ │ │ ├── mode-text.js │ │ │ ├── mode-textile.js │ │ │ ├── mode-toml.js │ │ │ ├── mode-typescript.js │ │ │ ├── mode-vbscript.js │ │ │ ├── mode-velocity.js │ │ │ ├── mode-xml.js │ │ │ ├── mode-xquery.js │ │ │ ├── mode-yaml.js │ │ │ ├── theme-ambiance.js │ │ │ ├── theme-chaos.js │ │ │ ├── theme-chrome.js │ │ │ ├── theme-clouds.js │ │ │ ├── theme-clouds_midnight.js │ │ │ ├── theme-cobalt.js │ │ │ ├── theme-crimson_editor.js │ │ │ ├── theme-dawn.js │ │ │ ├── theme-dreamweaver.js │ │ │ ├── theme-eclipse.js │ │ │ ├── theme-github.js │ │ │ ├── theme-glarkio_black.js │ │ │ ├── theme-glarkio_blue.js │ │ │ ├── theme-idle_fingers.js │ │ │ ├── theme-kr.js │ │ │ ├── theme-merbivore.js │ │ │ ├── theme-merbivore_soft.js │ │ │ ├── theme-mono_industrial.js │ │ │ ├── theme-monokai.js │ │ │ ├── theme-pastel_on_dark.js │ │ │ ├── theme-solarized_dark.js │ │ │ ├── theme-solarized_light.js │ │ │ ├── theme-terminal.js │ │ │ ├── theme-textmate.js │ │ │ ├── theme-tomorrow.js │ │ │ ├── theme-tomorrow_night.js │ │ │ ├── theme-tomorrow_night_blue.js │ │ │ ├── theme-tomorrow_night_bright.js │ │ │ ├── theme-tomorrow_night_eighties.js │ │ │ ├── theme-toy_chest.js │ │ │ ├── theme-twilight.js │ │ │ ├── theme-vibrant_ink.js │ │ │ ├── theme-xcode.js │ │ │ ├── worker-coffee.js │ │ │ ├── worker-css.js │ │ │ ├── worker-javascript.js │ │ │ ├── worker-json.js │ │ │ ├── worker-lua.js │ │ │ ├── worker-php.js │ │ │ └── worker-xquery.js │ │ ├── beautifiers │ │ │ ├── beautify-css.js │ │ │ ├── beautify-css.min.js │ │ │ ├── beautify-html.js │ │ │ ├── beautify-html.min.js │ │ │ ├── beautify.js │ │ │ └── beautify.min.js │ │ ├── filesaver │ │ │ └── FileSaver.js │ │ └── share │ │ │ ├── bcsocket.js │ │ │ └── webclient │ └── microGlark.js └── stylesheets │ ├── reset.css │ └── style.css ├── routes └── index.js └── views ├── index.jade └── layout.jade /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.swp 3 | .elasticbeanstalk/ 4 | www 5 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | /* jshint node: true, camelcase: false */ 2 | 'use strict'; 3 | 4 | module.exports = function (grunt) { 5 | 6 | grunt.initConfig({ 7 | pkg: grunt.file.readJSON('package.json'), 8 | 9 | jsfiles: [ 10 | 'Gruntfile.js', 11 | 'app.js', 12 | 'public/javascripts/*.js' 13 | ], 14 | 15 | clean: { 16 | main: ["www"] 17 | }, 18 | 19 | copy: { 20 | main: { 21 | files: [ 22 | {expand: true, src: ['public/**'], dest: 'www/'}, 23 | ] 24 | } 25 | }, 26 | 27 | postcss: { 28 | options: { 29 | map: true, 30 | processors: [ 31 | require('autoprefixer')({browsers: 'last 2 versions'}), 32 | require('cssnano')() 33 | ] 34 | }, 35 | dist: { 36 | src: 'www/**/*.css' 37 | } 38 | }, 39 | 40 | jsbeautifier: { 41 | files: ['<%= jsfiles %>'], 42 | options: { 43 | space_after_anon_function: true 44 | } 45 | }, 46 | 47 | jshint: { 48 | options: { 49 | /* camelcase: true, */ 50 | eqeqeq: true, 51 | indent: 4, 52 | latedef: true, 53 | newcap: true, 54 | nonew: true, 55 | undef: true, 56 | unused: true, 57 | trailing: true, 58 | white: true, 59 | globalstrict: true, 60 | node: true, 61 | browser: true, 62 | jquery: true, 63 | devel: true, 64 | globals: { 65 | /* Jasmine variables. */ 66 | jasmine: false, 67 | it: false, 68 | describe: false, 69 | expect: false, 70 | beforeEach: false, 71 | sleep: false, 72 | input: false 73 | } 74 | }, 75 | files: ['<%= jsfiles %>'] 76 | }, 77 | 78 | watch: { 79 | files: ['public/**/*'], 80 | tasks: ['build'] 81 | } 82 | }); 83 | 84 | grunt.loadNpmTasks('grunt-postcss'); 85 | grunt.loadNpmTasks('grunt-jsbeautifier'); 86 | grunt.loadNpmTasks('grunt-contrib-jshint'); 87 | grunt.loadNpmTasks('grunt-contrib-clean'); 88 | grunt.loadNpmTasks('grunt-contrib-copy'); 89 | grunt.loadNpmTasks('grunt-contrib-watch'); 90 | 91 | grunt.registerTask('lint', ['jsbeautifier', 'jshint']); 92 | grunt.registerTask('build', ['clean', 'copy', 'postcss']); 93 | }; 94 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | microglark 2 | ========== 3 | 4 | _A hacky minimalistic remote pair programming editor [µGlark.io](http://micro.glark.io)_ 5 | 6 | Once on the µGlark landing page, share the url with a fellow developer and start collaborating. 7 | When done, download the modified file to you desktop. 8 | 9 | When everyone has closed their browser µGlark tab, the room is destroyed on the server side. 10 | This means there is no persistence of your data on the server, because we love privacy. 11 | 12 | Currently, [µGlark.io](http://micro.glark.io) is hosted on a micro ec2 instance, so if it lags, 13 | please open an issue so that we scale this a bit. 14 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var express = require('express'); 4 | // var favicon = require('serve-favicon'); 5 | var methodOverride = require('method-override'); 6 | var compression = require('compression'); 7 | var bodyParser = require('body-parser'); 8 | var errorhandler = require('errorhandler'); 9 | var http = require('http'); 10 | var path = require('path'); 11 | var sharejs = require('share'); 12 | var socketio = require('socket.io'); 13 | 14 | var routes = require('./routes'); 15 | 16 | var app = express(); 17 | var server = http.Server(app); 18 | var sio = socketio(server); 19 | 20 | app.set('port', process.env.PORT || 3000); 21 | app.set('views', __dirname + '/views'); 22 | app.set('view engine', 'jade'); 23 | // app.use(favicon()); 24 | app.use(methodOverride()); 25 | app.use(compression()); 26 | app.use(bodyParser.json()); 27 | app.use(bodyParser.urlencoded({ 28 | extended: true 29 | })); 30 | app.use(express.static(path.join(__dirname, 'www/public'))); 31 | 32 | app.use('/', routes); 33 | 34 | /* 404 like middleware. Route everything that was not answered yet to the main 35 | * page, except the 'channel' url used by sharejs. */ 36 | app.use(function(req, res, next) { 37 | if (req.path.length > 7 && req.path.substr(1, 7) === 'channel') { 38 | next(); 39 | } else { 40 | res.redirect('/'); 41 | } 42 | }); 43 | 44 | if ('development' === app.get('env')) { 45 | app.use(errorhandler()); 46 | } 47 | 48 | /* Provide some variables to the views. */ 49 | if ('production' === app.get('env')) { 50 | app.set('production', true); 51 | } 52 | 53 | /* Attach the sharjs REST and Socket.io interfaces to the server. */ 54 | var sharejsOptions = { 55 | db: { 56 | type: 'none' 57 | } 58 | }; 59 | 60 | if ('production' === app.get('env')) { 61 | sharejsOptions.websocket = true; 62 | } 63 | 64 | sharejs.server.attach(app, sharejsOptions); 65 | 66 | server.listen(app.get('port'), function() { 67 | console.log('Express server listening on port ' + app.get('port')); 68 | console.log('Environment:', app.get('env')); 69 | }); 70 | 71 | var store = {}; 72 | sio.on('connection', function(socket) { 73 | console.log('Websocket connection.'); 74 | 75 | socket.on('join', function(data) { 76 | console.log('id', socket.id); 77 | store[socket.id] = { 78 | documentId: data.documentId, 79 | userId: data.userId 80 | }; 81 | socket.join(data.documentId); 82 | socket.emit('joined'); 83 | }); 84 | 85 | socket.on('requestUser', function() { 86 | var values = store[socket.id]; 87 | if (!values) return; 88 | 89 | socket.broadcast.to(values.documentId).emit('requestUser'); 90 | }); 91 | 92 | socket.on('notifyUser', function(data) { 93 | var values = store[socket.id]; 94 | if (!values) return; 95 | 96 | socket.broadcast.to(values.documentId).emit('notifyUser', data); 97 | }); 98 | 99 | socket.on('notifySelection', function(data) { 100 | var values = store[socket.id]; 101 | if (!values) return; 102 | 103 | socket.broadcast.to(values.documentId).emit('notifySelection', data); 104 | }); 105 | 106 | socket.on('requestSelection', function(data) { 107 | var values = store[socket.id]; 108 | if (!values) return; 109 | 110 | socket.broadcast.to(values.documentId).emit('requestSelection', data); 111 | }); 112 | 113 | socket.on('requestFilename', function() { 114 | var values = store[socket.id]; 115 | if (!values) return; 116 | 117 | socket.broadcast.to(values.documentId).emit('requestFilename'); 118 | }); 119 | 120 | socket.on('notifyFilename', function(data) { 121 | var values = store[socket.id]; 122 | if (!values) return; 123 | 124 | socket.broadcast.to(values.documentId).emit('notifyFilename', data); 125 | }); 126 | 127 | socket.on('notifyWriting', function(data) { 128 | var values = store[socket.id]; 129 | if (!values) return; 130 | 131 | socket.broadcast.to(values.documentId).emit('notifyWriting', data); 132 | }); 133 | 134 | socket.on('disconnect', function() { 135 | var values = store[socket.id]; 136 | if (!values) return; 137 | delete store[socket.id]; 138 | 139 | var room = sio.nsps['/'].adapter.rooms['/' + values.documentId]; 140 | if (!room || (room.length === 1 && room[0] === socket.id)) { 141 | /* Zombie document, prune it. */ 142 | console.log('Deleting document ' + values.documentId); 143 | app.model.delete(values.documentId, function(err) { 144 | if (err) return console.log(err); 145 | console.log('document deleted.'); 146 | }); 147 | } else { 148 | socket.broadcast.to(values.documentId).emit('collaboratorDisconnect', values.userId); 149 | } 150 | }); 151 | }); 152 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "microglark", 3 | "version": "0.0.2", 4 | "private": true, 5 | "scripts": { 6 | "start": "./node_modules/.bin/grunt build && node app.js", 7 | "watch": "./node_modules/.bin/grunt build && (./node_modules/.bin/grunt watch &) && node app.js" 8 | }, 9 | "dependencies": { 10 | "autoprefixer": "^6.1.2", 11 | "body-parser": "^1.14.1", 12 | "compression": "^1.6.0", 13 | "cssnano": "^3.4.0", 14 | "errorhandler": "^1.4.2", 15 | "express": "^4.13.3", 16 | "jade": "^1.11.0", 17 | "method-override": "^2.3.5", 18 | "serve-favicon": "^2.3.0", 19 | "share": "^0.6.0", 20 | "socket.io": "^1.3.7" 21 | }, 22 | "devDependencies": { 23 | "grunt": "^0.4.1", 24 | "grunt-cli": "^1.2.0", 25 | "grunt-contrib-clean": "^0.7.0", 26 | "grunt-contrib-copy": "^0.8.2", 27 | "grunt-contrib-jshint": "~0.11.3", 28 | "grunt-contrib-watch": "^0.6.1", 29 | "grunt-jsbeautifier": "~0.2.10", 30 | "grunt-postcss": "^0.7.1" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /public/javascripts/defaults/about.js: -------------------------------------------------------------------------------- 1 | window.defaultFile = { 2 | filename: 'About.md', 3 | getContent: function () { 4 | return "# About - µGlark.io\n" + 5 | "\n" + 6 | "## Authors\n" + 7 | "@Flolagale & @Verdier\n" + 8 | "\n" + 9 | "## Repo\n" + 10 | "[microglark](http://github.com/Bluefinch/microglark)"; 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /public/javascripts/defaults/scratch.js: -------------------------------------------------------------------------------- 1 | window.defaultFile = { 2 | filename: 'Scratch.js', 3 | getContent: function () { 4 | return "/* µGlark.io is a minimalistic pair programming editor.\n" + 5 | " * Share the url of this page " + window.location.toString() + " with anybody,\n" + 6 | " * and start collaborative editing.\n" + 7 | " * Drag and drop any file from your desktop here to open it.\n" + 8 | " * Edit the filename just above the editor to change the syntax highlighting type.\n" + 9 | " * Because we value privacy, nothing is stored on the server,\n" + 10 | " * closing your browser tab will instantly destroy the document.\n" + 11 | " * Enjoy! */\n" + 12 | "exports.glark = function () {\n console.log('hi!');\n};"; 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /public/javascripts/lib/ace/ext-elastic_tabstops_lite.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"],function(e,t,n){var r=function(e){this.$editor=e;var t=this,n=[],r=!1;this.onAfterExec=function(){r=!1,t.processRows(n),n=[]},this.onExec=function(){r=!0},this.onChange=function(e){var t=e.data.range;r&&(n.indexOf(t.start.row)==-1&&n.push(t.start.row),t.end.row!=t.start.row&&n.push(t.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;var t=[];for(var n=0,r=e.length;n-1)continue;var s=this.$findCellWidthsForBlock(i),o=this.$setBlockCellWidthsToMax(s.cellWidths),u=s.firstRow;for(var a=0,f=o.length;a=0){n=this.$cellWidthsForRow(r);if(n.length==0)break;t.unshift(n),r--}var i=r+1;r=e;var s=this.$editor.session.getLength();while(r0&&(this.$editor.session.getDocument().insertInLine({row:e,column:f+1},Array(l+1).join(" ")+" "),this.$editor.session.getDocument().removeInLine(e,f,f+1),r+=l),l<0&&p>=-l&&(this.$editor.session.getDocument().removeInLine(e,f+l,f),r+=l)}},this.$izip_longest=function(e){if(!e[0])return[];var t=e[0].length,n=e.length;for(var r=1;rt&&(t=i)}var s=[];for(var o=0;o=t.length?t.length:e.length,r=[];for(var i=0;i1?e=n[0]:e=="php"&&(e="html"))}return e},getProfileName:function(){switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var e=s.require("resources").getVariable("profile");return e||(e=this.ace.session.getLines(0,2).join("").search(/]+XHTML/i)!=-1?"xhtml":"html"),e}return"xhtml"},prompt:function(e){return prompt(e)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return""}};var u={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab"},a=new o;t.commands=new r;for(var l in u)t.commands.addCommand({name:l,bindKey:u[l],exec:f});var c=function(e,n){var r=n;if(!r)return;var i=r.session.$modeId,s=i&&/css|less|sass|html|php/.test(i);e.enableEmmet===!1&&(s=!1),s?r.keyBinding.addKeyboardHandler(t.commands):r.keyBinding.removeKeyboardHandler(t.commands)};t.AceEmmetEditor=o,e("ace/config").defineOptions(i.prototype,"editor",{enableEmmet:{set:function(e){this[e?"on":"removeListener"]("changeMode",c),c({enableEmmet:!!e},this)},value:!0}}),t.setCore=function(e){s=e}}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/ext-keybinding_menu.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/ext/keybinding_menu",["require","exports","module","ace/editor","ace/ext/menu_tools/overlay_page","ace/ext/menu_tools/get_editor_keyboard_shortcuts"],function(e,t,n){function i(t){if(!document.getElementById("kbshortcutmenu")){var n=e("./menu_tools/overlay_page").overlayPage,r=e("./menu_tools/get_editor_keyboard_shortcuts").getEditorKeybordShortcuts,i=r(t),s=document.createElement("div"),o=i.reduce(function(e,t){return e+'
'+t.command+" : "+t.key+"
"},"");s.id="kbshortcutmenu",s.innerHTML="

Keyboard Shortcuts

"+o+"",n(t,s,"0","0","0",null)}}var r=e("ace/editor").Editor;n.exports.init=function(e){r.prototype.showKeyboardShortcuts=function(){i(this)},e.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e,t){e.showKeyboardShortcuts()}}])}}),ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){var r=e("../../lib/dom"),i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);-webkit-transition: all 0.5s;transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 1000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}";r.importCssString(i),n.exports.overlayPage=function(t,n,i,s,o,u){function l(e){e.keyCode===27&&a.click()}i=i?"top: "+i+";":"",o=o?"bottom: "+o+";":"",s=s?"right: "+s+";":"",u=u?"left: "+u+";":"";var a=document.createElement("div"),f=document.createElement("div");a.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",a.addEventListener("click",function(){document.removeEventListener("keydown",l),a.parentNode.removeChild(a),t.focus(),a=null}),document.addEventListener("keydown",l),f.style.cssText=i+s+o+u,f.addEventListener("click",function(e){e.stopPropagation()});var c=r.createElement("div");c.style.position="relative";var h=r.createElement("div");h.className="ace_closeButton",h.addEventListener("click",function(){a.click()}),c.appendChild(h),f.appendChild(c),f.appendChild(n),a.appendChild(f),document.body.appendChild(a),t.blur()}}),ace.define("ace/ext/menu_tools/get_editor_keyboard_shortcuts",["require","exports","module"],function(e,t,n){n.exports.getEditorKeybordShortcuts=function(t){var n=t.commands.byName,r,i,s=t.commands.platform,o=[];for(r in n)try{i=n[r].bindKey[s],i&&o.push({command:r,key:i})}catch(u){}return o}}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/ext-modelist.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/ext/modelist",["require","exports","module"],function(e,t,n){function i(e){var t=a.text,n=e.split(/[\/\\]/).pop();for(var i=0;i"),u||l.push(""+(h+o)+""),f.$renderLine(l,h,!0,!1),l.push("");var p="
:code
".replace(/:cssClass/,n.cssClass).replace(/:code/,l.join(""));return f.destroy(),{css:s+n.cssText,html:p}}}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/ext-statusbar.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(e,t,n){var r=e("ace/lib/dom"),i=e("ace/lib/lang"),s=function(e,t){this.element=r.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",t.appendChild(this.element);var n=i.delayedCall(function(){this.updateStatus(e)}.bind(this));e.on("changeStatus",function(){n.schedule(100)}),e.on("changeSelection",function(){n.schedule(100)})};(function(){this.updateStatus=function(e){function n(e,n){e&&t.push(e,n||"|")}var t=[];e.$vimModeHandler?n(e.$vimModeHandler.getStatusText()):e.commands.recording&&n("REC");var r=e.selection.lead;n(r.row+":"+r.column," ");if(!e.selection.isEmpty()){var i=e.getSelectionRange();n("("+(i.end.row-i.start.row)+":"+(i.end.column-i.start.column)+")")}t.pop(),this.element.textContent=t.join("")}}).call(s.prototype),t.StatusBar=s}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/ext-themelist.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/ext/themelist",["require","exports","module","ace/ext/themelist_utils/themes"],function(e,t,n){n.exports.themes=e("ace/ext/themelist_utils/themes").themes,n.exports.ThemeDescription=function(e){this.name=e,this.desc=e.split("_").map(function(e){return e[0].toUpperCase()+e.slice(1)}).join(" "),this.theme="ace/theme/"+e},n.exports.themesByName={},n.exports.themes=n.exports.themes.map(function(e){return n.exports.themesByName[e]=new n.exports.ThemeDescription(e),n.exports.themesByName[e]})}),ace.define("ace/ext/themelist_utils/themes",["require","exports","module"],function(e,t,n){n.exports.themes=["toy_chest","cobalt","solarized_dark","ambiance","clouds_midnight","chaos","clouds","tomorrow_night_blue","kr_theme","glarkio_black","merbivore","chrome","dawn","github","mono_industrial","terminal","merbivore_soft","twilight","tomorrow_night_bright","solarized_light","textmate","xcode","monokai","tomorrow_night_eighties","pastel_on_dark","tomorrow_night","crimson_editor","dreamweaver","vibrant_ink","tomorrow","idle_fingers","eclipse","glarkio_blue"]}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/ext-whitespace.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/ext/whitespace",["require","exports","module","ace/lib/lang"],function(e,t,n){var r=e("../lib/lang");t.$detectIndentation=function(e,t){function h(e){var t=0;for(var r=e;r0&&!(s%c)&&!(l%c)&&(r[c]=(r[c]||0)+1),n[l]=(n[l]||0)+1}s=l;while(a[a.length-1]=="\\")a=e[u++]}var p=r.reduce(function(e,t){return e+t},0),d={score:0,length:0},v=0;for(var u=1;u<12;u++){if(u==1){v=h(u);var m=1}else var m=h(u)/v;r[u]&&(m+=r[u]/p),m>d.score&&(d={score:m,length:u})}if(d.score&&d.score>1.4)var g=d.length;if(i>v+1)return{ch:" ",length:g};if(v+1>i)return{ch:" ",length:g}},t.detectIndentation=function(e){var n=e.getLines(0,1e3),r=t.$detectIndentation(n)||{};return r.ch&&e.setUseSoftTabs(r.ch==" "),r.length&&e.setTabSize(r.length),r},t.trimTrailingSpace=function(e){var t=e.getDocument(),n=t.getAllLines();for(var r=0,i=n.length;r*]\W|\*\*|[~:,\.&$]|->*?|=>/},{token:"paren.lparen",regex:"[\\[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"constant.numeric",regex:"[+-]?\\d+\\b"},{token:"variable.parameter",regex:/sy|pa?\d\d\d\d\|t\d\d\d\.|innnn/},{token:"keyword",regex:t},{token:"variable.parameter",regex:/\w+-\w+(?:-\w+)*/},{token:e,regex:"\\b\\w+\\b"},{caseInsensitive:!0}],qstring:[{token:"constant.language.escape",regex:"''"},{token:"string",regex:"'",next:"start"},{defaultToken:"string"}],string:[{token:"constant.language.escape",regex:"``"},{token:"string",regex:"`",next:"start"},{defaultToken:"string"}]}};r.inherits(s,i),t.AbapHighlightRules=s}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=this.indentationBlock(e,n);if(r)return r;var i=/\S/,o=e.getLine(n),u=o.search(i);if(u==-1||o[u]!="#")return;var a=o.length,f=e.getLength(),l=n,c=n;while(++nl){var p=e.getLine(c).length;return new s(l,a,c,p)}},this.getFoldWidget=function(e,t,n){var r=e.getLine(n),i=r.search(/\S/),s=e.getLine(n+1),o=e.getLine(n-1),u=o.search(/\S/),a=s.search(/\S/);if(i==-1)return e.foldWidgets[n-1]=u!=-1&&u|\\d*>&\\d*|\\d*(?:>>|>|<)|\\d*<&|\\d*<>"}],variable:[{token:"constant.numeric",regex:"%%\\w+"},{token:["markup.list","constant.other","markup.list"],regex:"(%)(\\w+)(%?)"}]},this.normalizeRules()};s.metaData={name:"Batch File",scopeName:"source.dosbatch",fileTypes:["bat"]},r.inherits(s,i),t.BatchFileHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-c9search.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/c9search",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/c9search_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/c9search"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./c9search_highlight_rules").C9SearchHighlightRules,u=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./folding/c9search").FoldMode,f=function(){this.$tokenizer=new s((new o).getRules()),this.$outdent=new u,this.foldingRules=new a};r.inherits(f,i),function(){this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(f.prototype),t.Mode=f}),ace.define("ace/mode/c9search_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:["c9searchresults.constant.numeric","c9searchresults.text","c9searchresults.text"],regex:"(^\\s+[0-9]+)(:\\s*)(.+)"},{token:["string","text"],regex:"(.+)(:$)"}]}};r.inherits(s,i),t.C9SearchHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/folding/c9search",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(){};r.inherits(o,s),function(){this.foldingStartMarker=/^(\S.*\:|Searching for.*)$/,this.foldingStopMarker=/^(\s+|Found.*)$/,this.getFoldWidgetRange=function(e,t,n){var r=e.doc.getAllLines(n),s=r[n],o=/^(Found.*|Searching for.*)$/,u=/^(\S.*\:|\s*)$/,a=o.test(s)?o:u;if(this.foldingStartMarker.test(s)){for(var f=n+1,l=e.getLength();f=0;f--){s=r[f];if(a.test(s))break}return new i(f,s.length,n,0)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-diff.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/diff",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/diff_highlight_rules","ace/mode/folding/diff"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./diff_highlight_rules").DiffHighlightRules,u=e("./folding/diff").FoldMode,a=function(){this.$tokenizer=new s((new o).getRules()),this.foldingRules=new u(["diff","index","\\+{3}","@@|\\*{5}"],"i")};r.inherits(a,i),function(){}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/diff_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{regex:"^(?:\\*{15}|={67}|-{3}|\\+{3})$",token:"punctuation.definition.separator.diff",name:"keyword"},{regex:"^(@@)(\\s*.+?\\s*)(@@)(.*)$",token:["constant","constant.numeric","constant","comment.doc.tag"]},{regex:"^(\\d+)([,\\d]+)(a|d|c)(\\d+)([,\\d]+)(.*)$",token:["constant.numeric","punctuation.definition.range.diff","constant.function","constant.numeric","punctuation.definition.range.diff","invalid"],name:"meta."},{regex:"^(\\-{3}|\\+{3}|\\*{3})( .+)$",token:["constant.numeric","meta.tag"]},{regex:"^([!+>])(.*?)(\\s*)$",token:["support.constant","text","invalid"]},{regex:"^([<\\-])(.*?)(\\s*)$",token:["support.function","string","invalid"]},{regex:"^(diff)(\\s+--\\w+)?(.+?)( .+)?$",token:["variable","variable","keyword","variable"]},{regex:"^Index.+$",token:"variable"},{regex:"\\s*$",token:"invalid"},{defaultToken:"invisible",caseInsensitive:!0}]}};r.inherits(s,i),t.DiffHighlightRules=s}),ace.define("ace/mode/folding/diff",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(e,t){this.regExpList=e,this.flag=t,this.foldingStartMarker=RegExp("^("+e.join("|")+")",this.flag)};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i={row:n,column:r.length},o=this.regExpList;for(var u=1;u<=o.length;u++){var a=RegExp("^("+o.slice(0,u).join("|")+")",this.flag);if(a.test(r))break}for(var f=e.getLength();++n|DEFERS|DOES>|INTERPRETATION>|OF|POSTPONE)(?=\\s|$)",caseInsensitive:!0},{token:"keyword.other.non-immediate.forth",regex:"(?:^|\\s)(?:'|||CHAR|END-STRUCT|INCLUDE[D]?|LOAD|NEEDS|REQUIRE[D]?|REVISION|SEE|STRUCT|THRU|USE)(?=\\s|$)",caseInsensitive:!0},{token:"keyword.other.warning.forth",regex:'(?:^|\\s)(?:~~|BREAK:|BREAK"|DBG)(?=\\s|$)',caseInsensitive:!0}],"#word-def":[{token:["keyword.other.compile-only.forth","keyword.other.compile-only.forth","meta.block.forth","entity.name.function.forth"],regex:"(:NONAME)|(^:|\\s:)(\\s)(\\S+)(?=\\s|$)",caseInsensitive:!0,push:[{token:"keyword.other.compile-only.forth",regex:";(?:CODE)?",caseInsensitive:!0,next:"pop"},{include:"#constant"},{include:"#comment"},{include:"#string"},{include:"#word"},{include:"#variable"},{include:"#storage"},{defaultToken:"meta.block.forth"}]}]},this.normalizeRules()};s.metaData={fileTypes:["frt","fs","ldr"],foldingStartMarker:"/\\*\\*|\\{\\s*$",foldingStopMarker:"\\*\\*/|^\\s*\\}",keyEquivalent:"^~F",name:"Forth",scopeName:"source.forth"},r.inherits(s,i),t.ForthHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-ini.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/ini",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/ini_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./ini_highlight_rules").IniHighlightRules,u=e("./folding/cstyle").FoldMode,a=function(){var e=new o;this.foldingRules=new u,this.$tokenizer=new s(e.getRules())};r.inherits(a,i),function(){this.lineCommentStart=";",this.blockComment={start:"/*",end:"*/"}}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/ini_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"punctuation.definition.comment.ini",regex:"#.*",push_:[{token:"comment.line.number-sign.ini",regex:"$",next:"pop"},{defaultToken:"comment.line.number-sign.ini"}]},{token:"punctuation.definition.comment.ini",regex:";.*",push_:[{token:"comment.line.semicolon.ini",regex:"$",next:"pop"},{defaultToken:"comment.line.semicolon.ini"}]},{token:["keyword.other.definition.ini","text","punctuation.separator.key-value.ini"],regex:"\\b([a-zA-Z0-9_.-]+)\\b(\\s*)(=)"},{token:["punctuation.definition.entity.ini","constant.section.group-title.ini","punctuation.definition.entity.ini"],regex:"^(\\[)(.*?)(\\])"},{token:"punctuation.definition.string.begin.ini",regex:"'",push:[{token:"punctuation.definition.string.end.ini",regex:"'",next:"pop"},{token:"constant.character.escape.ini",regex:"\\\\."},{defaultToken:"string.quoted.single.ini"}]},{token:"punctuation.definition.string.begin.ini",regex:'"',push:[{token:"punctuation.definition.string.end.ini",regex:'"',next:"pop"},{defaultToken:"string.quoted.double.ini"}]}]},this.normalizeRules()};s.metaData={fileTypes:["ini","conf"],keyEquivalent:"^~I",name:"Ini",scopeName:"source.ini"},r.inherits(s,i),t.IniHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-julia.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/julia",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/julia_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./julia_highlight_rules").JuliaHighlightRules,u=e("./folding/cstyle").FoldMode,a=function(){var e=new o;this.foldingRules=new u,this.$tokenizer=new s(e.getRules())};r.inherits(a,i),function(){this.lineCommentStart="#",this.blockComment=""}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/julia_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{include:"#function_decl"},{include:"#function_call"},{include:"#type_decl"},{include:"#keyword"},{include:"#operator"},{include:"#number"},{include:"#string"},{include:"#comment"}],"#bracket":[{token:"keyword.bracket.julia",regex:"\\(|\\)|\\[|\\]|\\{|\\}|,"}],"#comment":[{token:["punctuation.definition.comment.julia","comment.line.number-sign.julia"],regex:"(#)(?!\\{)(.*$)"}],"#function_call":[{token:["support.function.julia","text"],regex:"([a-zA-Z0-9_]+!?)(\\w*\\()"}],"#function_decl":[{token:["keyword.other.julia","meta.function.julia","entity.name.function.julia","meta.function.julia","text"],regex:"(function|macro)(\\s*)([a-zA-Z0-9_\\{]+!?)(\\w*)([(\\\\{])"}],"#keyword":[{token:"keyword.other.julia",regex:"\\b(?:function|type|immutable|macro|quote|abstract|bitstype|typealias|module|baremodule|new)\\b"},{token:"keyword.control.julia",regex:"\\b(?:if|else|elseif|while|for|in|begin|let|end|do|try|catch|finally|return|break|continue)\\b"},{token:"storage.modifier.variable.julia",regex:"\\b(?:global|local|const|export|import|importall|using)\\b"},{token:"variable.macro.julia",regex:"@\\w+\\b"}],"#number":[{token:"constant.numeric.julia",regex:"\\b0(?:x|X)[0-9a-fA-F]*|(?:\\b[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:(?:e|E)(?:\\+|-)?[0-9]*)?(?:im)?|\\bInf(?:32)?\\b|\\bNaN(?:32)?\\b|\\btrue\\b|\\bfalse\\b"}],"#operator":[{token:"keyword.operator.update.julia",regex:"=|:=|\\+=|-=|\\*=|/=|//=|\\.//=|\\.\\*=|\\\\=|\\.\\\\=|^=|\\.^=|%=|\\|=|&=|\\$=|<<=|>>="},{token:"keyword.operator.ternary.julia",regex:"\\?|:"},{token:"keyword.operator.boolean.julia",regex:"\\|\\||&&|!"},{token:"keyword.operator.arrow.julia",regex:"->|<-|-->"},{token:"keyword.operator.relation.julia",regex:">|<|>=|<=|==|!=|\\.>|\\.<|\\.>=|\\.>=|\\.==|\\.!=|\\.=|\\.!|<:|:>"},{token:"keyword.operator.range.julia",regex:":"},{token:"keyword.operator.shift.julia",regex:"<<|>>"},{token:"keyword.operator.bitwise.julia",regex:"\\||\\&|~"},{token:"keyword.operator.arithmetic.julia",regex:"\\+|-|\\*|\\.\\*|/|\\./|//|\\.//|%|\\.%|\\\\|\\.\\\\|\\^|\\.\\^"},{token:"keyword.operator.isa.julia",regex:"::"},{token:"keyword.operator.dots.julia",regex:"\\.(?=[a-zA-Z])|\\.\\.+"},{token:"keyword.operator.interpolation.julia",regex:"\\$#?(?=.)"},{token:["variable","keyword.operator.transposed-variable.julia"],regex:"(\\w+)((?:'|\\.')*\\.?')"},{token:"text",regex:"\\[|\\("},{token:["text","keyword.operator.transposed-matrix.julia"],regex:"([\\]\\)])((?:'|\\.')*\\.?')"}],"#string":[{token:"punctuation.definition.string.begin.julia",regex:"'",push:[{token:"punctuation.definition.string.end.julia",regex:"'",next:"pop"},{include:"#string_escaped_char"},{defaultToken:"string.quoted.single.julia"}]},{token:"punctuation.definition.string.begin.julia",regex:'"',push:[{token:"punctuation.definition.string.end.julia",regex:'"',next:"pop"},{include:"#string_escaped_char"},{defaultToken:"string.quoted.double.julia"}]},{token:"punctuation.definition.string.begin.julia",regex:'\\b\\w+"',push:[{token:"punctuation.definition.string.end.julia",regex:'"\\w*',next:"pop"},{include:"#string_custom_escaped_char"},{defaultToken:"string.quoted.custom-double.julia"}]},{token:"punctuation.definition.string.begin.julia",regex:"`",push:[{token:"punctuation.definition.string.end.julia",regex:"`",next:"pop"},{include:"#string_escaped_char"},{defaultToken:"string.quoted.backtick.julia"}]}],"#string_custom_escaped_char":[{token:"constant.character.escape.julia",regex:'\\\\"'}],"#string_escaped_char":[{token:"constant.character.escape.julia",regex:"\\\\(?:\\\\|[0-3]\\d{,2}|[4-7]\\d?|x[a-fA-F0-9]{,2}|u[a-fA-F0-9]{,4}|U[a-fA-F0-9]{,8}|.)"}],"#type_decl":[{token:["keyword.control.type.julia","meta.type.julia","entity.name.type.julia","entity.other.inherited-class.julia","punctuation.separator.inheritance.julia","entity.other.inherited-class.julia"],regex:"(type|immutable)(\\s+)([a-zA-Z0-9_]+)(?:(\\s*)(<:)(\\s*[.a-zA-Z0-9_:]+))?"},{token:["other.typed-variable.julia","support.type.julia"],regex:"([a-zA-Z0-9_]+)(::[a-zA-Z0-9_{}]+)"}]},this.normalizeRules()};s.metaData={fileTypes:["jl"],firstLineMatch:"^#!.*\\bjulia\\s*$",foldingStartMarker:"^\\s*(?:if|while|for|begin|function|macro|module|baremodule|type|immutable|let)\\b(?!.*\\bend\\b).*$",foldingStopMarker:"^\\s*(?:end)\\b.*$",name:"Julia",scopeName:"source.julia"},r.inherits(s,i),t.JuliaHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-latex.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/latex",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/latex_highlight_rules","ace/mode/folding/latex","ace/range"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./latex_highlight_rules").LatexHighlightRules,u=e("./folding/latex").FoldMode,a=e("../range").Range,f=function(){this.$tokenizer=new s((new o).getRules()),this.foldingRules=new u};r.inherits(f,i),function(){this.lineCommentStart="%"}.call(f.prototype),t.Mode=f}),ace.define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"keyword",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"string",regex:"\\$(?:(?:\\\\.)|(?:[^\\$\\\\]))*?\\$"},{token:"comment",regex:"%.*$"}]}};r.inherits(s,i),t.LatexHighlightRules=s}),ace.define("ace/mode/folding/latex",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=e("../../token_iterator").TokenIterator,u=t.FoldMode=function(){};r.inherits(u,i),function(){this.foldingStartMarker=/^\s*\\(begin)|(section|subsection)\b|{\s*$/,this.foldingStopMarker=/^\s*\\(end)\b|^\s*}/,this.getFoldWidgetRange=function(e,t,n){var r=e.doc.getLine(n),i=this.foldingStartMarker.exec(r);if(i)return i[1]?this.latexBlock(e,n,i[0].length-1):i[2]?this.latexSection(e,n,i[0].length-1):this.openingBracketBlock(e,"{",n,i.index);var i=this.foldingStopMarker.exec(r);if(i)return i[1]?this.latexBlock(e,n,i[0].length-1):this.closingBracketBlock(e,"}",n,i.index+i[0].length)},this.latexBlock=function(e,t,n){var r={"\\begin":1,"\\end":-1},i=new o(e,t,n),u=i.getCurrentToken();if(!u||u.type!=="keyword")return;var a=u.value,f=r[a],l=function(){var e=i.stepForward(),t=e.type=="lparen"?i.stepForward().value:"";return f===-1&&(i.stepBackward(),t&&i.stepBackward()),t},c=[l()],h=f===-1?i.getCurrentTokenColumn():e.getLine(t).length,p=t;i.step=f===-1?i.stepBackward:i.stepForward;while(u=i.step()){if(u.type!=="keyword")continue;var d=r[u.value];if(!d)continue;var v=l();if(d===f)c.unshift(v);else if(c.shift()!==v||!c.length)break}if(c.length)return;var t=i.getCurrentTokenRow();return f===-1?new s(t,e.getLine(t).length,p,h):(i.stepBackward(),new s(p,h,t,i.getCurrentTokenColumn()))},this.latexSection=function(e,t,n){var r=["\\subsection","\\section","\\begin","\\end"],i=new o(e,t,n),u=i.getCurrentToken();if(!u||u.type!="keyword")return;var a=r.indexOf(u.value),f=0,l=t;while(u=i.stepForward()){if(u.type!=="keyword")continue;var c=r.indexOf(u.value);if(c>=2){f||(l=i.getCurrentTokenRow()-1),f+=c==2?1:-1;if(f<0)break}else if(c>=a)break}f||(l=i.getCurrentTokenRow()-1);while(l>t&&!/\S/.test(e.getLine(l)))l--;return new s(t,e.getLine(t).length,l,e.getLine(l).length)}}.call(u.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-lisp.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/lisp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/lisp_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./lisp_highlight_rules").LispHighlightRules,u=function(){var e=new o;this.$tokenizer=new s(e.getRules())};r.inherits(u,i),function(){this.lineCommentStart=";"}.call(u.prototype),t.Mode=u}),ace.define("ace/mode/lisp_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="case|do|let|loop|if|else|when",t="eq|neq|and|or",n="null|nil",r="cons|car|cdr|cond|lambda|format|setq|setf|quote|eval|append|list|listp|memberp|t|load|progn",i=this.createKeywordMapper({"keyword.control":e,"keyword.operator":t,"constant.language":n,"support.function":r},"identifier",!0);this.$rules={start:[{token:"comment",regex:";.*$"},{token:["storage.type.function-type.lisp","text","entity.name.function.lisp"],regex:"(?:\\b(?:(defun|defmethod|defmacro))\\b)(\\s+)((?:\\w|\\-|\\!|\\?)*)"},{token:["punctuation.definition.constant.character.lisp","constant.character.lisp"],regex:"(#)((?:\\w|[\\\\+-=<>'\"&#])+)"},{token:["punctuation.definition.variable.lisp","variable.other.global.lisp","punctuation.definition.variable.lisp"],regex:"(\\*)(\\S*)(\\*)"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+(?:L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?(?:L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{token:i,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"string",regex:'"(?=.)',next:"qqstring"}],qqstring:[{token:"constant.character.escape.lisp",regex:"\\\\."},{token:"string",regex:'[^"\\\\]+'},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"}]}};r.inherits(s,i),t.LispHighlightRules=s}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-livescript.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/livescript",["require","exports","module","ace/tokenizer","ace/mode/matching_brace_outdent","ace/range","ace/mode/text"],function(e,t,n){function u(e,t){function n(){}return n.prototype=(e.superclass=t).prototype,(e.prototype=new n).constructor=e,typeof t.extended=="function"&&t.extended(e),e}function a(e,t){var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}var r,i,s,o;r="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",t.Mode=i=function(t){function o(){var t;this.$tokenizer=new(e("../tokenizer").Tokenizer)(o.Rules);if(t=e("../mode/matching_brace_outdent"))this.$outdent=new t.MatchingBraceOutdent}var n,i=u((a(o,t).displayName="LiveScriptMode",o),t).prototype,s=o;return n=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+r+")?))\\s*$"),i.getNextLineIndent=function(e,t,r){var i,s;return i=this.$getIndent(t),s=this.$tokenizer.getLineTokens(t,e).tokens,(!s.length||s[s.length-1].type!=="comment")&&e==="start"&&n.test(t)&&(i+=r),i},i.toggleCommentLines=function(t,n,r,i){var s,o,u,a,f,l;s=/^(\s*)#/,o=new(e("../range").Range)(0,0,0,0);for(u=r;u<=i;++u)a=u,(f=s.test(l=n.getLine(a)))?l=l.replace(s,"$1"):l=l.replace(/^\s*/,"$&#"),o.end.row=o.start.row=a,o.end.column=l.length+1,n.replace(o,l);return 1-f*2},i.checkOutdent=function(e,t,n){var r;return(r=this.$outdent)!=null?r.checkOutdent(t,n):void 8},i.autoOutdent=function(e,t,n){var r;return(r=this.$outdent)!=null?r.autoOutdent(t,n):void 8},o}(e("../mode/text").Mode),s="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",o={token:"string",regex:".+"},i.Rules={start:[{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+s},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+s},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+s},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+s},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+s},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+s},{token:"identifier",regex:r+"\\s*:(?![:=])"},{token:"variable",regex:r},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:r,next:"start"},{token:"text",regex:".",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},o],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},o],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},o],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},o],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},o],words:[{token:"string",regex:".*?\\]>",next:"key"},o]}}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-lucene.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/lucene",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/lucene_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./lucene_highlight_rules").LuceneHighlightRules,u=function(){this.$tokenizer=new s((new o).getRules())};r.inherits(u,i),t.Mode=u}),ace.define("ace/mode/lucene_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("../lib/lang"),s=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"constant.character.negation",regex:"[\\-]"},{token:"constant.character.interro",regex:"[\\?]"},{token:"constant.character.asterisk",regex:"[\\*]"},{token:"constant.character.proximity",regex:"~[0-9]+\\b"},{token:"keyword.operator",regex:"(?:AND|OR|NOT)\\b"},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"keyword",regex:"[\\S]+:"},{token:"string",regex:'".*?"'},{token:"text",regex:"\\s+"}]}};r.inherits(o,s),t.LuceneHighlightRules=o}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-makefile.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/makefile",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/makefile_highlight_rules","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./makefile_highlight_rules").MakefileHighlightRules,u=e("./folding/coffee").FoldMode,a=function(){var e=new o;this.foldingRules=new u,this.$tokenizer=new s(e.getRules())};r.inherits(a,i),function(){this.lineCommentStart="#"}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/makefile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/sh_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=e("./sh_highlight_rules"),o=function(){var e=this.createKeywordMapper({keyword:s.reservedKeywords,"support.function.builtin":s.languageConstructs,"invalid.deprecated":"debugger"},"string");this.$rules={start:[{token:"string.interpolated.backtick.makefile",regex:"`",next:"shell-start"},{token:"punctuation.definition.comment.makefile",regex:/#(?=.)/,next:"comment"},{token:["keyword.control.makefile"],regex:"^(?:\\s*\\b)(\\-??include|ifeq|ifneq|ifdef|ifndef|else|endif|vpath|export|unexport|define|endef|override)(?:\\b)"},{token:["entity.name.function.makefile","text"],regex:"^([^\\t ]+(?:\\s[^\\t ]+)*:)(\\s*.*)"}],comment:[{token:"punctuation.definition.comment.makefile",regex:/.+\\/},{token:"punctuation.definition.comment.makefile",regex:".+",next:"start"}],"shell-start":[{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"string",regex:"\\w+"},{token:"string.interpolated.backtick.makefile",regex:"`",next:"start"}]}};r.inherits(o,i),t.MakefileHighlightRules=o}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=t.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set",o=t.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",u=function(){var e=this.createKeywordMapper({keyword:s,"support.function.builtin":o,"invalid.deprecated":"debugger"},"identifier"),t="(?:(?:[1-9]\\d*)|(?:0))",n="(?:\\.\\d+)",r="(?:\\d+)",i="(?:(?:"+r+"?"+n+")|(?:"+r+"\\.))",u="(?:(?:"+i+"|"+r+")"+")",a="(?:"+u+"|"+i+")",f="(?:&"+r+")",l="[a-zA-Z][a-zA-Z0-9_]*",c="(?:(?:\\$"+l+")|(?:"+l+"=))",h="(?:\\$(?:SHLVL|\\$|\\!|\\?))",p="(?:"+l+"\\s*\\(\\))";this.$rules={start:[{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string",regex:'"(?:[^\\\\]|\\\\.)*?"'},{token:"variable.language",regex:h},{token:"variable",regex:c},{token:"support.function",regex:p},{token:"support.function",regex:f},{token:"string",regex:"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:a},{token:"constant.numeric",regex:t+"\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"}]}};r.inherits(u,i),t.ShHighlightRules=u}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=this.indentationBlock(e,n);if(r)return r;var i=/\S/,o=e.getLine(n),u=o.search(i);if(u==-1||o[u]!="#")return;var a=o.length,f=e.getLength(),l=n,c=n;while(++nl){var p=e.getLine(c).length;return new s(l,a,c,p)}},this.getFoldWidget=function(e,t,n){var r=e.getLine(n),i=r.search(/\S/),s=e.getLine(n+1),o=e.getLine(n-1),u=o.search(/\S/),a=s.search(/\S/);if(i==-1)return e.foldWidgets[n-1]=u!=-1&&u>|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}]}};r.inherits(s,i),t.MushCodeRules=s}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-pascal.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/pascal",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/pascal_highlight_rules","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./pascal_highlight_rules").PascalHighlightRules,u=e("./folding/coffee").FoldMode,a=function(){var e=new o;this.foldingRules=new u,this.$tokenizer=new s(e.getRules())};r.inherits(a,i),function(){this.lineCommentStart=["--","//"],this.blockComment=[{start:"(*",end:"*)"},{start:"{",end:"}"}]}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/pascal_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{caseInsensitive:!0,token:"keyword.control.pascal",regex:"\\b(?:(absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|constructor|destructor|div|do|do|else|end|except|export|exports|external|far|file|finalization|finally|for|forward|goto|if|implementation|import|in|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|packed|pow|private|program|property|protected|public|published|qualified|record|repeat|resident|restricted|segment|set|shl|shr|then|to|try|type|unit|until|uses|value|var|view|virtual|while|with|xor))\\b"},{caseInsensitive:!0,token:["variable.pascal","text","storage.type.prototype.pascal","entity.name.function.prototype.pascal"],regex:"\\b(function|procedure)(\\s+)(\\w+)(\\.\\w+)?(?=(?:\\(.*?\\))?;\\s*(?:attribute|forward|external))"},{caseInsensitive:!0,token:["variable.pascal","text","storage.type.function.pascal","entity.name.function.pascal"],regex:"\\b(function|procedure)(\\s+)(\\w+)(\\.\\w+)?"},{token:"constant.numeric.pascal",regex:"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{token:"punctuation.definition.comment.pascal",regex:"--.*$",push_:[{token:"comment.line.double-dash.pascal.one",regex:"$",next:"pop"},{defaultToken:"comment.line.double-dash.pascal.one"}]},{token:"punctuation.definition.comment.pascal",regex:"//.*$",push_:[{token:"comment.line.double-slash.pascal.two",regex:"$",next:"pop"},{defaultToken:"comment.line.double-slash.pascal.two"}]},{token:"punctuation.definition.comment.pascal",regex:"\\(\\*",push:[{token:"punctuation.definition.comment.pascal",regex:"\\*\\)",next:"pop"},{defaultToken:"comment.block.pascal.one"}]},{token:"punctuation.definition.comment.pascal",regex:"\\{",push:[{token:"punctuation.definition.comment.pascal",regex:"\\}",next:"pop"},{defaultToken:"comment.block.pascal.two"}]},{token:"punctuation.definition.string.begin.pascal",regex:'"',push:[{token:"constant.character.escape.pascal",regex:"\\\\."},{token:"punctuation.definition.string.end.pascal",regex:'"',next:"pop"},{defaultToken:"string.quoted.double.pascal"}]},{token:"punctuation.definition.string.begin.pascal",regex:"'",push:[{token:"constant.character.escape.apostrophe.pascal",regex:"''"},{token:"punctuation.definition.string.end.pascal",regex:"'",next:"pop"},{defaultToken:"string.quoted.single.pascal"}]},{token:"keyword.operator",regex:"[+\\-;,/*%]|:=|="}]},this.normalizeRules()};r.inherits(s,i),t.PascalHighlightRules=s}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=this.indentationBlock(e,n);if(r)return r;var i=/\S/,o=e.getLine(n),u=o.search(i);if(u==-1||o[u]!="#")return;var a=o.length,f=e.getLength(),l=n,c=n;while(++nl){var p=e.getLine(c).length;return new s(l,a,c,p)}},this.getFoldWidget=function(e,t,n){var r=e.getLine(n),i=r.search(/\S/),s=e.getLine(n+1),o=e.getLine(n-1),u=o.search(/\S/),a=s.search(/\S/);if(i==-1)return e.foldWidgets[n-1]=u!=-1&&u>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:(?:\\\\.)|(?:[^"\\\\]))*?"',next:"start"},{token:"string",regex:".+"}],qstring:[{token:"string",regex:"(?:(?:\\\\.)|(?:[^'\\\\]))*?'",next:"start"},{token:"string",regex:".+"}],block_comment:[{token:"comment.doc",regex:"^=cut\\b",next:"start"},{defaultToken:"comment.doc"}]}};r.inherits(s,i),t.PerlHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-properties.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/properties",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/properties_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./properties_highlight_rules").PropertiesHighlightRules,u=function(){var e=new o;this.$tokenizer=new s(e.getRules())};r.inherits(u,i),t.Mode=u}),ace.define("ace/mode/properties_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=/\\u[0-9a-fA-F]{4}|\\/;this.$rules={start:[{token:"comment",regex:/[!#].*$/},{token:"keyword",regex:/[=:]$/},{token:"keyword",regex:/[=:]/,next:"value"},{token:"constant.language.escape",regex:e},{defaultToken:"variable"}],value:[{regex:/\\$/,token:"string",next:"value"},{regex:/$/,token:"string",next:"start"},{token:"constant.language.escape",regex:e},{defaultToken:"string"}]}};r.inherits(s,i),t.PropertiesHighlightRules=s}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-python.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./python_highlight_rules").PythonHighlightRules,u=e("./folding/pythonic").FoldMode,a=e("../range").Range,f=function(){this.$tokenizer=new s((new o).getRules()),this.foldingRules=new u("\\:")};r.inherits(f,i),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.$tokenizer.getLineTokens(t,e),s=i.tokens;if(s.length&&s[s.length-1].type=="comment")return r;if(e=="start"){var o=t.match(/^.*[\{\(\[\:]\s*$/);o&&(r+=n)}return r};var e={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(t,n,r){if(r!=="\r\n"&&r!=="\r"&&r!=="\n")return!1;var i=this.$tokenizer.getLineTokens(n.trim(),t).tokens;if(!i)return!1;do var s=i.pop();while(s&&(s.type=="comment"||s.type=="text"&&s.value.match(/^\s+$/)));return s?s.type=="keyword"&&e[s.value]:!1},this.autoOutdent=function(e,t,n){n+=1;var r=this.$getIndent(t.getLine(n)),i=t.getTabString();r.slice(-i.length)==i&&t.remove(new a(n,r.length-i.length,n,r.length))}}.call(f.prototype),t.Mode=f}),ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield",t="True|False|None|NotImplemented|Ellipsis|__debug__",n="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern",r=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":n,"constant.language":t,keyword:e},"identifier"),i="(?:r|u|ur|R|U|UR|Ur|uR)?",s="(?:(?:[1-9]\\d*)|(?:0))",o="(?:0[oO]?[0-7]+)",u="(?:0[xX][\\dA-Fa-f]+)",a="(?:0[bB][01]+)",f="(?:"+s+"|"+o+"|"+u+"|"+a+")",l="(?:[eE][+-]?\\d+)",c="(?:\\.\\d+)",h="(?:\\d+)",p="(?:(?:"+h+"?"+c+")|(?:"+h+"\\.))",d="(?:(?:"+p+"|"+h+")"+l+")",v="(?:"+d+"|"+p+")";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:i+'"{3}(?:[^\\\\]|\\\\.)*?"{3}'},{token:"string",regex:i+'"{3}.*$',next:"qqstring"},{token:"string",regex:i+'"(?:[^\\\\]|\\\\.)*?"'},{token:"string",regex:i+"'{3}(?:[^\\\\]|\\\\.)*?'{3}"},{token:"string",regex:i+"'{3}.*$",next:"qstring"},{token:"string",regex:i+"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:"(?:"+v+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:v},{token:"constant.numeric",regex:f+"[lL]\\b"},{token:"constant.numeric",regex:f+"\\b"},{token:r,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:[^\\\\]|\\\\.)*?"{3}',next:"start"},{token:"string",regex:".+"}],qstring:[{token:"string",regex:"(?:[^\\\\]|\\\\.)*?'{3}",next:"start"},{token:"string",regex:".+"}]}};r.inherits(s,i),t.PythonHighlightRules=s}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+e+")(?:\\s*)(?:#.*)?$")};r.inherits(s,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i)return i[1]?this.openingBracketBlock(e,i[1],n,i.index):i[2]?this.indentationBlock(e,n,i.index+i[2].length):this.indentationBlock(e,n)}}.call(s.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-rdoc.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/rdoc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/rdoc_highlight_rules","ace/mode/matching_brace_outdent"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,u=e("./rdoc_highlight_rules").RDocHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,f=function(e){this.$tokenizer=new s((new u).getRules()),this.$outdent=new a};r.inherits(f,i),function(){this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)}}.call(f.prototype),t.Mode=f}),ace.define("ace/mode/rdoc_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/latex_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("../lib/lang"),s=e("./text_highlight_rules").TextHighlightRules,o=e("./latex_highlight_rules"),u=function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:"text",regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b",next:"nospell"},{token:"keyword",regex:"\\\\(?:[a-zA-z0-9]+|[^a-zA-z0-9])"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],nospell:[{token:"comment",regex:"%.*$",next:"start"},{token:"nospell.text",regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b"},{token:"keyword",regex:"\\\\(?:[a-zA-z0-9]+|[^a-zA-z0-9])",next:"start"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])]"},{token:"paren.keyword.operator",regex:"}",next:"start"},{token:"nospell.text",regex:"\\s+"},{token:"nospell.text",regex:"\\w+"}]}};r.inherits(u,s),t.RDocHighlightRules=u}),ace.define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"keyword",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"string",regex:"\\$(?:(?:\\\\.)|(?:[^\\$\\\\]))*?\\$"},{token:"comment",regex:"%.*$"}]}};r.inherits(s,i),t.LatexHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-rust.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/rust",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/rust_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./rust_highlight_rules").RustHighlightRules,u=e("./folding/cstyle").FoldMode,a=function(){var e=new o;this.foldingRules=new u,this.$tokenizer=new s(e.getRules())};r.inherits(a,i),function(){this.lineCommentStart="/\\*",this.blockComment={start:"/*",end:"*/"}}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/rust_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"variable.other.source.rust",regex:"'[a-zA-Z_][a-zA-Z0-9_]*[^\\']"},{token:"string.quoted.single.source.rust",regex:"'",push:[{token:"string.quoted.single.source.rust",regex:"'",next:"pop"},{include:"#rust_escaped_character"},{defaultToken:"string.quoted.single.source.rust"}]},{token:"string.quoted.double.source.rust",regex:'"',push:[{token:"string.quoted.double.source.rust",regex:'"',next:"pop"},{include:"#rust_escaped_character"},{defaultToken:"string.quoted.double.source.rust"}]},{token:["keyword.source.rust","meta.function.source.rust","entity.name.function.source.rust","meta.function.source.rust"],regex:"\\b(fn)(\\s+)([a-zA-Z_][a-zA-Z0-9_][\\w\\:,+ \\'<>]*)(\\s*\\()"},{token:"support.constant",regex:"\\b[a-zA-Z_][\\w\\d]*::"},{token:"keyword.source.rust",regex:"\\b(?:as|assert|break|claim|const|copy|Copy|do|drop|else|extern|fail|for|if|impl|in|let|log|loop|match|mod|module|move|mut|Owned|priv|pub|pure|ref|return|unchecked|unsafe|use|while|mod|Send|static|trait|class|struct|enum|type)\\b"},{token:"storage.type.source.rust",regex:"\\b(?:Self|m32|m64|m128|f80|f16|f128|int|uint|float|char|bool|u8|u16|u32|u64|f32|f64|i8|i16|i32|i64|str|option|either|c_float|c_double|c_void|FILE|fpos_t|DIR|dirent|c_char|c_schar|c_uchar|c_short|c_ushort|c_int|c_uint|c_long|c_ulong|size_t|ptrdiff_t|clock_t|time_t|c_longlong|c_ulonglong|intptr_t|uintptr_t|off_t|dev_t|ino_t|pid_t|mode_t|ssize_t)\\b"},{token:"variable.language.source.rust",regex:"\\bself\\b"},{token:"keyword.operator",regex:"!|\\$|\\*|\\-\\-|\\-|\\+\\+|\\+|-->|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=|,|;"},{token:"constant.language.source.rust",regex:"\\b(?:true|false|Some|None|Left|Right|Ok|Err)\\b"},{token:"support.constant.source.rust",regex:"\\b(?:EXIT_FAILURE|EXIT_SUCCESS|RAND_MAX|EOF|SEEK_SET|SEEK_CUR|SEEK_END|_IOFBF|_IONBF|_IOLBF|BUFSIZ|FOPEN_MAX|FILENAME_MAX|L_tmpnam|TMP_MAX|O_RDONLY|O_WRONLY|O_RDWR|O_APPEND|O_CREAT|O_EXCL|O_TRUNC|S_IFIFO|S_IFCHR|S_IFBLK|S_IFDIR|S_IFREG|S_IFMT|S_IEXEC|S_IWRITE|S_IREAD|S_IRWXU|S_IXUSR|S_IWUSR|S_IRUSR|F_OK|R_OK|W_OK|X_OK|STDIN_FILENO|STDOUT_FILENO|STDERR_FILENO)\\b"},{token:"meta.preprocessor.source.rust",regex:"\\b\\w\\(\\w\\)*!|#\\[[\\w=\\(\\)_]+\\]\\b"},{token:"constant.numeric.integer.source.rust",regex:"\\b(?:[0-9][0-9_]*|[0-9][0-9_]*(?:u|u8|u16|u32|u64)|[0-9][0-9_]*(?:i|i8|i16|i32|i64))\\b"},{token:"constant.numeric.hex.source.rust",regex:"\\b(?:0x[a-fA-F0-9_]+|0x[a-fA-F0-9_]+(?:u|u8|u16|u32|u64)|0x[a-fA-F0-9_]+(?:i|i8|i16|i32|i64))\\b"},{token:"constant.numeric.binary.source.rust",regex:"\\b(?:0b[01_]+|0b[01_]+(?:u|u8|u16|u32|u64)|0b[01_]+(?:i|i8|i16|i32|i64))\\b"},{token:"constant.numeric.float.source.rust",regex:"[0-9][0-9_]*(?:f32|f64|f)|[0-9][0-9_]*[eE][+-]=[0-9_]+|[0-9][0-9_]*[eE][+-]=[0-9_]+(?:f32|f64|f)|[0-9][0-9_]*\\.[0-9_]+|[0-9][0-9_]*\\.[0-9_]+(?:f32|f64|f)|[0-9][0-9_]*\\.[0-9_]+%[eE][+-]=[0-9_]+|[0-9][0-9_]*\\.[0-9_]+%[eE][+-]=[0-9_]+(?:f32|f64|f)"},{token:"comment.line.documentation.source.rust",regex:"//!.*$",push_:[{token:"comment.line.documentation.source.rust",regex:"$",next:"pop"},{defaultToken:"comment.line.documentation.source.rust"}]},{token:"comment.line.double-dash.source.rust",regex:"//.*$",push_:[{token:"comment.line.double-dash.source.rust",regex:"$",next:"pop"},{defaultToken:"comment.line.double-dash.source.rust"}]},{token:"comment.block.source.rust",regex:"/\\*",push:[{token:"comment.block.source.rust",regex:"\\*/",next:"pop"},{defaultToken:"comment.block.source.rust"}]}],"#rust_escaped_character":[{token:"constant.character.escape.source.rust",regex:"\\\\(?:x[\\da-fA-F]{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"}]},this.normalizeRules()};s.metaData={fileTypes:["rs","rc"],foldingStartMarker:"^.*\\bfn\\s*(\\w+\\s*)?\\([^\\)]*\\)(\\s*\\{[^\\}]*)?\\s*$",foldingStopMarker:"^\\s*\\}",name:"Rust",scopeName:"source.rust"},r.inherits(s,i),t.RustHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-scheme.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/scheme",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/scheme_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./scheme_highlight_rules").SchemeHighlightRules,u=function(){var e=new o;this.$tokenizer=new s(e.getRules())};r.inherits(u,i),function(){this.lineCommentStart=";"}.call(u.prototype),t.Mode=u}),ace.define("ace/mode/scheme_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="case|do|let|loop|if|else|when",t="eq?|eqv?|equal?|and|or|not|null?",n="#t|#f",r="cons|car|cdr|cond|lambda|lambda*|syntax-rules|format|set!|quote|eval|append|list|list?|member?|load",i=this.createKeywordMapper({"keyword.control":e,"keyword.operator":t,"constant.language":n,"support.function":r},"identifier",!0);this.$rules={start:[{token:"comment",regex:";.*$"},{token:["storage.type.function-type.scheme","text","entity.name.function.scheme"],regex:"(?:\\b(?:(define|define-syntax|define-macro))\\b)(\\s+)((?:\\w|\\-|\\!|\\?)*)"},{token:"punctuation.definition.constant.character.scheme",regex:"#:\\S+"},{token:["punctuation.definition.variable.scheme","variable.other.global.scheme","punctuation.definition.variable.scheme"],regex:"(\\*)(\\S*)(\\*)"},{token:"constant.numeric",regex:"#[xXoObB][0-9a-fA-F]+"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?"},{token:i,regex:"[a-zA-Z_#][a-zA-Z0-9_\\-\\?\\!\\*]*"},{token:"string",regex:'"(?=.)',next:"qqstring"}],qqstring:[{token:"constant.character.escape.scheme",regex:"\\\\."},{token:"string",regex:'[^"\\\\]+',merge:!0},{token:"string",regex:"\\\\$",next:"qqstring",merge:!0},{token:"string",regex:'"|$',next:"start",merge:!0}]}};r.inherits(s,i),t.SchemeHighlightRules=s}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-sh.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/sh_highlight_rules","ace/range"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./sh_highlight_rules").ShHighlightRules,u=e("../range").Range,a=function(){this.$tokenizer=new s((new o).getRules())};r.inherits(a,i),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.$tokenizer.getLineTokens(t,e),s=i.tokens;if(s.length&&s[s.length-1].type=="comment")return r;if(e=="start"){var o=t.match(/^.*[\{\(\[\:]\s*$/);o&&(r+=n)}return r};var e={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(t,n,r){if(r!=="\r\n"&&r!=="\r"&&r!=="\n")return!1;var i=this.$tokenizer.getLineTokens(n.trim(),t).tokens;if(!i)return!1;do var s=i.pop();while(s&&(s.type=="comment"||s.type=="text"&&s.value.match(/^\s+$/)));return s?s.type=="keyword"&&e[s.value]:!1},this.autoOutdent=function(e,t,n){n+=1;var r=this.$getIndent(t.getLine(n)),i=t.getTabString();r.slice(-i.length)==i&&t.remove(new u(n,r.length-i.length,n,r.length))}}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=t.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set",o=t.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",u=function(){var e=this.createKeywordMapper({keyword:s,"support.function.builtin":o,"invalid.deprecated":"debugger"},"identifier"),t="(?:(?:[1-9]\\d*)|(?:0))",n="(?:\\.\\d+)",r="(?:\\d+)",i="(?:(?:"+r+"?"+n+")|(?:"+r+"\\.))",u="(?:(?:"+i+"|"+r+")"+")",a="(?:"+u+"|"+i+")",f="(?:&"+r+")",l="[a-zA-Z][a-zA-Z0-9_]*",c="(?:(?:\\$"+l+")|(?:"+l+"=))",h="(?:\\$(?:SHLVL|\\$|\\!|\\?))",p="(?:"+l+"\\s*\\(\\))";this.$rules={start:[{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string",regex:'"(?:[^\\\\]|\\\\.)*?"'},{token:"variable.language",regex:h},{token:"variable",regex:c},{token:"support.function",regex:p},{token:"support.function",regex:f},{token:"string",regex:"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:a},{token:"constant.numeric",regex:t+"\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"}]}};r.inherits(u,i),t.ShHighlightRules=u}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-snippets.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/snippets",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,u=function(){var e="SELECTION|CURRENT_WORD|SELECTED_TEXT|CURRENT_LINE|LINE_INDEX|LINE_NUMBER|SOFT_TABS|TAB_SIZE|FILENAME|FILEPATH|FULLNAME";this.$rules={start:[{token:"constant.language.escape",regex:/\\[\$}`\\]/},{token:"keyword",regex:"\\$(?:TM_)?(?:"+e+")\\b"},{token:"variable",regex:"\\$\\w+"},{onMatch:function(e,t,n){return n[1]?n[1]++:n.unshift(t,1),this.tokenName},tokenName:"markup.list",regex:"\\${",next:"varDecl"},{onMatch:function(e,t,n){return n[1]?(n[1]--,n[1]||n.splice(0,2),this.tokenName):"text"},tokenName:"markup.list",regex:"}"},{token:"doc.comment",regex:/^\${2}-{5,}$/}],varDecl:[{regex:/\d+\b/,token:"constant.numeric"},{token:"keyword",regex:"(?:TM_)?(?:"+e+")\\b"},{token:"variable",regex:"\\w+"},{regex:/:/,token:"punctuation.operator",next:"start"},{regex:/\//,token:"string.regex",next:"regexp"},{regex:"",next:"start"}],regexp:[{regex:/\\./,token:"escape"},{regex:/\[/,token:"regex.start",next:"charClass"},{regex:"/",token:"string.regex",next:"format"},{token:"string.regex",regex:"."}],charClass:[{regex:"\\.",token:"escape"},{regex:"\\]",token:"regex.end",next:"regexp"},{token:"string.regex",regex:"."}],format:[{regex:/\\[ulULE]/,token:"keyword"},{regex:/\$\d+/,token:"variable"},{regex:"/[gim]*:?",token:"string.regex",next:"start"},{token:"string",regex:"."}]}};r.inherits(u,o),t.SnippetHighlightRules=u;var a=function(){this.$rules={start:[{token:"text",regex:"^\\t",next:"sn-start"},{token:"invalid",regex:/^ \s*/},{token:"comment",regex:/^#.*/},{token:"constant.language.escape",regex:"^regex ",next:"regex"},{token:"constant.language.escape",regex:"^(trigger|endTrigger|name|snippet|guard|endGuard|tabTrigger|key)\\b"}],regex:[{token:"text",regex:"\\."},{token:"keyword",regex:"/"},{token:"empty",regex:"$",next:"start"}]},this.embedRules(u,"sn-",[{token:"text",regex:"^\\t",next:"sn-start"},{onMatch:function(e,t,n){return n.splice(n.length),this.tokenName},tokenName:"text",regex:"^(?! )",next:"start"}])};r.inherits(a,o),t.SnippetGroupHighlightRules=a;var f=e("./folding/coffee").FoldMode,l=function(){var e=new a;this.foldingRules=new f,this.$tokenizer=new s(e.getRules())};r.inherits(l,i),function(){this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)}}.call(l.prototype),t.Mode=l}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=this.indentationBlock(e,n);if(r)return r;var i=/\S/,o=e.getLine(n),u=o.search(i);if(u==-1||o[u]!="#")return;var a=o.length,f=e.getLength(),l=n,c=n;while(++nl){var p=e.getLine(c).length;return new s(l,a,c,p)}},this.getFoldWidget=function(e,t,n){var r=e.getLine(n),i=r.search(/\S/),s=e.getLine(n+1),o=e.getLine(n-1),u=o.search(/\S/),a=s.search(/\S/);if(i==-1)return e.foldWidgets[n-1]=u!=-1&&u|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]}};r.inherits(s,i),t.SqlHighlightRules=s}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-tcl.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/tcl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/folding/cstyle","ace/mode/tcl_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./folding/cstyle").FoldMode,u=e("./tcl_highlight_rules").TclHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../range").Range,l=function(){this.$tokenizer=new s((new u).getRules()),this.$outdent=new a,this.foldingRules=new o};r.inherits(l,i),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.$tokenizer.getLineTokens(t,e),s=i.tokens;if(s.length&&s[s.length-1].type=="comment")return r;if(e=="start"){var o=t.match(/^.*[\{\(\[]\s*$/);o&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(l.prototype),t.Mode=l}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}),ace.define("ace/mode/tcl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment",regex:"#.*\\\\$",next:"commentfollow"},{token:"comment",regex:"#.*$"},{token:"support.function",regex:"[\\\\]$",next:"splitlineStart"},{token:"text",regex:'[\\\\](?:["]|[{]|[}]|[[]|[]]|[$]|[])'},{token:"text",regex:"^|[^{][;][^}]|[/\r/]",next:"commandItem"},{token:"string",regex:'[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:'[ ]*["]',next:"qqstring"},{token:"variable.instance",regex:"[$]",next:"variable"},{token:"support.function",regex:"!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|{\\*}|;|::"},{token:"identifier",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"paren.lparen",regex:"[[{]",next:"commandItem"},{token:"paren.lparen",regex:"[(]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],commandItem:[{token:"comment",regex:"#.*\\\\$",next:"commentfollow"},{token:"comment",regex:"#.*$",next:"start"},{token:"string",regex:'[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"variable.instance",regex:"[$]",next:"variable"},{token:"support.function",regex:"(?:[:][:])[a-zA-Z0-9_/]+(?:[:][:])",next:"commandItem"},{token:"support.function",regex:"[a-zA-Z0-9_/]+(?:[:][:])",next:"commandItem"},{token:"support.function",regex:"(?:[:][:])",next:"commandItem"},{token:"paren.rparen",regex:"[\\])}]"},{token:"support.function",regex:"!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|{\\*}|;|::"},{token:"keyword",regex:"[a-zA-Z0-9_/]+",next:"start"}],commentfollow:[{token:"comment",regex:".*\\\\$",next:"commentfollow"},{token:"comment",regex:".+",next:"start"}],splitlineStart:[{token:"text",regex:"^.",next:"start"}],variable:[{token:"variable.instance",regex:"[a-zA-Z_\\d]+(?:[(][a-zA-Z_\\d]+[)])?",next:"start"},{token:"variable.instance",regex:"{?[a-zA-Z_\\d]+}?",next:"start"}],qqstring:[{token:"string",regex:'(?:[^\\\\]|\\\\.)*?["]',next:"start"},{token:"string",regex:".+"}]}};r.inherits(s,i),t.TclHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-tex.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/tex",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/tex_highlight_rules","ace/mode/matching_brace_outdent"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,u=e("./tex_highlight_rules").TexHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,f=function(e){e?this.$tokenizer=new s((new o).getRules()):this.$tokenizer=new s((new u).getRules()),this.$outdent=new a};r.inherits(f,i),function(){this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.allowAutoInsert=function(){return!1}}.call(f.prototype),t.Mode=f}),ace.define("ace/mode/tex_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("../lib/lang"),s=e("./text_highlight_rules").TextHighlightRules,o=function(e){e||(e="text"),this.$rules={start:[{token:"comment",regex:"%.*$"},{token:e,regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:documentclass|usepackage|newcounter|setcounter|addtocounter|value|arabic|stepcounter|newenvironment|renewenvironment|ref|vref|eqref|pageref|label|cite[a-zA-Z]*|tag|begin|end|bibitem)\\b",next:"nospell"},{token:"keyword",regex:"\\\\(?:[a-zA-z0-9]+|[^a-zA-z0-9])"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])}]"},{token:e,regex:"\\s+"}],nospell:[{token:"comment",regex:"%.*$",next:"start"},{token:"nospell."+e,regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:documentclass|usepackage|newcounter|setcounter|addtocounter|value|arabic|stepcounter|newenvironment|renewenvironment|ref|vref|eqref|pageref|label|cite[a-zA-Z]*|tag|begin|end|bibitem)\\b"},{token:"keyword",regex:"\\\\(?:[a-zA-z0-9]+|[^a-zA-z0-9])",next:"start"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])]"},{token:"paren.keyword.operator",regex:"}",next:"start"},{token:"nospell."+e,regex:"\\s+"},{token:"nospell."+e,regex:"\\w+"}]}};r.inherits(o,s),t.TexHighlightRules=o}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bluefinch/microglark/6002677fb4cb06e924c86a8aaca2e0b413e28a36/public/javascripts/lib/ace/mode-text.js -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-textile.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/textile",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./textile_highlight_rules").TextileHighlightRules,u=e("./matching_brace_outdent").MatchingBraceOutdent,a=function(){this.$tokenizer=new s((new o).getRules()),this.$outdent=new u};r.inherits(a,i),function(){this.getNextLineIndent=function(e,t,n){return e=="intag"?n:""},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/textile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:function(e){return e.charAt(0)=="h"?"markup.heading."+e.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};r.inherits(s,i),t.TextileHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-toml.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/toml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/toml_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./toml_highlight_rules").TomlHighlightRules,u=e("./folding/cstyle").FoldMode,a=function(){var e=new o;this.foldingRules=new u,this.$tokenizer=new s(e.getRules())};r.inherits(a,i),function(){this.lineCommentStart="#"}.call(a.prototype),t.Mode=a}),ace.define("ace/mode/toml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=this.createKeywordMapper({"constant.language.boolean":"true|false"},"identifier"),t="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*\\b";this.$rules={start:[{token:"comment.toml",regex:/#.*$/},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:["variable.keygroup.toml"],regex:"(?:^\\s*)(\\[([^\\]]+)\\])"},{token:e,regex:t},{token:"support.date.toml",regex:"\\d{4}-\\d{2}-\\d{2}(T)\\d{2}:\\d{2}:\\d{2}(Z)"},{token:"constant.numeric.toml",regex:"-?\\d+(\\.?\\d+)?"}],qqstring:[{token:"string",regex:"\\\\$",next:"qqstring"},{token:"constant.language.escape",regex:'\\\\[0tnr"\\\\]'},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}]}};r.inherits(s,i),t.TomlHighlightRules=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i){var s=i.index;return i[1]?this.openingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s+i[0].length,1)}if(t!=="markbeginend")return;var i=r.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)}}}.call(o.prototype)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-vbscript.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/vbscript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/vbscript_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./vbscript_highlight_rules").VBScriptHighlightRules,u=function(){var e=new o;this.$tokenizer=new s(e.getRules())};r.inherits(u,i),function(){this.lineCommentStart=["'","REM"]}.call(u.prototype),t.Mode=u}),ace.define("ace/mode/vbscript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:["meta.ending-space"],regex:"$"},{token:[null],regex:"^(?=\\t)",next:"state_3"},{token:[null],regex:"^(?= )",next:"state_4"},{token:["storage.type.function.asp","text","entity.name.function.asp","text","punctuation.definition.parameters.asp","variable.parameter.function.asp","punctuation.definition.parameters.asp"],regex:"^\\s*((?:Function|Sub))(\\s*)([a-zA-Z_]\\w*)(\\s*)(\\()([^)]*)(\\)).*\\n?"},{token:"punctuation.definition.comment.asp",regex:"'|REM",next:"comment"},{token:["keyword.control.asp"],regex:"(?:\\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\\b)"},{token:["keyword.operator.asp"],regex:"(?:\\b(Mod|And|Not|Or|Xor|as)\\b)"},{token:["storage.type.asp"],regex:"Dim|Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End sub|End Function|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo"},{token:["storage.modifier.asp"],regex:"(?:\\b(Private|Public|Default)\\b)"},{token:["constant.language.asp"],regex:"(?:\\s*\\b(Empty|False|Nothing|Null|True)\\b)"},{token:["punctuation.definition.string.begin.asp"],regex:'"',next:"string"},{token:["punctuation.definition.variable.asp"],regex:"(\\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b\\s*"},{token:["support.class.asp"],regex:"(?:\\b(Application|ObjectContext|Request|Response|Server|Session)\\b)"},{token:["support.class.collection.asp"],regex:"(?:\\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\\b)"},{token:["support.constant.asp"],regex:"(?:\\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\\b)"},{token:["support.function.asp"],regex:"(?:\\b(Lock|Unlock|SetAbort|SetComplete|BianryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\\b)"},{token:["support.function.event.asp"],regex:"(?:\\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\\b)"},{token:["support.function.vb.asp"],regex:"(?:\\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\\b)"},{token:["constant.numeric.asp"],regex:"-?\\b(?:(?:0(?:x|X)[0-9a-fA-F]*)|(?:(?:[0-9]+\\.?[0-9]*)|(?:\\.[0-9]+))(?:(?:e|E)(?:\\+|-)?[0-9]+)?)(?:L|l|UL|ul|u|U|F|f)?\\b"},{token:["support.type.vb.asp"],regex:"(?:\\b(vbtrue|fvbalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\\b)"},{token:["entity.name.function.asp"],regex:"(?:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)(?=\\(\\)?))"},{token:["keyword.operator.asp"],regex:"\\-|\\+|\\*\\/|\\>|\\<|\\=|\\&"}],state_3:[{token:["meta.odd-tab.tabs","meta.even-tab.tabs"],regex:"(\\t)(\\t)?"},{token:"meta.leading-space",regex:"(?=[^\\t])",next:"start"},{token:"meta.leading-space",regex:".",next:"state_3"}],state_4:[{token:["meta.odd-tab.spaces","meta.even-tab.spaces"],regex:"( )( )?"},{token:"meta.leading-space",regex:"(?=[^ ])",next:"start"},{token:"meta.leading-space",regex:".",next:"state_4"}],comment:[{token:"comment.line.apostrophe.asp",regex:"$|(?=(?:%>))",next:"start"},{token:"comment.line.apostrophe.asp",regex:"."}],string:[{token:"constant.character.escape.apostrophe.asp",regex:'""'},{token:"string.quoted.double.asp",regex:'"',next:"start"},{token:"string.quoted.double.asp",regex:"."}]}};r.inherits(s,i),t.VBScriptHighlightRules=s}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/mode-yaml.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./yaml_highlight_rules").YamlHighlightRules,u=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./folding/coffee").FoldMode,f=function(){this.$tokenizer=new s((new o).getRules()),this.$outdent=new u,this.foldingRules=new a};r.inherits(f,i),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if(e=="start"){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(f.prototype),t.Mode=f}),ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(\:(?:\s+|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*\:(?:\s+|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"[\\|>]\\w*",next:"qqstring"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/[+\-]?[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?\b/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"}],qqstring:[{token:"string",regex:"(?=(?:(?:\\\\.)|(?:[^:]))*?:)",next:"start"},{token:"string",regex:".+"}]}};r.inherits(s,i),t.YamlHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=this.indentationBlock(e,n);if(r)return r;var i=/\S/,o=e.getLine(n),u=o.search(i);if(u==-1||o[u]!="#")return;var a=o.length,f=e.getLength(),l=n,c=n;while(++nl){var p=e.getLine(c).length;return new s(l,a,c,p)}},this.getFoldWidget=function(e,t,n){var r=e.getLine(n),i=r.search(/\S/),s=e.getLine(n+1),o=e.getLine(n-1),u=o.search(/\S/),a=s.search(/\S/);if(i==-1)return e.foldWidgets[n-1]=u!=-1&&u span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-glarkio_black.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/glarkio_black",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-glarkio-black",t.cssText=".ace-glarkio-black .ace_gutter {/* background: #484848; */background: #383838;color: #7f8c8d}.ace-glarkio-black .ace_print-margin {width: 1px;background: #33555E}.ace-glarkio-black .ace_scroller {background-color: #383838}.ace-glarkio-black .ace_text-layer {/* color: #ecf0f1 */color: #d5dcdf}.ace-glarkio-black .ace_cursor {border-left: 2px solid #F8F8F0}.ace-glarkio-black .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #F8F8F0}.ace-glarkio-black .ace_marker-layer .ace_selection {background: rgba(255, 255, 255, 0.1)}.ace-glarkio-black.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;border-radius: 2px}.ace-glarkio-black .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-glarkio-black .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-glarkio-black .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.1)}.ace-glarkio-black .ace_gutter-active-line {background: rgba(255, 255, 255, 0.08)}.ace-glarkio-black .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-glarkio-black .ace_invisible {color: rgba(147, 161, 161, 0.50)}.ace-glarkio-black .ace_entity.ace_name.ace_tag,.ace-glarkio-black .ace_keyword,.ace-glarkio-black .ace_meta,.ace-glarkio-black .ace_storage {color: #ff7567}.ace-glarkio-black .ace_constant.ace_character,.ace-glarkio-black .ace_constant.ace_language,.ace-glarkio-black .ace_constant.ace_numeric,.ace-glarkio-black .ace_constant.ace_other {color: #c782e4}.ace-glarkio-black .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-glarkio-black .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-glarkio-black .ace_support.ace_constant,.ace-glarkio-black .ace_support.ace_function {/* color: #66D9EF */color: #61b8f3}.ace-glarkio-black .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-glarkio-black .ace_storage.ace_type,.ace-glarkio-black .ace_support.ace_class,.ace-glarkio-black .ace_support.ace_type {font-style: italic;color: #61b8f3}.ace-glarkio-black .ace_entity.ace_name.ace_function,.ace-glarkio-black .ace_entity.ace_other,.ace-glarkio-black .ace_variable {color: #1abc9c}.ace-glarkio-black .ace_variable.ace_parameter {font-style: italic;color: #ff9232}.ace-glarkio-black .ace_string {color: #5bdd92}.ace-glarkio-black .ace_comment {color: #95a5a6}.ace-glarkio-black .ace_markup.ace_underline {text-decoration: underline}.ace-glarkio-black .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ11D6z7Bq1ar/ABCKBG6g04U2AAAAAElFTkSuQmCC) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-glarkio_blue.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/glarkio_blue",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-glarkio-blue",t.cssText=".ace-glarkio-blue .ace_gutter {background: #34495e; color: #7f8c8d }.ace-glarkio-blue .ace_print-margin {width: 1px;background: #33555E}.ace-glarkio-blue .ace_scroller {background-color: #2c3e50 }.ace-glarkio-blue .ace_text-layer {color: #ecf0f1 }.ace-glarkio-blue .ace_cursor {border-left: 2px solid #F8F8F0}.ace-glarkio-blue .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #F8F8F0}.ace-glarkio-blue .ace_marker-layer .ace_selection {background: rgba(255, 255, 255, 0.1)}.ace-glarkio-blue.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;border-radius: 2px}.ace-glarkio-blue .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-glarkio-blue .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-glarkio-blue .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.1)}.ace-glarkio-blue .ace_gutter-active-line {background: rgba(255, 255, 255, 0.08)}.ace-glarkio-blue .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-glarkio-blue .ace_invisible {color: rgba(147, 161, 161, 0.50)}.ace-glarkio-blue .ace_entity.ace_name.ace_tag,.ace-glarkio-blue .ace_keyword,.ace-glarkio-blue .ace_meta,.ace-glarkio-blue .ace_storage {color: #ff7567 }.ace-glarkio-blue .ace_constant.ace_character,.ace-glarkio-blue .ace_constant.ace_language,.ace-glarkio-blue .ace_constant.ace_numeric,.ace-glarkio-blue .ace_constant.ace_other {color: #c782e4}.ace-glarkio-blue .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-glarkio-blue .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-glarkio-blue .ace_support.ace_constant,.ace-glarkio-blue .ace_support.ace_function {/* color: #66D9EF */color: #61b8f3}.ace-glarkio-blue .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-glarkio-blue .ace_storage.ace_type,.ace-glarkio-blue .ace_support.ace_class,.ace-glarkio-blue .ace_support.ace_type {font-style: italic;color: #61b8f3}.ace-glarkio-blue .ace_entity.ace_name.ace_function,.ace-glarkio-blue .ace_entity.ace_other,.ace-glarkio-blue .ace_variable {color: #1abc9c}.ace-glarkio-blue .ace_variable.ace_parameter {font-style: italic;color: #ff9232 }.ace-glarkio-blue .ace_string {color: #5bdd92}.ace-glarkio-blue .ace_comment {color: #95a5a6}.ace-glarkio-blue .ace_markup.ace_underline {text-decoration: underline}.ace-glarkio-blue .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ11D6z7Bq1ar/ABCKBG6g04U2AAAAAElFTkSuQmCC) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-idle_fingers.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/idle_fingers",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-idle-fingers",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 95BEF169-A2E5-4041-A84A-AAFC1DD61558) */.ace-idle-fingers .ace_gutter {background: #e8e8e8;color: #333;}.ace-idle-fingers .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-idle-fingers .ace_scroller {background-color: #323232;}.ace-idle-fingers .ace_text-layer {color: #FFFFFF;}.ace-idle-fingers .ace_cursor {border-left: 2px solid #91FF00;}.ace-idle-fingers .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #91FF00;}.ace-idle-fingers .ace_marker-layer .ace_selection {background: rgba(90, 100, 126, 0.88);}.ace-idle-fingers.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #323232;border-radius: 2px;}.ace-idle-fingers .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-idle-fingers .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040;}.ace-idle-fingers .ace_marker-layer .ace_active-line {background: #353637;}.ace-idle-fingers .ace_gutter-active-line {background-color: #353637;}.ace-idle-fingers .ace_marker-layer .ace_selected-word {border: 1px solid rgba(90, 100, 126, 0.88);}.ace-idle-fingers .ace_fold {background-color: #CC7833;border-color: #FFFFFF;}.ace-idle-fingers .ace_keyword{color:#CC7833;}.ace-idle-fingers .ace_constant{color:#6C99BB;}.ace-idle-fingers .ace_support.ace_function{color:#B83426;}.ace-idle-fingers .ace_support.ace_constant{color:#6C99BB;}.ace-idle-fingers .ace_invalid{color:#FFFFFF;background-color:#FF0000;}.ace-idle-fingers .ace_string{color:#A5C261;}.ace-idle-fingers .ace_string.ace_regexp{color:#CCCC33;}.ace-idle-fingers .ace_comment{font-style:italic;color:#BC9458;}.ace-idle-fingers .ace_variable.ace_parameter{font-style:italic;}.ace-idle-fingers .ace_meta.ace_tag{color:#FFE5BB;}.ace-idle-fingers .ace_entity.ace_name{color:#FFC66D;}.ace-idle-fingers .ace_collab.ace_user1{color:#323232;background-color:#FFF980;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-kr.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/kr_theme",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-kr-theme",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 87F051F7-B6FB-408C-96F9-467B66C14E9F) */.ace-kr-theme .ace_gutter {background: #e8e8e8;color: #333;}.ace-kr-theme .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-kr-theme .ace_scroller {background-color: #0B0A09;}.ace-kr-theme .ace_text-layer {color: #FCFFE0;}.ace-kr-theme .ace_cursor {border-left: 2px solid #FF9900;}.ace-kr-theme .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #FF9900;}.ace-kr-theme .ace_marker-layer .ace_selection {background: rgba(170, 0, 255, 0.45);}.ace-kr-theme.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #0B0A09;border-radius: 2px;}.ace-kr-theme .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-kr-theme .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 177, 111, 0.32);}.ace-kr-theme .ace_marker-layer .ace_active-line {background: #38403D;}.ace-kr-theme .ace_gutter-active-line {background-color: #38403D;}.ace-kr-theme .ace_marker-layer .ace_selected-word {border: 1px solid rgba(170, 0, 255, 0.45);}.ace-kr-theme .ace_fold {background-color: #949C8B;border-color: #FCFFE0;}.ace-kr-theme .ace_keyword{color:#949C8B;}.ace-kr-theme .ace_constant{color:rgba(210, 117, 24, 0.76);}.ace-kr-theme .ace_support{color:#9FC28A;}.ace-kr-theme .ace_support.ace_function{color:#85873A;}.ace-kr-theme .ace_support.ace_constant{color:#C27E66;}.ace-kr-theme .ace_storage{color:#FFEE80;}.ace-kr-theme .ace_invalid{color:#F8F8F8;background-color:#A41300;}.ace-kr-theme .ace_string.ace_regexp{color:rgba(125, 255, 192, 0.65);}.ace-kr-theme .ace_comment{font-style:italic;color:#706D5B;}.ace-kr-theme .ace_variable{color:#D1A796;}.ace-kr-theme .ace_variable.ace_language{color:#FF80E1;}.ace-kr-theme .ace_meta.ace_tag{color:#BABD9C;}.ace-kr-theme .ace_markup.ace_list{background-color:#0F0040;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-merbivore.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/merbivore",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-merbivore",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 2ABC646D-06F3-48A5-94E9-18EF34474C97) */.ace-merbivore .ace_gutter {background: #e8e8e8;color: #333;}.ace-merbivore .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-merbivore .ace_scroller {background-color: #161616;}.ace-merbivore .ace_text-layer {color: #E6E1DC;}.ace-merbivore .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-merbivore .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-merbivore .ace_marker-layer .ace_selection {background: #454545;}.ace-merbivore.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #161616;border-radius: 2px;}.ace-merbivore .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-merbivore .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040;}.ace-merbivore .ace_marker-layer .ace_active-line {background: #333435;}.ace-merbivore .ace_gutter-active-line {background-color: #333435;}.ace-merbivore .ace_marker-layer .ace_selected-word {border: 1px solid #454545;}.ace-merbivore .ace_fold {background-color: #FC6F09;border-color: #E6E1DC;}.ace-merbivore .ace_keyword{color:#FC6F09;}.ace-merbivore .ace_constant{color:#1EDAFB;}.ace-merbivore .ace_constant.ace_language{color:#FDC251;}.ace-merbivore .ace_constant.ace_library{color:#8DFF0A;}.ace-merbivore .ace_constant.ace_numeric{color:#58C554;}.ace-merbivore .ace_constant.ace_character.ace_escape{color:#519F50;}.ace-merbivore .ace_support.ace_function{color:#FC6F09;}.ace-merbivore .ace_support.ace_constant{color:#8DFF0A;}.ace-merbivore .ace_support.ace_type{color:#1EDAFB;}.ace-merbivore .ace_storage{color:#FC6F09;}.ace-merbivore .ace_invalid{color:#FFFFFF;background-color:#990000;}.ace-merbivore .ace_string{color:#8DFF0A;}.ace-merbivore .ace_comment{font-style:italic;color:#AD2EA4;}.ace-merbivore .ace_meta.ace_tag{color:#FC6F09;}.ace-merbivore .ace_entity.ace_other.ace_attribute-name{color:#FFFF89;}.ace-merbivore .ace_entity.ace_name.ace_tag{color:#FC6F09;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-merbivore_soft.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/merbivore_soft",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-merbivore-soft",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: B3517E4B-5243-46CF-AB04-9AE7B41DE3F2) */.ace-merbivore-soft .ace_gutter {background: #e8e8e8;color: #333;}.ace-merbivore-soft .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-merbivore-soft .ace_scroller {background-color: #1C1C1C;}.ace-merbivore-soft .ace_text-layer {color: #E6E1DC;}.ace-merbivore-soft .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-merbivore-soft .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-merbivore-soft .ace_marker-layer .ace_selection {background: #494949;}.ace-merbivore-soft.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #1C1C1C;border-radius: 2px;}.ace-merbivore-soft .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-merbivore-soft .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040;}.ace-merbivore-soft .ace_marker-layer .ace_active-line {background: #333435;}.ace-merbivore-soft .ace_gutter-active-line {background-color: #333435;}.ace-merbivore-soft .ace_marker-layer .ace_selected-word {border: 1px solid #494949;}.ace-merbivore-soft .ace_fold {background-color: #FC803A;border-color: #E6E1DC;}.ace-merbivore-soft .ace_keyword{color:#FC803A;}.ace-merbivore-soft .ace_constant{color:#68C1D8;}.ace-merbivore-soft .ace_constant.ace_language{color:#E1C582;}.ace-merbivore-soft .ace_constant.ace_library{color:#8EC65F;}.ace-merbivore-soft .ace_constant.ace_numeric{color:#7FC578;}.ace-merbivore-soft .ace_constant.ace_character.ace_escape{color:#B3E5B4;}.ace-merbivore-soft .ace_support.ace_constant{color:#8EC65F;}.ace-merbivore-soft .ace_support.ace_type{color:#68C1D8;}.ace-merbivore-soft .ace_storage{color:#FC803A;}.ace-merbivore-soft .ace_invalid{color:#FFFFFF;background-color:#FE3838;}.ace-merbivore-soft .ace_invalid.ace_deprecated{color:#FFFFFF;background-color:#FE3838;}.ace-merbivore-soft .ace_string{color:#8EC65F;}.ace-merbivore-soft .ace_comment{font-style:italic;color:#AC4BB8;}.ace-merbivore-soft .ace_meta{font-style:italic;color:#AC4BB8;}.ace-merbivore-soft .ace_meta.ace_tag{color:#FC803A;}.ace-merbivore-soft .ace_entity.ace_other.ace_attribute-name{color:#EAF1A3;}.ace-merbivore-soft .ace_entity.ace_name.ace_tag{color:#FC803A;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-mono_industrial.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/mono_industrial",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-mono-industrial",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: EEA328BA-54E5-49DC-81F3-1F25BF8AF163) */.ace-mono-industrial .ace_gutter {background: #e8e8e8;color: #333;}.ace-mono-industrial .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-mono-industrial .ace_scroller {background-color: #222C28;}.ace-mono-industrial .ace_text-layer {color: #FFFFFF;}.ace-mono-industrial .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-mono-industrial .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-mono-industrial .ace_marker-layer .ace_selection {background: rgba(145, 153, 148, 0.40);}.ace-mono-industrial.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #222C28;border-radius: 2px;}.ace-mono-industrial .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-mono-industrial .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(102, 108, 104, 0.50);}.ace-mono-industrial .ace_marker-layer .ace_active-line {background: rgba(12, 13, 12, 0.25);}.ace-mono-industrial .ace_gutter-active-line {background-color: rgba(12, 13, 12, 0.25);}.ace-mono-industrial .ace_marker-layer .ace_selected-word {border: 1px solid rgba(145, 153, 148, 0.40);}.ace-mono-industrial .ace_fold {background-color: #A8B3AB;border-color: #FFFFFF;}.ace-mono-industrial .ace_keyword{color:#A39E64;}.ace-mono-industrial .ace_keyword.ace_operator{color:#A8B3AB;}.ace-mono-industrial .ace_constant{color:#E98800;}.ace-mono-industrial .ace_constant.ace_numeric{color:#E98800;}.ace-mono-industrial .ace_support.ace_function{color:#588E60;}.ace-mono-industrial .ace_support.ace_constant{color:#C87500;}.ace-mono-industrial .ace_support.ace_class{color:#5778B6;}.ace-mono-industrial .ace_support.ace_type{color:#5778B6;}.ace-mono-industrial .ace_storage{color:#C23B00;}.ace-mono-industrial .ace_invalid{color:#FFFFFF;background-color:rgba(153, 0, 0, 0.68);}.ace-mono-industrial .ace_comment{color:#666C68;background-color:#151C19;}.ace-mono-industrial .ace_variable{color:#A8B3AB;}.ace-mono-industrial .ace_variable.ace_language{color:#648BD2;}.ace-mono-industrial .ace_variable.ace_parameter{color:#648BD2;}.ace-mono-industrial .ace_entity.ace_other.ace_attribute-name{color:#909993;}.ace-mono-industrial .ace_entity.ace_name.ace_function{color:#A8B3AB;}.ace-mono-industrial .ace_entity.ace_name{color:#5778B6;}.ace-mono-industrial .ace_entity.ace_name.ace_tag{color:#A65EFF;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-monokai.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-monokai",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: D8D5E82E-3D5B-46B5-B38E-8C841C21347D) */.ace-monokai .ace_gutter {background: #e8e8e8;color: #333;}.ace-monokai .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-monokai .ace_scroller {background-color: #272822;}.ace-monokai .ace_text-layer {color: #F8F8F2;}.ace-monokai .ace_cursor {border-left: 2px solid #F8F8F0;}.ace-monokai .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #F8F8F0;}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E;}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;border-radius: 2px;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #3B3A32;}.ace-monokai .ace_marker-layer .ace_active-line {background: #3E3D32;}.ace-monokai .ace_gutter-active-line {background-color: #3E3D32;}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E;}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2;}.ace-monokai .ace_keyword{color:#F92672;}.ace-monokai .ace_constant.ace_language{color:#AE81FF;}.ace-monokai .ace_constant.ace_numeric{color:#AE81FF;}.ace-monokai .ace_constant.ace_character{color:#AE81FF;}.ace-monokai .ace_constant.ace_other{color:#AE81FF;}.ace-monokai .ace_support.ace_function{color:#66D9EF;}.ace-monokai .ace_support.ace_constant{color:#66D9EF;}.ace-monokai .ace_support.ace_class{font-style:italic;color:#66D9EF;}.ace-monokai .ace_support.ace_type{font-style:italic;color:#66D9EF;}.ace-monokai .ace_storage{color:#F92672;}.ace-monokai .ace_storage.ace_type{font-style:italic;color:#66D9EF;}.ace-monokai .ace_invalid{color:#F8F8F0;background-color:#F92672;}.ace-monokai .ace_invalid.ace_deprecated{color:#F8F8F0;background-color:#AE81FF;}.ace-monokai .ace_string{color:#E6DB74;}.ace-monokai .ace_comment{color:#75715E;}.ace-monokai .ace_variable{color:#A6E22E;}.ace-monokai .ace_variable.ace_parameter{font-style:italic;color:#FD971F;}.ace-monokai .ace_entity.ace_other.ace_attribute-name{color:#A6E22E;}.ace-monokai .ace_entity.ace_name.ace_function{color:#A6E22E;}.ace-monokai .ace_entity.ace_name.ace_tag{color:#F92672;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-pastel_on_dark.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/pastel_on_dark",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-pastel-on-dark",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 343011CC-B7DF-11D9-B5C6-000D93C8BE28) */.ace-pastel-on-dark .ace_gutter {background: #e8e8e8;color: #333;}.ace-pastel-on-dark .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-pastel-on-dark .ace_scroller {background-color: #2C2828;}.ace-pastel-on-dark .ace_text-layer {color: #8F938F;}.ace-pastel-on-dark .ace_cursor {border-left: 2px solid #A7A7A7;}.ace-pastel-on-dark .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #A7A7A7;}.ace-pastel-on-dark .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20);}.ace-pastel-on-dark.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #2C2828;border-radius: 2px;}.ace-pastel-on-dark .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-pastel-on-dark .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25);}.ace-pastel-on-dark .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.031);}.ace-pastel-on-dark .ace_gutter-active-line {background-color: rgba(255, 255, 255, 0.031);}.ace-pastel-on-dark .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20);}.ace-pastel-on-dark .ace_fold {background-color: #757aD8;border-color: #8F938F;}.ace-pastel-on-dark .ace_keyword{color:#757aD8;}.ace-pastel-on-dark .ace_keyword.ace_operator{color:#797878;}.ace-pastel-on-dark .ace_constant{color:#4FB7C5;}.ace-pastel-on-dark .ace_constant.ace_language{color:#DE8E30;}.ace-pastel-on-dark .ace_constant.ace_numeric{color:#CCCCCC;}.ace-pastel-on-dark .ace_constant.ace_character{color:#AFA472;}.ace-pastel-on-dark .ace_support.ace_function{color:#AEB2F8;}.ace-pastel-on-dark .ace_invalid{color:#F8F8F8;background-color:rgba(86, 45, 86, 0.75);}.ace-pastel-on-dark .ace_invalid.ace_illegal{color:#F8F8F8;background-color:rgba(86, 45, 86, 0.75);}.ace-pastel-on-dark .ace_invalid.ace_deprecated{text-decoration:underline;font-style:italic;color:#D2A8A1;}.ace-pastel-on-dark .ace_string{color:#66A968;}.ace-pastel-on-dark .ace_string.ace_regexp{color:#E9C062;}.ace-pastel-on-dark .ace_comment{color:#A6C6FF;}.ace-pastel-on-dark .ace_variable{color:#BEBF55;}.ace-pastel-on-dark .ace_variable.ace_language{color:#C1C144;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-solarized_dark.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/solarized_dark",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-solarized-dark",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: F930B0BF-AA03-4232-A30F-CEF749FF8E72) */.ace-solarized-dark .ace_gutter {background: #e8e8e8;color: #333;}.ace-solarized-dark .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-solarized-dark .ace_scroller {background-color: #002B36;}.ace-solarized-dark .ace_text-layer {color: #93A1A1;}.ace-solarized-dark .ace_cursor {border-left: 2px solid #D30102;}.ace-solarized-dark .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #D30102;}.ace-solarized-dark .ace_marker-layer .ace_selection {background: #073642;}.ace-solarized-dark.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #002B36;border-radius: 2px;}.ace-solarized-dark .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-solarized-dark .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(147, 161, 161, 0.50);}.ace-solarized-dark .ace_marker-layer .ace_active-line {background: #073642;}.ace-solarized-dark .ace_gutter-active-line {background-color: #073642;}.ace-solarized-dark .ace_marker-layer .ace_selected-word {border: 1px solid #073642;}.ace-solarized-dark .ace_fold {background-color: #268BD2;border-color: #93A1A1;}.ace-solarized-dark .ace_keyword{color:#859900;}.ace-solarized-dark .ace_constant.ace_language{color:#B58900;}.ace-solarized-dark .ace_constant.ace_numeric{color:#D33682;}.ace-solarized-dark .ace_constant.ace_character{color:#CB4B16;}.ace-solarized-dark .ace_constant.ace_other{color:#CB4B16;}.ace-solarized-dark .ace_support.ace_function{color:#268BD2;}.ace-solarized-dark .ace_support.ace_class{color:#859900;}.ace-solarized-dark .ace_support.ace_type{color:#859900;}.ace-solarized-dark .ace_storage{color:#93A1A1;}.ace-solarized-dark .ace_string{color:#2AA198;}.ace-solarized-dark .ace_string.ace_regexp{color:#D30102;}.ace-solarized-dark .ace_comment{font-style:italic;color:#657B83;}.ace-solarized-dark .ace_variable{color:#268BD2;}.ace-solarized-dark .ace_variable.ace_language{color:#268BD2;}.ace-solarized-dark .ace_entity.ace_other.ace_attribute-name{color:#93A1A1;}.ace-solarized-dark .ace_entity.ace_name.ace_function{color:#268BD2;}.ace-solarized-dark .ace_entity.ace_name.ace_tag{color:#268BD2;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-solarized_light.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/solarized_light",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-solarized-light",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 38E819D9-AE02-452F-9231-ECC3B204AFD7) */.ace-solarized-light .ace_gutter {background: #e8e8e8;color: #333;}.ace-solarized-light .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-solarized-light .ace_scroller {background-color: #FDF6E3;}.ace-solarized-light .ace_text-layer {color: #586E75;}.ace-solarized-light .ace_cursor {border-left: 2px solid #000000;}.ace-solarized-light .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #000000;}.ace-solarized-light .ace_marker-layer .ace_selection {background: #073642;}.ace-solarized-light.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FDF6E3;border-radius: 2px;}.ace-solarized-light .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-solarized-light .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(147, 161, 161, 0.50);}.ace-solarized-light .ace_marker-layer .ace_active-line {background: #EEE8D5;}.ace-solarized-light .ace_gutter-active-line {background-color: #EEE8D5;}.ace-solarized-light .ace_marker-layer .ace_selected-word {border: 1px solid #073642;}.ace-solarized-light .ace_fold {background-color: #268BD2;border-color: #586E75;}.ace-solarized-light .ace_keyword{color:#859900;}.ace-solarized-light .ace_constant.ace_language{color:#B58900;}.ace-solarized-light .ace_constant.ace_numeric{color:#D33682;}.ace-solarized-light .ace_constant.ace_character{color:#CB4B16;}.ace-solarized-light .ace_constant.ace_other{color:#CB4B16;}.ace-solarized-light .ace_support.ace_function{color:#268BD2;}.ace-solarized-light .ace_support.ace_class{color:#859900;}.ace-solarized-light .ace_support.ace_type{color:#859900;}.ace-solarized-light .ace_storage{color:#073642;}.ace-solarized-light .ace_string{color:#2AA198;}.ace-solarized-light .ace_string.ace_regexp{color:#D30102;}.ace-solarized-light .ace_comment{color:#93A1A1;}.ace-solarized-light .ace_variable{color:#268BD2;}.ace-solarized-light .ace_variable.ace_language{color:#268BD2;}.ace-solarized-light .ace_entity.ace_other.ace_attribute-name{color:#93A1A1;}.ace-solarized-light .ace_entity.ace_name.ace_function{color:#268BD2;}.ace-solarized-light .ace_entity.ace_name.ace_tag{color:#268BD2;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-terminal.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/terminal",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-terminal-theme",t.cssText=".ace-terminal-theme .ace_gutter {background: #1a0005;color: steelblue}.ace-terminal-theme .ace_print-margin {width: 1px;background: #1a1a1a}.ace-terminal-theme .ace_scroller {background-color: black}.ace-terminal-theme .ace_text-layer {color: #DEDEDE}.ace-terminal-theme .ace_cursor {border-left: 2px solid springgreen}.ace-terminal-theme .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #9F9F9F}.ace-terminal-theme .ace_marker-layer .ace_selection {background: #424242}.ace-terminal-theme.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px black;border-radius: 2px}.ace-terminal-theme .ace_marker-layer .ace_step {background: rgb(0, 0, 0)}.ace-terminal-theme .ace_marker-layer .ace_bracket {background: #090;}.ace-terminal-theme .ace_marker-layer .ace_bracket-start {background: #090;}.ace-terminal-theme .ace_marker-layer .ace_bracket-unmatched {margin: -1px 0 0 -1px;border: 1px solid #900}.ace-terminal-theme .ace_marker-layer .ace_active-line {background: #2A2A2A}.ace-terminal-theme .ace_gutter-active-line {background-color: #2A112A}.ace-terminal-theme .ace_marker-layer .ace_selected-word {border: 1px solid #424242}.ace-terminal-theme .ace_invisible {color: #343434}.ace-terminal-theme .ace_keyword,.ace-terminal-theme .ace_meta,.ace-terminal-theme .ace_storage,.ace-terminal-theme .ace_storage.ace_type,.ace-terminal-theme .ace_support.ace_type {color: tomato}.ace-terminal-theme .ace_keyword.ace_operator {color: deeppink}.ace-terminal-theme .ace_constant.ace_character,.ace-terminal-theme .ace_constant.ace_language,.ace-terminal-theme .ace_constant.ace_numeric,.ace-terminal-theme .ace_keyword.ace_other.ace_unit,.ace-terminal-theme .ace_support.ace_constant,.ace-terminal-theme .ace_variable.ace_parameter {color: #E78C45}.ace-terminal-theme .ace_constant.ace_other {color: gold}.ace-terminal-theme .ace_invalid {color: yellow;background-color: red}.ace-terminal-theme .ace_invalid.ace_deprecated {color: #CED2CF;background-color: #B798BF}.ace-terminal-theme .ace_fold {background-color: #7AA6DA;border-color: #DEDEDE}.ace-terminal-theme .ace_entity.ace_name.ace_function,.ace-terminal-theme .ace_support.ace_function,.ace-terminal-theme .ace_variable {color: #7AA6DA}.ace-terminal-theme .ace_support.ace_class,.ace-terminal-theme .ace_support.ace_type {color: #E7C547}.ace-terminal-theme .ace_markup.ace_heading,.ace-terminal-theme .ace_string {color: #B9CA4A}.ace-terminal-theme .ace_entity.ace_name.ace_tag,.ace-terminal-theme .ace_entity.ace_other.ace_attribute-name,.ace-terminal-theme .ace_meta.ace_tag,.ace-terminal-theme .ace_string.ace_regexp,.ace-terminal-theme .ace_variable {color: #D54E53}.ace-terminal-theme .ace_comment {color: orangered}.ace-terminal-theme .ace_markup.ace_underline {text-decoration: underline}.ace-terminal-theme .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGD4z7Bq1ar/AAz9A/2naJQKAAAAAElFTkSuQmCC) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-textmate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bluefinch/microglark/6002677fb4cb06e924c86a8aaca2e0b413e28a36/public/javascripts/lib/ace/theme-textmate.js -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-tomorrow.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/tomorrow",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-tomorrow",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 82CCD69C-F1B1-4529-B39E-780F91F07604) */.ace-tomorrow .ace_gutter {background: #e8e8e8;color: #333;}.ace-tomorrow .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tomorrow .ace_scroller {background-color: #FFFFFF;}.ace-tomorrow .ace_text-layer {color: #4D4D4C;}.ace-tomorrow .ace_cursor {border-left: 2px solid #AEAFAD;}.ace-tomorrow .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #AEAFAD;}.ace-tomorrow .ace_marker-layer .ace_selection {background: #D6D6D6;}.ace-tomorrow.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;border-radius: 2px;}.ace-tomorrow .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-tomorrow .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1;}.ace-tomorrow .ace_marker-layer .ace_active-line {background: #EFEFEF;}.ace-tomorrow .ace_gutter-active-line {background-color: #EFEFEF;}.ace-tomorrow .ace_marker-layer .ace_selected-word {border: 1px solid #D6D6D6;}.ace-tomorrow .ace_fold {background-color: #4271AE;border-color: #4D4D4C;}.ace-tomorrow .ace_keyword{color:#8959A8;}.ace-tomorrow .ace_keyword.ace_operator{color:#3E999F;}.ace-tomorrow .ace_keyword.ace_other.ace_unit{color:#F5871F;}.ace-tomorrow .ace_constant.ace_language{color:#F5871F;}.ace-tomorrow .ace_constant.ace_numeric{color:#F5871F;}.ace-tomorrow .ace_constant.ace_character{color:#F5871F;}.ace-tomorrow .ace_constant.ace_other{color:#666969;}.ace-tomorrow .ace_support.ace_function{color:#4271AE;}.ace-tomorrow .ace_support.ace_constant{color:#F5871F;}.ace-tomorrow .ace_support.ace_class{color:#C99E00;}.ace-tomorrow .ace_support.ace_type{color:#C99E00;}.ace-tomorrow .ace_storage{color:#8959A8;}.ace-tomorrow .ace_storage.ace_type{color:#8959A8;}.ace-tomorrow .ace_invalid{color:#FFFFFF;background-color:#C82829;}.ace-tomorrow .ace_invalid.ace_deprecated{color:#FFFFFF;background-color:#8959A8;}.ace-tomorrow .ace_string{color:#718C00;}.ace-tomorrow .ace_string.ace_regexp{color:#C82829;}.ace-tomorrow .ace_comment{color:#8E908C;}.ace-tomorrow .ace_variable{color:#C82829;}.ace-tomorrow .ace_variable.ace_parameter{color:#F5871F;}.ace-tomorrow .ace_meta.ace_tag{color:#C82829;}.ace-tomorrow .ace_entity.ace_other.ace_attribute-name{color:#C82829;}.ace-tomorrow .ace_entity.ace_name.ace_function{color:#4271AE;}.ace-tomorrow .ace_entity.ace_name.ace_tag{color:#C82829;}.ace-tomorrow .ace_markup.ace_heading{color:#718C00;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-tomorrow_night.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/tomorrow_night",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-tomorrow-night",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: F96223EB-1A60-4617-92F3-D24D4F13DB09) */.ace-tomorrow-night .ace_gutter {background: #e8e8e8;color: #333;}.ace-tomorrow-night .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tomorrow-night .ace_scroller {background-color: #1D1F21;}.ace-tomorrow-night .ace_text-layer {color: #C5C8C6;}.ace-tomorrow-night .ace_cursor {border-left: 2px solid #AEAFAD;}.ace-tomorrow-night .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #AEAFAD;}.ace-tomorrow-night .ace_marker-layer .ace_selection {background: #373B41;}.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #1D1F21;border-radius: 2px;}.ace-tomorrow-night .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-tomorrow-night .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #4B4E55;}.ace-tomorrow-night .ace_marker-layer .ace_active-line {background: #282A2E;}.ace-tomorrow-night .ace_gutter-active-line {background-color: #282A2E;}.ace-tomorrow-night .ace_marker-layer .ace_selected-word {border: 1px solid #373B41;}.ace-tomorrow-night .ace_fold {background-color: #81A2BE;border-color: #C5C8C6;}.ace-tomorrow-night .ace_keyword{color:#B294BB;}.ace-tomorrow-night .ace_keyword.ace_operator{color:#8ABEB7;}.ace-tomorrow-night .ace_keyword.ace_other.ace_unit{color:#DE935F;}.ace-tomorrow-night .ace_constant.ace_language{color:#DE935F;}.ace-tomorrow-night .ace_constant.ace_numeric{color:#DE935F;}.ace-tomorrow-night .ace_constant.ace_character{color:#DE935F;}.ace-tomorrow-night .ace_constant.ace_other{color:#CED1CF;}.ace-tomorrow-night .ace_support.ace_function{color:#81A2BE;}.ace-tomorrow-night .ace_support.ace_constant{color:#DE935F;}.ace-tomorrow-night .ace_support.ace_class{color:#F0C674;}.ace-tomorrow-night .ace_support.ace_type{color:#F0C674;}.ace-tomorrow-night .ace_storage{color:#B294BB;}.ace-tomorrow-night .ace_storage.ace_type{color:#B294BB;}.ace-tomorrow-night .ace_invalid{color:#CED2CF;background-color:#DF5F5F;}.ace-tomorrow-night .ace_invalid.ace_deprecated{color:#CED2CF;background-color:#B798BF;}.ace-tomorrow-night .ace_string{color:#B5BD68;}.ace-tomorrow-night .ace_string.ace_regexp{color:#CC6666;}.ace-tomorrow-night .ace_comment{color:#969896;}.ace-tomorrow-night .ace_variable{color:#CC6666;}.ace-tomorrow-night .ace_variable.ace_parameter{color:#DE935F;}.ace-tomorrow-night .ace_meta.ace_tag{color:#CC6666;}.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name{color:#CC6666;}.ace-tomorrow-night .ace_entity.ace_name.ace_function{color:#81A2BE;}.ace-tomorrow-night .ace_entity.ace_name.ace_tag{color:#CC6666;}.ace-tomorrow-night .ace_markup.ace_heading{color:#B5BD68;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-tomorrow_night_blue.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/tomorrow_night_blue",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-tomorrow-night-blue",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 3F4BB232-3C3A-4396-99C0-06A9573715E9) */.ace-tomorrow-night-blue .ace_gutter {background: #e8e8e8;color: #333;}.ace-tomorrow-night-blue .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tomorrow-night-blue .ace_scroller {background-color: #002451;}.ace-tomorrow-night-blue .ace_text-layer {color: #FFFFFF;}.ace-tomorrow-night-blue .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-tomorrow-night-blue .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-tomorrow-night-blue .ace_marker-layer .ace_selection {background: #003F8E;}.ace-tomorrow-night-blue.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #002451;border-radius: 2px;}.ace-tomorrow-night-blue .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-tomorrow-night-blue .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404F7D;}.ace-tomorrow-night-blue .ace_marker-layer .ace_active-line {background: #00346E;}.ace-tomorrow-night-blue .ace_gutter-active-line {background-color: #00346E;}.ace-tomorrow-night-blue .ace_marker-layer .ace_selected-word {border: 1px solid #003F8E;}.ace-tomorrow-night-blue .ace_fold {background-color: #BBDAFF;border-color: #FFFFFF;}.ace-tomorrow-night-blue .ace_keyword{color:#EBBBFF;}.ace-tomorrow-night-blue .ace_keyword.ace_operator{color:#99FFFF;}.ace-tomorrow-night-blue .ace_keyword.ace_other.ace_unit{color:#FFC58F;}.ace-tomorrow-night-blue .ace_constant.ace_language{color:#FFC58F;}.ace-tomorrow-night-blue .ace_constant.ace_numeric{color:#FFC58F;}.ace-tomorrow-night-blue .ace_constant.ace_character{color:#FFC58F;}.ace-tomorrow-night-blue .ace_constant.ace_other{color:#FFFFFF;}.ace-tomorrow-night-blue .ace_support.ace_function{color:#BBDAFF;}.ace-tomorrow-night-blue .ace_support.ace_constant{color:#FFC58F;}.ace-tomorrow-night-blue .ace_support.ace_class{color:#FFEEAD;}.ace-tomorrow-night-blue .ace_support.ace_type{color:#FFEEAD;}.ace-tomorrow-night-blue .ace_storage{color:#EBBBFF;}.ace-tomorrow-night-blue .ace_storage.ace_type{color:#EBBBFF;}.ace-tomorrow-night-blue .ace_invalid{color:#FFFFFF;background-color:#F99DA5;}.ace-tomorrow-night-blue .ace_invalid.ace_deprecated{color:#FFFFFF;background-color:#EBBBFF;}.ace-tomorrow-night-blue .ace_string{color:#D1F1A9;}.ace-tomorrow-night-blue .ace_string.ace_regexp{color:#FF9DA4;}.ace-tomorrow-night-blue .ace_comment{color:#7285B7;}.ace-tomorrow-night-blue .ace_variable{color:#FF9DA4;}.ace-tomorrow-night-blue .ace_variable.ace_parameter{color:#FFC58F;}.ace-tomorrow-night-blue .ace_meta.ace_tag{color:#FF9DA4;}.ace-tomorrow-night-blue .ace_entity.ace_other.ace_attribute-name{color:#FF9DA4;}.ace-tomorrow-night-blue .ace_entity.ace_name.ace_function{color:#BBDAFF;}.ace-tomorrow-night-blue .ace_entity.ace_name.ace_tag{color:#FF9DA4;}.ace-tomorrow-night-blue .ace_markup.ace_heading{color:#D1F1A9;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-tomorrow_night_bright.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/tomorrow_night_bright",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-tomorrow-night-bright",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 33D8C715-AD3A-455B-8DF2-56F708909FFE) */.ace-tomorrow-night-bright .ace_gutter {background: #e8e8e8;color: #333;}.ace-tomorrow-night-bright .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tomorrow-night-bright .ace_scroller {background-color: #000000;}.ace-tomorrow-night-bright .ace_text-layer {color: #DEDEDE;}.ace-tomorrow-night-bright .ace_cursor {border-left: 2px solid #9F9F9F;}.ace-tomorrow-night-bright .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #9F9F9F;}.ace-tomorrow-night-bright .ace_marker-layer .ace_selection {background: #424242;}.ace-tomorrow-night-bright.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #000000;border-radius: 2px;}.ace-tomorrow-night-bright .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-tomorrow-night-bright .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #343434;}.ace-tomorrow-night-bright .ace_marker-layer .ace_active-line {background: #2A2A2A;}.ace-tomorrow-night-bright .ace_gutter-active-line {background-color: #2A2A2A;}.ace-tomorrow-night-bright .ace_marker-layer .ace_selected-word {border: 1px solid #424242;}.ace-tomorrow-night-bright .ace_fold {background-color: #7AA6DA;border-color: #DEDEDE;}.ace-tomorrow-night-bright .ace_keyword{color:#C397D8;}.ace-tomorrow-night-bright .ace_keyword.ace_operator{color:#70C0B1;}.ace-tomorrow-night-bright .ace_keyword.ace_other.ace_unit{color:#E78C45;}.ace-tomorrow-night-bright .ace_constant.ace_language{color:#E78C45;}.ace-tomorrow-night-bright .ace_constant.ace_numeric{color:#E78C45;}.ace-tomorrow-night-bright .ace_constant.ace_character{color:#E78C45;}.ace-tomorrow-night-bright .ace_constant.ace_other{color:#EEEEEE;}.ace-tomorrow-night-bright .ace_support.ace_function{color:#7AA6DA;}.ace-tomorrow-night-bright .ace_support.ace_constant{color:#E78C45;}.ace-tomorrow-night-bright .ace_support.ace_class{color:#E7C547;}.ace-tomorrow-night-bright .ace_support.ace_type{color:#E7C547;}.ace-tomorrow-night-bright .ace_storage{color:#C397D8;}.ace-tomorrow-night-bright .ace_storage.ace_type{color:#C397D8;}.ace-tomorrow-night-bright .ace_invalid{color:#CED2CF;background-color:#DF5F5F;}.ace-tomorrow-night-bright .ace_invalid.ace_deprecated{color:#CED2CF;background-color:#B798BF;}.ace-tomorrow-night-bright .ace_string{color:#B9CA4A;}.ace-tomorrow-night-bright .ace_string.ace_regexp{color:#D54E53;}.ace-tomorrow-night-bright .ace_comment{color:#969896;}.ace-tomorrow-night-bright .ace_variable{color:#D54E53;}.ace-tomorrow-night-bright .ace_variable.ace_parameter{color:#E78C45;}.ace-tomorrow-night-bright .ace_meta.ace_tag{color:#D54E53;}.ace-tomorrow-night-bright .ace_entity.ace_other.ace_attribute-name{color:#D54E53;}.ace-tomorrow-night-bright .ace_entity.ace_name.ace_function{color:#7AA6DA;}.ace-tomorrow-night-bright .ace_entity.ace_name.ace_tag{color:#D54E53;}.ace-tomorrow-night-bright .ace_markup.ace_heading{color:#B9CA4A;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-tomorrow_night_eighties.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/tomorrow_night_eighties",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-tomorrow-night-eighties",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: DE477E5B-BD4D-46B0-BF80-2EA32A2814D5) */.ace-tomorrow-night-eighties .ace_gutter {background: #e8e8e8;color: #333;}.ace-tomorrow-night-eighties .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tomorrow-night-eighties .ace_scroller {background-color: #2D2D2D;}.ace-tomorrow-night-eighties .ace_text-layer {color: #CCCCCC;}.ace-tomorrow-night-eighties .ace_cursor {border-left: 2px solid #CCCCCC;}.ace-tomorrow-night-eighties .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #CCCCCC;}.ace-tomorrow-night-eighties .ace_marker-layer .ace_selection {background: #515151;}.ace-tomorrow-night-eighties.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #2D2D2D;border-radius: 2px;}.ace-tomorrow-night-eighties .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-tomorrow-night-eighties .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #6A6A6A;}.ace-tomorrow-night-eighties .ace_marker-layer .ace_active-line {background: #393939;}.ace-tomorrow-night-eighties .ace_gutter-active-line {background-color: #393939;}.ace-tomorrow-night-eighties .ace_marker-layer .ace_selected-word {border: 1px solid #515151;}.ace-tomorrow-night-eighties .ace_fold {background-color: #6699CC;border-color: #CCCCCC;}.ace-tomorrow-night-eighties .ace_keyword{color:#CC99CC;}.ace-tomorrow-night-eighties .ace_keyword.ace_operator{color:#66CCCC;}.ace-tomorrow-night-eighties .ace_keyword.ace_other.ace_unit{color:#F99157;}.ace-tomorrow-night-eighties .ace_constant.ace_language{color:#F99157;}.ace-tomorrow-night-eighties .ace_constant.ace_numeric{color:#F99157;}.ace-tomorrow-night-eighties .ace_constant.ace_character{color:#F99157;}.ace-tomorrow-night-eighties .ace_constant.ace_other{color:#CCCCCC;}.ace-tomorrow-night-eighties .ace_support.ace_function{color:#6699CC;}.ace-tomorrow-night-eighties .ace_support.ace_constant{color:#F99157;}.ace-tomorrow-night-eighties .ace_support.ace_class{color:#FFCC66;}.ace-tomorrow-night-eighties .ace_support.ace_type{color:#FFCC66;}.ace-tomorrow-night-eighties .ace_storage{color:#CC99CC;}.ace-tomorrow-night-eighties .ace_storage.ace_type{color:#CC99CC;}.ace-tomorrow-night-eighties .ace_invalid{color:#CDCDCD;background-color:#F2777A;}.ace-tomorrow-night-eighties .ace_invalid.ace_deprecated{color:#CDCDCD;background-color:#CC99CC;}.ace-tomorrow-night-eighties .ace_string{color:#99CC99;}.ace-tomorrow-night-eighties .ace_comment{color:#999999;}.ace-tomorrow-night-eighties .ace_variable{color:#F2777A;}.ace-tomorrow-night-eighties .ace_variable.ace_parameter{color:#F99157;}.ace-tomorrow-night-eighties .ace_meta.ace_tag{color:#F2777A;}.ace-tomorrow-night-eighties .ace_entity.ace_other.ace_attribute-name{color:#F2777A;}.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_function{color:#6699CC;}.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_tag{color:#F2777A;}.ace-tomorrow-night-eighties .ace_markup.ace_heading{color:#99CC99;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-toy_chest.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/toy_chest",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-toy-chest",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: D4333E9B-1DE7-8FF3-57E6-A757C21B4254) */.ace-toy-chest .ace_gutter {background: #e8e8e8;color: #333;}.ace-toy-chest .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-toy-chest .ace_scroller {background-color: #2f475d;}.ace-toy-chest .ace_text-layer {color: #34d58e;}.ace-toy-chest .ace_cursor {border-left: 2px solid #DDDDDD;}.ace-toy-chest .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #DDDDDD;}.ace-toy-chest .ace_marker-layer .ace_selection {background: #74358d;}.ace-toy-chest.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #2f475d;border-radius: 2px;}.ace-toy-chest .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-toy-chest .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #3a526b;}.ace-toy-chest .ace_marker-layer .ace_active-line {background: #1a2631;}.ace-toy-chest .ace_gutter-active-line {background-color: #1a2631;}.ace-toy-chest .ace_marker-layer .ace_selected-word {border: 1px solid #74358d;}.ace-toy-chest .ace_fold {background-color: #ecdd5d;border-color: #34d58e;}.ace-toy-chest .ace_keyword{color:#e67055;}.ace-toy-chest .ace_keyword.ace_operator{color:#16a085;}.ace-toy-chest .ace_constant{color:#3eb5e1;}.ace-toy-chest .ace_support{color:#34d58e;}.ace-toy-chest .ace_support.ace_function{color:#ecdd5d;}.ace-toy-chest .ace_support.ace_constant{color:#34d58e;}.ace-toy-chest .ace_storage{color:#e67055;}.ace-toy-chest .ace_invalid.ace_deprecated{text-decoration:underline;font-style:italic;color:#CC4232;}.ace-toy-chest .ace_string{font-style:italic;color:#16a085;}.ace-toy-chest .ace_string.ace_regexp{color:#bd85e3;}.ace-toy-chest .ace_comment{font-style:italic;color:#407c9b;}.ace-toy-chest .ace_variable{color:#bd85e3;}.ace-toy-chest .ace_variable.ace_parameter{color:#9d78e3;}.ace-toy-chest .ace_meta.ace_tag{color:#e39f32;}.ace-toy-chest .ace_entity.ace_other.ace_attribute-name{color:#e67e22;}.ace-toy-chest .ace_entity.ace_name.ace_function{color:#ecdd5d;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-twilight.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/twilight",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-twilight",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 766026CB-703D-4610-B070-8DE07D967C5F) */.ace-twilight .ace_gutter {background: #e8e8e8;color: #333;}.ace-twilight .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-twilight .ace_scroller {background-color: #141414;}.ace-twilight .ace_text-layer {color: #F8F8F8;}.ace-twilight .ace_cursor {border-left: 2px solid #A7A7A7;}.ace-twilight .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #A7A7A7;}.ace-twilight .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20);}.ace-twilight.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #141414;border-radius: 2px;}.ace-twilight .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-twilight .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25);}.ace-twilight .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.031);}.ace-twilight .ace_gutter-active-line {background-color: rgba(255, 255, 255, 0.031);}.ace-twilight .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20);}.ace-twilight .ace_fold {background-color: #AC885B;border-color: #F8F8F8;}.ace-twilight .ace_keyword{color:#CDA869;}.ace-twilight .ace_constant{color:#CF6A4C;}.ace-twilight .ace_support{color:#9B859D;}.ace-twilight .ace_support.ace_function{color:#DAD085;}.ace-twilight .ace_support.ace_constant{color:#CF6A4C;}.ace-twilight .ace_storage{color:#F9EE98;}.ace-twilight .ace_invalid.ace_illegal{color:#F8F8F8;background-color:rgba(86, 45, 86, 0.75);}.ace-twilight .ace_invalid.ace_deprecated{text-decoration:underline;font-style:italic;color:#D2A8A1;}.ace-twilight .ace_string{color:#8F9D6A;}.ace-twilight .ace_string.ace_regexp{color:#E9C062;}.ace-twilight .ace_comment{font-style:italic;color:#5F5A60;}.ace-twilight .ace_variable{color:#7587A6;}.ace-twilight .ace_meta.ace_tag{color:#AC885B;}.ace-twilight .ace_entity.ace_name.ace_function{color:#AC885B;}.ace-twilight .ace_markup.ace_heading{color:#CF6A4C;}.ace-twilight .ace_markup.ace_list{color:#F9EE98;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-vibrant_ink.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/vibrant_ink",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-vibrant-ink",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 4B7A9AA6-C472-4460-BA48-199E2624956B) */.ace-vibrant-ink .ace_gutter {background: #e8e8e8;color: #333;}.ace-vibrant-ink .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-vibrant-ink .ace_scroller {background-color: #0F0F0F;}.ace-vibrant-ink .ace_text-layer {color: #FFFFFF;}.ace-vibrant-ink .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-vibrant-ink .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-vibrant-ink .ace_marker-layer .ace_selection {background: #6699CC;}.ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #0F0F0F;border-radius: 2px;}.ace-vibrant-ink .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-vibrant-ink .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040;}.ace-vibrant-ink .ace_marker-layer .ace_active-line {background: #333333;}.ace-vibrant-ink .ace_gutter-active-line {background-color: #333333;}.ace-vibrant-ink .ace_marker-layer .ace_selected-word {border: 1px solid #6699CC;}.ace-vibrant-ink .ace_fold {background-color: #FFCC00;border-color: #FFFFFF;}.ace-vibrant-ink .ace_keyword{color:#FF6600;}.ace-vibrant-ink .ace_constant{color:#339999;}.ace-vibrant-ink .ace_constant.ace_numeric{color:#99CC99;}.ace-vibrant-ink .ace_support.ace_function{color:#FFCC00;}.ace-vibrant-ink .ace_invalid{color:#CCFF33;background-color:#000000;}.ace-vibrant-ink .ace_invalid.ace_deprecated{color:#CCFF33;background-color:#000000;}.ace-vibrant-ink .ace_string{color:#66FF00;}.ace-vibrant-ink .ace_string.ace_regexp{color:#44B4CC;}.ace-vibrant-ink .ace_comment{color:#9933CC;}.ace-vibrant-ink .ace_variable{color:#FFCC00;}.ace-vibrant-ink .ace_variable.ace_parameter{font-style:italic;}.ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name{font-style:italic;color:#99CC99;}.ace-vibrant-ink .ace_entity.ace_name.ace_function{color:#FFCC00;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/ace/theme-xcode.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/theme/xcode",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-xcode",t.cssText="/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: EE3AD170-2B7F-4DE1-B724-C75F13FE0085) */.ace-xcode .ace_gutter {background: #e8e8e8;color: #333}.ace-xcode .ace_print-margin {width: 1px;background: #e8e8e8}.ace-xcode .ace_scroller {background-color: #FFFFFF}.ace-xcode .ace_text-layer {color: #000000}.ace-xcode .ace_cursor {border-left: 2px solid #000000}.ace-xcode .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #000000}.ace-xcode .ace_marker-layer .ace_selection {background: #B5D5FF}.ace-xcode.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;border-radius: 2px}.ace-xcode .ace_marker-layer .ace_step {background: rgb(198, 219, 174)}.ace-xcode .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #BFBFBF}.ace-xcode .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.071)}.ace-xcode .ace_gutter-active-line {background-color: rgba(0, 0, 0, 0.071)}.ace-xcode .ace_marker-layer .ace_selected-word {border: 1px solid #B5D5FF}.ace-xcode .ace_constant.ace_language,.ace-xcode .ace_keyword,.ace-xcode .ace_meta,.ace-xcode .ace_variable.ace_language {color: #C800A4}.ace-xcode .ace_invisible {color: #BFBFBF}.ace-xcode .ace_constant.ace_character,.ace-xcode .ace_constant.ace_other {color: #275A5E}.ace-xcode .ace_constant.ace_numeric {color: #3A00DC}.ace-xcode .ace_entity.ace_other.ace_attribute-name,.ace-xcode .ace_support.ace_constant,.ace-xcode .ace_support.ace_function {color: #450084}.ace-xcode .ace_fold {background-color: #C800A4;border-color: #000000}.ace-xcode .ace_entity.ace_name.ace_tag,.ace-xcode .ace_support.ace_class,.ace-xcode .ace_support.ace_type {color: #790EAD}.ace-xcode .ace_storage {color: #C900A4}.ace-xcode .ace_string {color: #DF0002}.ace-xcode .ace_comment {color: #008E00}.ace-xcode .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y;}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /public/javascripts/lib/beautifiers/beautify-css.min.js: -------------------------------------------------------------------------------- 1 | !function(){function n(n,e){function t(){return l=n.charAt(++b)}function i(){return n.charAt(b+1)}function u(e){for(var i=b;t();)if("\\"===l)t(),t();else{if(l===e)break;if("\n"===l)break}return n.substring(i,b+1)}function r(){for(var n=b;g.test(i());)b++;return b!==n}function s(){var n=b;do;while(g.test(t()));return b!==n+1}function f(){var e=b;for(t();t();)if("*"===l&&"/"===i()){b++;break}return n.substring(e,b+1)}function o(e){return n.substring(b-e.length,b).toLowerCase()===e}function p(){y++,d+=w}function a(){y--,d=d.slice(0,-c)}e=e||{};var c=e.indent_size||4,h=e.indent_char||" ";"string"==typeof c&&(c=parseInt(c,10));var l,g=/^\s+$/,b=-1,d=n.match(/^[\r\n]*[\t ]*/)[0],w=Array(c+1).join(h),y=0,v={};v["{"]=function(n){v.singleSpace(),L.push(n),v.newLine()},v["}"]=function(n){v.newLine(),L.push(n),v.newLine()},v.newLine=function(n){if(!n)for(;g.test(L[L.length-1]);)L.pop();L.length&&L.push("\n"),d&&L.push(d)},v.singleSpace=function(){L.length&&!g.test(L[L.length-1])&&L.push(" ")};var L=[];for(d&&L.push(d);;){var _=s();if(!l)break;"{"===l?(p(),v["{"](l)):"}"===l?(a(),v["}"](l)):'"'===l||"'"===l?L.push(u(l)):";"===l?L.push(l,"\n",d):"/"===l&&"*"===i()?(v.newLine(),L.push(f(),"\n",d)):"("===l?o("url")?(L.push(l),r(),t()&&(")"!==l&&'"'!==l&&"'"!==l?L.push(u(")")):b--)):(_&&v.singleSpace(),L.push(l),r()):")"===l?L.push(l):","===l?(r(),L.push(l),v.singleSpace()):"]"===l?L.push(l):"["===l||"="===l?(r(),L.push(l)):(_&&v.singleSpace(),L.push(l))}var S=L.join("").replace(/[\n ]+$/,"");return S}"function"==typeof define?define(function(e,t){t.css_beautify=n}):"undefined"!=typeof exports?exports.css_beautify=n:"undefined"!=typeof window?window.css_beautify=n:"undefined"!=typeof global&&(global.css_beautify=n)}(); 2 | -------------------------------------------------------------------------------- /public/javascripts/lib/share/bcsocket.js: -------------------------------------------------------------------------------- 1 | ../../../../node_modules/share/node_modules/browserchannel/dist/bcsocket.js -------------------------------------------------------------------------------- /public/javascripts/lib/share/webclient: -------------------------------------------------------------------------------- 1 | ../../../../node_modules/share/webclient/ -------------------------------------------------------------------------------- /public/stylesheets/reset.css: -------------------------------------------------------------------------------- 1 | /* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */ 2 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0} -------------------------------------------------------------------------------- /public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | /* Global */ 2 | 3 | html, body, .Container { 4 | height: 100%; 5 | } 6 | 7 | body { 8 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 9 | background-color: #333; 10 | color: white; 11 | } 12 | 13 | a { 14 | text-decoration: initial; 15 | color: white; 16 | } 17 | 18 | /* Container */ 19 | 20 | .Container { 21 | display: flex; 22 | flex-direction: column; 23 | 24 | max-width: 1130px; 25 | margin: 0 auto; 26 | 27 | background-color: #383838; 28 | box-shadow: 0 0 2px rgba(0, 0, 0, 0.15); 29 | } 30 | 31 | /* Header */ 32 | 33 | .Header { 34 | display: flex; 35 | border-bottom: 2px solid #33555E; 36 | } 37 | 38 | .Header a { 39 | padding: 10px 15px; 40 | font-size: 14px; 41 | } 42 | 43 | .Header a:hover { 44 | background-color: #33555E; 45 | } 46 | 47 | .Header--filename { 48 | align-items: center; 49 | 50 | min-width: 3px; 51 | padding: 6px 12px; 52 | color: white; 53 | font-weight: bold; 54 | cursor: pointer; 55 | } 56 | 57 | .Header--filename:hover, 58 | .Header--filename:focus, 59 | .Header--filename.focus { 60 | background-color: #33555E; 61 | } 62 | 63 | .Header--filename .text { 64 | padding: 4px; 65 | cursor: pointer; 66 | } 67 | 68 | .Header--filename .text:focus { 69 | outline: none; 70 | cursor: text; 71 | border-radius: 3px; 72 | background-color: #333; 73 | box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, 0.25); 74 | } 75 | 76 | .Header--users { 77 | display: flex; 78 | margin: 10px 7px; 79 | cursor: pointer; 80 | text-align: center; 81 | } 82 | 83 | .Header--users > .user { 84 | margin: 0 3px; 85 | width: 17px; 86 | height: 17px; 87 | border-radius: 2px; 88 | background: #ff7567; 89 | } 90 | 91 | .Header--users > .user > .writing { 92 | padding-top: 5px; 93 | display: inline-block; 94 | color: rgba(255, 255, 255, 0.8); 95 | text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25); 96 | } 97 | 98 | .Header--actions { 99 | display: flex; 100 | margin-left: auto; 101 | } 102 | 103 | /* Editor */ 104 | 105 | .Editor { 106 | flex: 1; 107 | } 108 | 109 | /* Footer */ 110 | 111 | .Footer { 112 | display: flex; 113 | align-items: center; 114 | 115 | padding: 10px; 116 | border-top: 2px solid #33555E; 117 | } 118 | 119 | .Footer a { 120 | margin-left: 10px; 121 | color: #686868; 122 | } 123 | 124 | .Footer a:hover { 125 | color: #B3B3B3; 126 | } 127 | 128 | .Footer--item { 129 | margin: 0 5px; 130 | } 131 | 132 | .Footer--item.m-about { 133 | flex: 1 134 | } 135 | 136 | /* Ace */ 137 | 138 | @media (min-width: 1130px) { 139 | .ace_content { 140 | width: 100% !important; 141 | } 142 | 143 | .ace_scrollbar { 144 | position: fixed !important; 145 | top: 0 !important; 146 | height: 100% !important; 147 | } 148 | 149 | .ace_scroller { 150 | right: 0 !important; 151 | } 152 | } 153 | 154 | /* Collaboration */ 155 | 156 | .collaboration-selection-wrapper { 157 | position: fixed; 158 | z-index: 1; 159 | cursor: pointer; 160 | } 161 | 162 | .collaboration-selection { 163 | width: 2px; 164 | height: 14px; 165 | background-color: #ff7567; 166 | } 167 | 168 | .collaboration-selection-tooltip { 169 | display: none; 170 | position: relative; 171 | height: 16px; 172 | top: -28px; 173 | padding: 0 3px; 174 | font-size: 14px; 175 | border-radius: 2px 2px 2px 0; 176 | background-color: #ff7567; 177 | } 178 | 179 | /* Extend Act theme */ 180 | 181 | .ace_content .ace_heading { 182 | color: #ff7567; 183 | } 184 | 185 | -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var router = express.Router(); 3 | 4 | /** GET home page. **/ 5 | router.get('/', function (req, res) { 6 | res.render('index', { 7 | title: 'µGlark.io', 8 | defaultFile: 'scratch.js' 9 | }); 10 | }); 11 | 12 | /** GET about page. **/ 13 | router.get('/about', function (req, res) { 14 | res.render('index', { 15 | title: 'µGlark.io', 16 | defaultFile: 'about.js' 17 | }); 18 | }); 19 | 20 | /** HEAD for tweet button. **/ 21 | router.head('/', function (req, res) { 22 | res.send(200); 23 | }); 24 | 25 | module.exports = router; -------------------------------------------------------------------------------- /views/index.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | 5 | .Container 6 | .Header 7 | .Header--filename#filename 8 | .text(contenteditable='true' spellcheck='false') Loading... 9 | .Header--users#users 10 | .Header--actions#actions 11 | a(href='/' target="_blank") 12 | i.icon-plus 13 | a#download(href='#download') 14 | i.icon-download-alt 15 | a#beautify(href='#beautify') 16 | i.icon-code 17 | .Editor#editor Loading... 18 | .Footer 19 | .Footer--item.m-about: a(href='/about/') About µGlark.io 20 | .Footer--item: a(href="https://twitter.com/share" class="twitter-share-button" data-url="http://micro.glark.io" data-text="Check out glark.io, a hacky minimalistic remote pair programming editor" data-via="glarkIO" data-hashtags="glarkio") Tweet 21 | .Footer--item: iframe(src="http://ghbtns.com/github-btn.html?user=Bluefinch&repo=microglark&type=watch&count=true&size=small" allowtransparency="true" frameborder="0" scrolling="0" width="85" height="20") 22 | 23 | //- Tweet button script. 24 | script. 25 | !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); 26 | -------------------------------------------------------------------------------- /views/layout.jade: -------------------------------------------------------------------------------- 1 | doctype html 2 | html.wf-sourcecodepro-n4-active.wf-sourcecodepro-n7-active.wf-active 3 | head 4 | title= title 5 | meta(name='viewport', content='width=device-width, initial-scale=1.0') 6 | meta(name="apple-mobile-web-app-capable", content="yes") 7 | meta(http-equiv="Content-Type", content="text/html; charset=utf-8") 8 | meta(name='description', contents='Glark.io is a hacky minimalistic collaborative code editor for pair programing.') 9 | meta(name='keywords', contents='glark.io web based code editor collaborative editing minimalistic') 10 | link(rel='stylesheet', href='/stylesheets/reset.css') 11 | link(rel='stylesheet', href='/stylesheets/style.css') 12 | link(rel='stylesheet', href='//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css') 13 | 14 | if settings.production 15 | script. 16 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 17 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 18 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 19 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 20 | ga('create', 'UA-44695953-1', 'glark.io'); 21 | ga('send', 'pageview'); 22 | 23 | body 24 | block content 25 | 26 | script(src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js') 27 | script(src='/socket.io/socket.io.js') 28 | script(src='/javascripts/lib/ace/ace.js') 29 | script(src='/javascripts/lib/share/bcsocket.js') 30 | script(src='/javascripts/lib/share/webclient/share.js') 31 | script(src='/javascripts/lib/share/webclient/ace.js') 32 | script(src='/javascripts/defaults/' + defaultFile) 33 | script(src='/javascripts/microGlark.js') 34 | script(src='/javascripts/lib/beautifiers/beautify.min.js' async) 35 | script(src='/javascripts/lib/beautifiers/beautify-css.min.js' async) 36 | script(src='/javascripts/lib/beautifiers/beautify-html.min.js' async) 37 | script(src='/javascripts/lib/filesaver/FileSaver.js' async) 38 | script(type="font/woff" src="http://use.edgefonts.net/source-code-pro.js" async) 39 | --------------------------------------------------------------------------------