/* * eAmy.Offline - Amy Editor embedded for offline use. * http://www.april-child.com/amy * * Published under MIT License. * Copyright (c) 2007-2008 Petr Krontorád, April-Child.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * This file is auto-generated from original Fry Framework and Amy Editor sources.. */ // Generated from theme definition file. $class('ac.chap.theme.EAmy < ac.chap.Theme'); ac.chap.theme.EAmy.prototype.initDefinition = function() { // $call(this, 'ac.chap.Theme.initDefinition');this.cssId = 'black'; //this.background = '#072240'; //this.textColor = '#DFEFFF'; //this.caretColor = 'lime'; //this.caretRowStyleActive = '#041629'; //this.selectionStyle = '#86553b'; //this.colorScheme[ac.chap.TOKEN_MULTIROW_COMMENT] = 'color:#0084FF;font-style:italic'; //this.colorScheme[ac.chap.TOKEN_SINGLEROW_COMMENT] = 'color:#0084FF;font-style:italic'; //this.colorScheme[ac.chap.TOKEN_SINGLE_QUOTED] = 'color:#00DF00'; //this.colorScheme[ac.chap.TOKEN_DOUBLE_QUOTED] = 'color:#00DF00'; //this.colorScheme[ac.chap.CHUNK_KEYWORD] = 'color:#FF9D00'; //this.colorScheme[ac.chap.CHUNK_NUMBER] = 'color:#FF5B8C'; //this.colorScheme[ac.chap.CHUNK_OPERATOR] = 'color:#FF9D00;'; //this.colorScheme[ac.chap.CHUNK_PARENTHESIS] = 'color:#FFF177'; //this.colorScheme[ac.chap.CHUNK_KEYWORD_CUSTOM] = 'color:#54FFB8'; //this.colorScheme[ac.chap.CHUNK_FUNCTION_NAME] = 'color:#FFE000'; //this.colorScheme[ac.chap.CHUNK_LIBRARY] = 'color:#71E5B6'; //this.colorScheme[ac.chap.CHUNK_LIBRARY_CUSTOM] = 'color:#FF78E5'; $call(this, 'ac.chap.Theme.initDefinition');this.cssId = 'twilight'; this.background = '#141414'; this.textColor = '#F8F8F8'; this.caretColor = '#A7A7A7'; this.caretRowStyleActive = '#1B1B1B'; this.selectionStyle = '#3C4043'; this.colorScheme[ac.chap.TOKEN_MULTIROW_COMMENT] = 'color:#605A60;font-style:italic'; this.colorScheme[ac.chap.TOKEN_SINGLEROW_COMMENT] = 'color:#605A60;font-style:italic'; this.colorScheme[ac.chap.TOKEN_SINGLE_QUOTED] = 'color:#8B9F67'; this.colorScheme[ac.chap.TOKEN_DOUBLE_QUOTED] = 'color:#D4F29E'; this.colorScheme[ac.chap.CHUNK_KEYWORD] = 'color:#D2A964'; this.colorScheme[ac.chap.CHUNK_NUMBER] = 'color:#DE6848'; this.colorScheme[ac.chap.CHUNK_OPERATOR] = 'color:#EFC25A;'; this.colorScheme[ac.chap.CHUNK_PARENTHESIS] = 'color:#ABC4DC'; this.colorScheme[ac.chap.CHUNK_KEYWORD_CUSTOM] = 'color:#A0849E'; this.colorScheme[ac.chap.CHUNK_FUNCTION_NAME] = 'color:#DAD280'; this.colorScheme[ac.chap.CHUNK_LIBRARY] = 'color:#7286A8'; this.colorScheme[ac.chap.CHUNK_LIBRARY_CUSTOM] = 'color:#A55C29'; } // Generated from bundle keymap definition file. ac.chap.KeyMap.prototype.initDefinition = function() { var _ = '\n'; this.compile (""+_+ "KEY: 0" +_+ " insert(character:true)" +_+ "KEY: -37" +_+ " caret(move:'left')" +_+ "KEY: -37+shift" +_+ " caret(move:'left')" +_+ " selection(add:true)" +_+ "KEY: -37+ctrl" +_+ " caret(move:'prev_regexp', re:'[^|._A-Z ,|(|);]*$')" +_+ "KEY: -37+alt" +_+ " caret(move:'prev_word')" +_+ "KEY: -37+ctrl+shift" +_+ " caret(move:'prev_regexp', re:'[^|._A-Z ,|(|);]*$')" +_+ " selection(add:true)" +_+ "KEY: -37+alt+shift" +_+ " caret(move:'prev_word')" +_+ " selection(add:true)" +_+ "KEY: -37+meta" +_+ " caret(move:'row_start')" +_+ "KEY: -37+meta+shift" +_+ " caret(move:'row_start')" +_+ " selection(add:true)" +_+ "KEY: -39" +_+ " caret(move:'right')" +_+ "KEY: -39+shift" +_+ " caret(move:'right')" +_+ " selection(add:true)" +_+ "KEY: -39+ctrl" +_+ " caret(move:'next_regexp', re:'^[^|._A-Z ,|(|);]*')" +_+ "KEY: -39+alt" +_+ " caret(move:'next_word')" +_+ "KEY: -39+ctrl+shift" +_+ " caret(move:'next_regexp', re:'^[^|._A-Z ,|(|);]*')" +_+ " selection(add:true)" +_+ "KEY: -39+alt+shift" +_+ " caret(move:'next_word')" +_+ " selection(add:true)" +_+ "KEY: -39+meta" +_+ " caret(move:'row_end')" +_+ "KEY: -39+meta+shift" +_+ " caret(move:'row_end')" +_+ " selection(add:true)" +_+ "KEY: -38" +_+ " caret(move:'up')" +_+ "KEY: -38+shift" +_+ " caret(move:'up')" +_+ " selection(add:true)" +_+ "KEY: -40" +_+ " caret(move:'down')" +_+ "KEY: -40+shift" +_+ " caret(move:'down')" +_+ " selection(add:true)" +_+ "KEY: -13" +_+ " insert(row:true)" +_+ "KEY: -8" +_+ " delete(character:true)" +_+ "KEY: -46" +_+ " delete(character:false)" +_+ "KEY: 75+ctrl+shift" +_+ " delete(row:true)" +_+ "KEY: -27" +_+ " custom(action:'WordComplete', direction:true)" +_+ "KEY: -27+shift" +_+ " custom(action:'WordComplete', direction:false)" +_+ "KEY: -9" +_+ " custom(action:'SnippetComplete')" +_+ "KEY: 123" +_+ " custom(action:'AutoComplete', use_selection:true, text:'}')" +_+ "KEY: 34" +_+ " custom(action:'AutoComplete', use_selection:true, text:'\"')" +_+ "KEY: 91" +_+ " custom(action:'AutoComplete', use_selection:true, text:']')" +_+ "KEY: 40" +_+ " custom(action:'AutoComplete', use_selection:true, text:')')" +_+ "KEY: -36" +_+ " caret(move:'doc_start')" +_+ "KEY: -36+shift" +_+ " caret(move:'doc_start')" +_+ " selection(add:true)" +_+ "KEY: -35" +_+ " caret(move:'doc_end')" +_+ "KEY: -35+shift" +_+ " caret(move:'doc_end')" +_+ " selection(add:true)" +_+ "KEY: -34+meta" +_+ " caret(move:'page_down')" +_+ "KEY: -34+meta+shift" +_+ " caret(move:'page_down')" +_+ " selection(add:true)" +_+ "KEY: -33+meta" +_+ " caret(move:'page_up')" +_+ "KEY: -33+meta+shift" +_+ " caret(move:'page_down')" +_+ " selection(add:true)" +_+ "KEY: 99+meta" +_+ " clipboard(copy:true)" +_+ "KEY: 120+meta" +_+ " clipboard(cut:true)" +_+ "KEY: 122+meta" +_+ " undo()" +_+ "KEY: 90+meta+shift" +_+ " redo()" +_+ "KEY: 97+meta" +_+ " selection(all:true)" +_+ "KEY: 97+ctrl" +_+ " selection(all:true)" +_+ "KEY: -113" +_+ " custom(action:'GoToBookmark', direction:1)" +_+ "KEY: -113+shift" +_+ " custom(action:'GoToBookmark', direction:-1)" +_+ "KEY: -113+meta" +_+ " custom(action:'ToggleBookmark')" +_+ "KEY: 91+meta" +_+ " custom(action:'Indent', direction:'left')" +_+ "KEY: 93+meta" +_+ " custom(action:'Indent', direction:'right')" +_+ "KEY: 47+meta" +_+ " custom(action:'Comment')" +_+ "KEY: 43+meta" +_+ " custom(action:'RuntimeOption', key:'font.size', value:'bigger')" +_+ "KEY: 45+meta" +_+ " custom(action:'RuntimeOption', key:'font.size', value:'smaller')" +_+ "KEY: 101+meta" +_+ " custom(action:'SetSearchKeyword')" +_+ "KEY: 103+meta" +_+ " custom(action:'SearchKeyword', direction:'down')" +_+ "KEY: 71+shift+meta" +_+ " custom(action:'SearchKeyword', direction:'up')" +_+ "KEY: 102+ctrl" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: 83+ctrl+shift" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: 102+meta" +_+ " custom(action:'SearchInteractive')" +_+ "KEY: -13" +_+ " custom(action:'SmartIndent', split_line:true, indent_tab_when_starts:'class module def if else unless rescue ensure while do __class__')" +_+ "KEY: -13+meta" +_+ " custom(action:'SmartIndent', split_line:false, indent_tab_when_starts:'class module def if else unless rescue ensure while do __class__')" +_+ "KEY: 39" +_+ " custom(action:'AutoComplete', use_selection:true, text:'\\'')" )}; $class('ac.chap.lang.EAmy < ac.chap.Language'); ac.chap.lang.EAmy.prototype.initDefinition = function() { $call(this, 'ac.chap.Language.initDefinition'); this.singleQuoteStringMarker = "'"; this.singleQuoteStringMarkerException = "\\"; this.doubleQuoteStringMarker = "\""; this.doubleQuoteStringMarkerException = "\\" this.wordDelimiter = /[\w\.\d]/; this.indentIgnoreMarker = /[\.]/; this.foldingStartMarkers = [/^\s*<(div)\b.*>/i, /^\s*<(ul)\b.*>/i]; this.foldingParityMarkers = [/^\s*<(div)\b.*>/i, /^\s*<(ul)\b.*>/i]; this.foldingStopMarkers = [/^\s*<\/(div)>/i, /^\s*<\/(ul)>/i]; this.singleRowCommentStartMarkers = []; this.multiRowCommentStartMarker = ""; this.chunkRules.push([/(([^\w]|^)(\d{1,}[\d\.Ee]*)([^w]|$))/i, 3, ac.chap.CHUNK_NUMBER]) this.chunkRules.push([/(\+|\-|\*|\/|\=|\!|\^|\%|\||\&|\<|\>)/i, 0, ac.chap.CHUNK_OPERATOR]) this.chunkRules.push([/(\(|\)|\[|\]|\{|\})/i, 0, ac.chap.CHUNK_PARENTHESIS]) this.chunkRules.push([/((<|<\/)([\w-_\:]*)([ >]))/i, 3, ac.chap.CHUNK_KEYWORD]) this.chunkRules.push([/(([ \t])([\w-_\:]*)(=$))/i, 3, ac.chap.CHUNK_KEYWORD_CUSTOM]) this.chunkRules.push([/(([^\w]|^)(!DOCTYPE)([^\w]|$))/i, 3, ac.chap.CHUNK_LIBRARY]) this.chunkRules.push([/(([^\w]|^)(\d{1,}[\d\.Ee]*)([^w]|$))/i, 3, ac.chap.CHUNK_NUMBER]) this.chunkRules.push([/(\+|\-|\*|\/|\=|\!|\^|\%|\||\&|\<|\>)/i, 0, ac.chap.CHUNK_OPERATOR]) this.chunkRules.push([/(\(|\)|\[|\]|\{|\})/i, 0, ac.chap.CHUNK_PARENTHESIS]) this.chunkRules.push([/((<|<\/)([\w-_\:]*)([ >]))/i, 3, ac.chap.CHUNK_KEYWORD]) this.chunkRules.push([/(([ \t])([\w-_\:]*)(=$))/i, 3, ac.chap.CHUNK_KEYWORD_CUSTOM]) this.chunkRules.push([/(([^\w]|^)(!DOCTYPE)([^\w]|$))/i, 3, ac.chap.CHUNK_LIBRARY]) } var snippet = {}; snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ie6', code: '$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'iegte7', code: '$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ie5', code: '$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ie', code: '$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ienot', code: '${1:${AMY_SELECTED_TEXT: IE Conditional Comment: NOT Internet Explorer }}$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ielte6', code: '$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ielt6', code: '$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '${0:${AMY_SELECTED_TEXT/\A(.*)<\/em>\z|.*/(?1:$1:$0<\/em>)/m}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '${0:${AMY_SELECTED_TEXT/\A(.*)<\/strong>\z|.*/(?1:$1:$0<\/strong>)/m}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'left', code: '←'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'backtab', code: '⇤'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'enter', code: '⌅'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'arrow', code: '→'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'option', code: '⌥'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'shift', code: '⇧'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ' '}; eamy.snippets.push(snippet); snippet = {tab_activation: 'delete', code: '⌦'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'backspace', code: '⌫'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'escape', code: '⎋'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'tab', code: '⇥'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'up', code: '↑'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'control', code: '⌃'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'return', code: '↩'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'down', code: '↓'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'command', code: '⌘'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctype', code: '\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctype', code: '\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypexf', code: '\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypext', code: '\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypex', code: '\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'doctypexs', code: '\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 't', code: '<{${1:tag_name}}>$0'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'body', code: '\n $0\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'textarea', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'div', code: '\n ${0:$AMY_SELECTED_TEXT}\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: '', code: '
'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'title', code: '${1:${AMY_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'movie', code: '\n \n \n \n \n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'input', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'head', code: '\n \n ${1:${AMY_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/}}\n $0\n'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'meta', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'h1', code: '

${1:$AMY_SELECTED_TEXT}

'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'form', code: '
\n $0\n\n

\n
'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'link', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'style', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'table', code: '\n \n \n
${5:Header}
${0:Data}
'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'base', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'scriptsrc', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'mailto', code: '${3:email me}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'script', code: ''}; eamy.snippets.push(snippet); snippet = {tab_activation: 'c', code: 'class="$1"'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'i', code: 'id="$1"'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'p', code: '{{pass}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'ex', code: '{{extend \'${1:layout.html}\'}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'for', code: '{{for ${1:bar} in ${2:foo}:}}\n $0\n{{pass}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: 'if', code: '{{if ${1:foo} ${2:==/!=/=>/=/<} ${3:bar}:}}\n $0\n{{pass}}'}; eamy.snippets.push(snippet); snippet = {tab_activation: '=', code: '{{=$0}}'}; eamy.snippets.push(snippet);