define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,a){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/net","ace/ace","ace/theme/textmate"],function(e,g,t){"use strict";function u(e,t){for(var a in t)e.style[a]=t[a]}function m(r,t){if("textarea"!=r.type)throw new Error("Textarea required!");function e(){var t="position:relative;";["margin-top","margin-left","margin-right","margin-bottom"].forEach(function(e){t+=e+":"+n(r,o,e)+";"});var e=n(r,o,"width")||r.clientWidth+"px",a=n(r,o,"height")||r.clientHeight+"px";t+="height:"+a+";width:"+e+";",t+="display:inline-block;",o.setAttribute("style",t)}var a=r.parentNode,o=document.createElement("div");for(b.addListener(window,"resize",e),e(),a.insertBefore(o,r.nextSibling);a!==document;){if("FORM"===a.tagName.toUpperCase()){var c=a.onsubmit;a.onsubmit=function(e){r.value=t(),c&&c.call(this,e)};break}a=a.parentNode}return o}function p(r,e,t,a,o){r.getSession(),r.renderer;return r.setDisplaySettings=function(e){null==e&&(e="none"==t.style.display),e?(t.style.display="block",t.hideButton.focus(),r.on("focus",function e(){r.removeListener("focus",e),t.style.display="none"})):r.focus()},r.$setOption=r.setOption,r.$getOption=r.getOption,r.setOption=function(e,t){switch(e){case"mode":r.$setOption("mode","ace/mode/"+t);break;case"theme":r.$setOption("theme","ace/theme/"+t);break;case"keybindings":switch(t){case"vim":r.setKeyboardHandler("ace/keyboard/vim");break;case"emacs":r.setKeyboardHandler("ace/keyboard/emacs");break;default:r.setKeyboardHandler(null)}break;case"wrap":case"fontSize":r.$setOption(e,t);break;default:r.$setOption(e,"true"===(a=t)||1==a)}var a},r.getOption=function(e){switch(e){case"mode":return r.$getOption("mode").substr("ace/mode/".length);case"theme":return r.$getOption("theme").substr("ace/theme/".length);case"keybindings":var t=r.getKeyboardHandler();switch(t&&t.$id){case"ace/keyboard/vim":return"vim";case"ace/keyboard/emacs":return"emacs";default:return"ace"}break;default:return r.$getOption(e)}},r.setOptions(o),r}var b=e("../lib/event"),h=e("../lib/useragent"),f=(e("../lib/net"),e("../ace"));e("../theme/textmate"),t.exports=g=f;function n(e,t,a){var r=e.style[a];return(r=r||(window.getComputedStyle?window.getComputedStyle(e,"").getPropertyValue(a):e.currentStyle[a]))&&"auto"!=r&&"intrinsic"!=r||(r=t.style[a]),r}g.transformTextarea=function(e,t){var a,r=e.autofocus||document.activeElement==e,o=m(e,function(){return a.getValue()});e.style.display="none",o.style.background="white";var c=document.createElement("div");u(c,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray",position:"absolute"}),o.appendChild(c);var n=document.createElement("div");u(n,{position:"absolute",right:"0px",bottom:"0px",cursor:"nw-resize",border:"solid 9px",borderColor:"lightblue gray gray #ceade6",zIndex:101});var i=document.createElement("div"),s={top:"0px",left:"20%",right:"0px",bottom:"0px",position:"absolute",padding:"5px",zIndex:100,color:"white",display:"none",overflow:"auto",fontSize:"14px",boxShadow:"-5px 2px 3px gray"};h.isOldIE?s.backgroundColor="#333":s.backgroundColor="rgba(0, 0, 0, 0.6)",u(i,s),o.appendChild(i),t=t||g.defaultOptions;var l=f.edit(c);(a=l.getSession()).setValue(e.value||e.innerHTML),r&&l.focus(),o.appendChild(n),p(l,0,i,0,t),function(e,a){function t(e,t,a,r){if(a){for(var o in e.push("")}else e.push("")}var r=null,o={mode:"Mode:",wrap:"Soft Wrap:",theme:"Theme:",fontSize:"Font Size:",showGutter:"Display Gutter:",keybindings:"Keyboard",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"},c={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",gob:"Green on Black",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},showGutter:r,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},wrap:{off:"Off",40:"40",80:"80",free:"Free"},keybindings:{ace:"ace",vim:"vim",emacs:"emacs"},showPrintMargin:r,useSoftTabs:r,showInvisibles:r},n=[];for(var i in n.push("
Setting | Value |
---|---|
",o[i]," | "),n.push(""),t(n,i,c[i],a.getOption(i)),n.push(" |