snippets
1 year ago
ace.js
1 year ago
ext-beautify.js
1 year ago
ext-code_lens.js
1 year ago
ext-elastic_tabstops_lite.js
1 year ago
ext-emmet.js
1 year ago
ext-error_marker.js
1 year ago
ext-hardwrap.js
1 year ago
ext-keybinding_menu.js
1 year ago
ext-language_tools.js
1 year ago
ext-linking.js
1 year ago
ext-modelist.js
1 year ago
ext-options.js
1 year ago
ext-prompt.js
1 year ago
ext-rtl.js
1 year ago
ext-searchbox.js
1 year ago
ext-settings_menu.js
1 year ago
ext-spellcheck.js
1 year ago
ext-split.js
1 year ago
ext-static_highlight.js
1 year ago
ext-statusbar.js
1 year ago
ext-textarea.js
1 year ago
ext-themelist.js
1 year ago
ext-whitespace.js
1 year ago
keybinding-emacs.js
1 year ago
keybinding-sublime.js
1 year ago
keybinding-vim.js
1 year ago
keybinding-vscode.js
1 year ago
mode-abap.js
1 year ago
mode-abc.js
1 year ago
mode-actionscript.js
1 year ago
mode-ada.js
1 year ago
mode-alda.js
1 year ago
mode-apache_conf.js
1 year ago
mode-apex.js
1 year ago
mode-applescript.js
1 year ago
mode-aql.js
1 year ago
mode-asciidoc.js
1 year ago
mode-asl.js
1 year ago
mode-assembly_x86.js
1 year ago
mode-autohotkey.js
1 year ago
mode-batchfile.js
1 year ago
mode-c9search.js
1 year ago
mode-c_cpp.js
1 year ago
mode-cirru.js
1 year ago
mode-clojure.js
1 year ago
mode-cobol.js
1 year ago
mode-coffee.js
1 year ago
mode-coldfusion.js
1 year ago
mode-crystal.js
1 year ago
mode-csharp.js
1 year ago
mode-csound_document.js
1 year ago
mode-csound_orchestra.js
1 year ago
mode-csound_score.js
1 year ago
mode-csp.js
1 year ago
mode-css.js
1 year ago
mode-curly.js
1 year ago
mode-d.js
1 year ago
mode-dart.js
1 year ago
mode-diff.js
1 year ago
mode-django.js
1 year ago
mode-dockerfile.js
1 year ago
mode-dot.js
1 year ago
mode-drools.js
1 year ago
mode-edifact.js
1 year ago
mode-eiffel.js
1 year ago
mode-ejs.js
1 year ago
mode-elixir.js
1 year ago
mode-elm.js
1 year ago
mode-erlang.js
1 year ago
mode-forth.js
1 year ago
mode-fortran.js
1 year ago
mode-fsharp.js
1 year ago
mode-fsl.js
1 year ago
mode-ftl.js
1 year ago
mode-gcode.js
1 year ago
mode-gherkin.js
1 year ago
mode-gitignore.js
1 year ago
mode-glsl.js
1 year ago
mode-gobstones.js
1 year ago
mode-golang.js
1 year ago
mode-graphqlschema.js
1 year ago
mode-groovy.js
1 year ago
mode-haml.js
1 year ago
mode-handlebars.js
1 year ago
mode-haskell.js
1 year ago
mode-haskell_cabal.js
1 year ago
mode-haxe.js
1 year ago
mode-hjson.js
1 year ago
mode-html.js
1 year ago
mode-html_elixir.js
1 year ago
mode-html_ruby.js
1 year ago
mode-ini.js
1 year ago
mode-io.js
1 year ago
mode-ion.js
1 year ago
mode-jack.js
1 year ago
mode-jade.js
1 year ago
mode-java.js
1 year ago
mode-javascript.js
1 year ago
mode-json.js
1 year ago
mode-json5.js
1 year ago
mode-jsoniq.js
1 year ago
mode-jsp.js
1 year ago
mode-jssm.js
1 year ago
mode-jsx.js
1 year ago
mode-julia.js
1 year ago
mode-kotlin.js
1 year ago
mode-latex.js
1 year ago
mode-latte.js
1 year ago
mode-less.js
1 year ago
mode-liquid.js
1 year ago
mode-lisp.js
1 year ago
mode-livescript.js
1 year ago
mode-logiql.js
1 year ago
mode-logtalk.js
1 year ago
mode-lsl.js
1 year ago
mode-lua.js
1 year ago
mode-luapage.js
1 year ago
mode-lucene.js
1 year ago
mode-makefile.js
1 year ago
mode-markdown.js
1 year ago
mode-mask.js
1 year ago
mode-matlab.js
1 year ago
mode-maze.js
1 year ago
mode-mediawiki.js
1 year ago
mode-mel.js
1 year ago
mode-mips.js
1 year ago
mode-mixal.js
1 year ago
mode-mushcode.js
1 year ago
mode-mysql.js
1 year ago
mode-nginx.js
1 year ago
mode-nim.js
1 year ago
mode-nix.js
1 year ago
mode-nsis.js
1 year ago
mode-nunjucks.js
1 year ago
mode-objectivec.js
1 year ago
mode-ocaml.js
1 year ago
mode-partiql.js
1 year ago
mode-pascal.js
1 year ago
mode-perl.js
1 year ago
mode-pgsql.js
1 year ago
mode-php.js
1 year ago
mode-php_laravel_blade.js
1 year ago
mode-pig.js
1 year ago
mode-plain_text.js
1 year ago
mode-powershell.js
1 year ago
mode-praat.js
1 year ago
mode-prisma.js
1 year ago
mode-prolog.js
1 year ago
mode-properties.js
1 year ago
mode-protobuf.js
1 year ago
mode-puppet.js
1 year ago
mode-python.js
1 year ago
mode-qml.js
1 year ago
mode-r.js
1 year ago
mode-raku.js
1 year ago
mode-razor.js
1 year ago
mode-rdoc.js
1 year ago
mode-red.js
1 year ago
mode-redshift.js
1 year ago
mode-rhtml.js
1 year ago
mode-robot.js
1 year ago
mode-rst.js
1 year ago
mode-ruby.js
1 year ago
mode-rust.js
1 year ago
mode-sac.js
1 year ago
mode-sass.js
1 year ago
mode-scad.js
1 year ago
mode-scala.js
1 year ago
mode-scheme.js
1 year ago
mode-scrypt.js
1 year ago
mode-scss.js
1 year ago
mode-sh.js
1 year ago
mode-sjs.js
1 year ago
mode-slim.js
1 year ago
mode-smarty.js
1 year ago
mode-smithy.js
1 year ago
mode-snippets.js
1 year ago
mode-soy_template.js
1 year ago
mode-space.js
1 year ago
mode-sparql.js
1 year ago
mode-sql.js
1 year ago
mode-sqlserver.js
1 year ago
mode-stylus.js
1 year ago
mode-svg.js
1 year ago
mode-swift.js
1 year ago
mode-tcl.js
1 year ago
mode-terraform.js
1 year ago
mode-tex.js
1 year ago
mode-text.js
1 year ago
mode-textile.js
1 year ago
mode-toml.js
1 year ago
mode-tsx.js
1 year ago
mode-turtle.js
1 year ago
mode-twig.js
1 year ago
mode-typescript.js
1 year ago
mode-vala.js
1 year ago
mode-vbscript.js
1 year ago
mode-velocity.js
1 year ago
mode-verilog.js
1 year ago
mode-vhdl.js
1 year ago
mode-visualforce.js
1 year ago
mode-wollok.js
1 year ago
mode-xml.js
1 year ago
mode-xquery.js
1 year ago
mode-yaml.js
1 year ago
mode-zeek.js
1 year ago
theme-ambiance.js
1 year ago
theme-chaos.js
1 year ago
theme-chrome.js
1 year ago
theme-cloud9_day.js
1 year ago
theme-cloud9_night.js
1 year ago
theme-cloud9_night_low_color.js
1 year ago
theme-clouds.js
1 year ago
theme-clouds_midnight.js
1 year ago
theme-cobalt.js
1 year ago
theme-crimson_editor.js
1 year ago
theme-dawn.js
1 year ago
theme-dracula.js
1 year ago
theme-dreamweaver.js
1 year ago
theme-eclipse.js
1 year ago
theme-github.js
1 year ago
theme-gob.js
1 year ago
theme-gruvbox.js
1 year ago
theme-gruvbox_dark_hard.js
1 year ago
theme-gruvbox_light_hard.js
1 year ago
theme-idle_fingers.js
1 year ago
theme-iplastic.js
1 year ago
theme-katzenmilch.js
1 year ago
theme-kr_theme.js
1 year ago
theme-kuroir.js
1 year ago
theme-merbivore.js
1 year ago
theme-merbivore_soft.js
1 year ago
theme-mono_industrial.js
1 year ago
theme-monokai.js
1 year ago
theme-nord_dark.js
1 year ago
theme-one_dark.js
1 year ago
theme-pastel_on_dark.js
1 year ago
theme-solarized_dark.js
1 year ago
theme-solarized_light.js
1 year ago
theme-sqlserver.js
1 year ago
theme-terminal.js
1 year ago
theme-textmate.js
1 year ago
theme-tomorrow.js
1 year ago
theme-tomorrow_night.js
1 year ago
theme-tomorrow_night_blue.js
1 year ago
theme-tomorrow_night_bright.js
1 year ago
theme-tomorrow_night_eighties.js
1 year ago
theme-twilight.js
1 year ago
theme-vibrant_ink.js
1 year ago
theme-xcode.js
1 year ago
worker-base.js
1 year ago
worker-coffee.js
1 year ago
worker-css.js
1 year ago
worker-html.js
1 year ago
worker-javascript.js
1 year ago
worker-json.js
1 year ago
worker-lua.js
1 year ago
worker-php.js
1 year ago
worker-xml.js
1 year ago
worker-xquery.js
1 year ago
worker-yaml.js
1 year ago
ext-split.js
8 lines
| 1 | ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,o=e("./editor").Editor,u=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,f=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){r.implement(this,s),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new u(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e==this.$splits)return;if(e>this.$splits){while(this.$splits<this.$editors.length&&this.$splits<e)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;while(this.$splits<e)this.$createEditor(),this.$splits++}else while(this.$splits>e)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;t==null?n=this.$cEditor:n=this.$editors[t];var r=this.$editors.some(function(t){return t.session===e});return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){if(this.$orientation==e)return;this.$orientation=e,this.resize()},this.resize=function(){var e=this.$container.clientWidth,t=this.$container.clientHeight,n;if(this.$orientation==this.BESIDE){var r=e/this.$splits;for(var i=0;i<this.$splits;i++)n=this.$editors[i],n.container.style.width=r+"px",n.container.style.top="0px",n.container.style.left=i*r+"px",n.container.style.height=t+"px",n.resize()}else{var s=t/this.$splits;for(var i=0;i<this.$splits;i++)n=this.$editors[i],n.container.style.width=e+"px",n.container.style.top=i*s+"px",n.container.style.left="0px",n.container.style.height=s+"px",n.resize()}}}).call(f.prototype),t.Split=f}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(e,t,n){"use strict";n.exports=e("../split")}); (function() { |
| 2 | ace.require(["ace/ext/split"], function(m) { |
| 3 | if (typeof module == "object" && typeof exports == "object" && module) { |
| 4 | module.exports = m; |
| 5 | } |
| 6 | }); |
| 7 | })(); |
| 8 |