├── .gitignore ├── .gitmodules ├── .travis.yml ├── CNAME ├── CONTRIBUTING.md ├── ChangeLog.txt ├── LICENSE ├── Makefile ├── Makefile.dryice.js ├── Readme.md ├── api ├── ace.html ├── anchor.html ├── background_tokenizer.html ├── command_manager.html ├── document.html ├── edit_session.html ├── editor.html ├── index.html ├── placeholder.html ├── range.html ├── renderloop.html ├── resources │ ├── csses │ │ └── ace_api.css │ ├── font │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── images │ │ ├── Ace_ERD.png │ │ ├── ace_logo.png │ │ ├── ace_logo_menu.png │ │ ├── c9-log-footer.png │ │ ├── c9-sponsor.png │ │ ├── cloud9-logo.png │ │ ├── content-top.png │ │ ├── content_bg.png │ │ ├── content_top_bg.png │ │ ├── dashed_back.png │ │ ├── footer-bg.png │ │ ├── main_bg.png │ │ ├── member-sprites.png │ │ ├── menu_disc.png │ │ ├── method_bg.png │ │ ├── scrolled-heading-shadow.png │ │ ├── sidebar-top-bg.png │ │ ├── sidebar_border.png │ │ └── swirl_divider.png │ └── javascripts │ │ ├── bbq.js │ │ ├── bootstrap.js │ │ ├── clicker.js │ │ ├── disqus-ext.js │ │ ├── jquery-scrollspy.js │ │ ├── jquery.collapse.js │ │ ├── jquery.cookie.js │ │ ├── plugins.js │ │ ├── prettify-extension.js │ │ ├── prettify.js │ │ └── ux.js ├── scrollbar.html ├── search.html ├── selection.html ├── split.html ├── token_iterator.html ├── tokenizer.html ├── undomanager.html └── virtual_renderer.html ├── build_support ├── editor.html ├── editor_textarea.html ├── mini_require.js └── style.css ├── demo ├── autocompletion.html ├── autoresize.html ├── chromevox.html ├── emmet.html ├── ie7.html ├── keyboard_shortcuts.html ├── kitchen-sink │ ├── demo.js │ ├── dev_util.js │ ├── doclist.js │ ├── docs │ │ ├── Jack.jack │ │ ├── Makefile │ │ ├── abap.abap │ │ ├── actionscript.as │ │ ├── ada.ada │ │ ├── assembly_x86.asm │ │ ├── autohotkey.ahk │ │ ├── batchfile.bat │ │ ├── c9search.c9search_results │ │ ├── c_cpp.cpp │ │ ├── cirru.cirru │ │ ├── clojure.clj │ │ ├── coffee.coffee │ │ ├── coldfusion.cfm │ │ ├── csharp.cs │ │ ├── css.css │ │ ├── curly.curly │ │ ├── d.d │ │ ├── dart.dart │ │ ├── diff.diff │ │ ├── dot.dot │ │ ├── ejs.ejs │ │ ├── erlang.erl │ │ ├── forth.frt │ │ ├── ftl.ftl │ │ ├── glsl.glsl │ │ ├── golang.go │ │ ├── groovy.groovy │ │ ├── haml.haml │ │ ├── handlebars.hbs │ │ ├── haskell.hs │ │ ├── htaccess │ │ ├── html.html │ │ ├── html_ruby.erb │ │ ├── ini.ini │ │ ├── jade.jade │ │ ├── java.java │ │ ├── javascript.js │ │ ├── json.json │ │ ├── jsoniq.jq │ │ ├── jsp.jsp │ │ ├── jsx.jsx │ │ ├── julia.jl │ │ ├── latex.tex │ │ ├── less.less │ │ ├── liquid.liquid │ │ ├── lisp.lisp │ │ ├── livescript.ls │ │ ├── logiql.logic │ │ ├── lsl.lsl │ │ ├── lua.lua │ │ ├── luapage.lp │ │ ├── lucene.lucene │ │ ├── markdown.md │ │ ├── matlab.matlab │ │ ├── mel.mel │ │ ├── mushcode.mc │ │ ├── mysql.mysql │ │ ├── objectivec.m │ │ ├── ocaml.ml │ │ ├── pascal.pas │ │ ├── perl.pl │ │ ├── pgsql.pgsql │ │ ├── php.php │ │ ├── plaintext.txt │ │ ├── powershell.ps1 │ │ ├── prolog.plg │ │ ├── properties.properties │ │ ├── protobuf.proto │ │ ├── python.py │ │ ├── r.r │ │ ├── rdoc.Rd │ │ ├── rhtml.Rhtml │ │ ├── ruby.rb │ │ ├── rust.rs │ │ ├── sass.sass │ │ ├── scad.scad │ │ ├── scala.scala │ │ ├── scheme.scm │ │ ├── scss.scss │ │ ├── sh.sh │ │ ├── sjs.sjs │ │ ├── snippets.snippets │ │ ├── soy_template.soy │ │ ├── space.space │ │ ├── sql.sql │ │ ├── stylus.styl │ │ ├── svg.svg │ │ ├── tcl.tcl │ │ ├── tex.tex │ │ ├── textile.textile │ │ ├── toml.toml │ │ ├── twig.twig │ │ ├── typescript.ts │ │ ├── vbscript.vbs │ │ ├── velocity.vm │ │ ├── verilog.v │ │ ├── vhdl.vhd │ │ ├── xml.xml │ │ ├── xquery.xq │ │ └── yaml.yaml │ ├── file_drop.js │ ├── icons │ │ ├── Readme.txt │ │ ├── epl.html │ │ ├── error_obj.gif │ │ └── warning_obj.gif │ ├── inline_editor.js │ ├── layout.js │ ├── logo.png │ ├── require.js │ ├── styles.css │ ├── token_tooltip.js │ └── util.js ├── modelist.html ├── requirejs+build.html ├── scrollable-page.html ├── settings_menu.html ├── show_own_source.js ├── static-highlighter │ ├── client-noconflict.html │ ├── client.html │ └── server.js └── statusbar.html ├── doc ├── Contributor_License_Agreement-v2.pdf ├── Corporate_Contributor_License_Agreement-v2.pdf ├── README.md ├── additionalObjs.json ├── build.js ├── index.md ├── package.json ├── site │ ├── images │ │ ├── FineCut_small_logo.png │ │ ├── ac-logo.png │ │ ├── ace-logo.png │ │ ├── ace-tab.png │ │ ├── ace.png │ │ ├── acebug-logo.png │ │ ├── background.png │ │ ├── body_background.png │ │ ├── bottombar.png │ │ ├── cloud9-logo.png │ │ ├── codecademy-logo.png │ │ ├── codiad.png │ │ ├── crunchapp-logo.png │ │ ├── empty-logo.png │ │ ├── favicon.ico │ │ ├── firefox-logo.png │ │ ├── fork_on_github.png │ │ ├── github-logo.png │ │ ├── habitat-logo.svg │ │ ├── header-bg.png │ │ ├── ideone-logo.png │ │ ├── khan-logo.png │ │ ├── logo.png │ │ ├── logo_half.png │ │ ├── lws-logo.png │ │ ├── modx-logo-4.png │ │ ├── pixie-logo.png │ │ ├── plunker.png │ │ ├── processwire-logo.svg │ │ ├── repl.it-logo.png │ │ ├── rstudio_logo_64.png │ │ ├── sassmeister-logo.png │ │ ├── shiftedit-logo.png │ │ ├── spandexio-logo.png │ │ ├── stypi-logo.png │ │ ├── sx-logo.png │ │ ├── textimage.png │ │ ├── weecod-logo.png │ │ ├── wolf_3d_logo_trans.png │ │ └── zorba-logo.png │ ├── iphone.css │ ├── js │ │ ├── ga.js │ │ └── main.js │ └── style.css └── template │ ├── jade │ ├── common_layout.jade │ ├── layout.jade │ └── lib.jade │ └── resources │ ├── csses │ └── ace_api.css │ ├── font │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff │ ├── images │ ├── Ace_ERD.png │ ├── ace_logo.png │ ├── ace_logo_menu.png │ ├── c9-log-footer.png │ ├── c9-sponsor.png │ ├── cloud9-logo.png │ ├── content-top.png │ ├── content_bg.png │ ├── content_top_bg.png │ ├── dashed_back.png │ ├── footer-bg.png │ ├── main_bg.png │ ├── member-sprites.png │ ├── menu_disc.png │ ├── method_bg.png │ ├── scrolled-heading-shadow.png │ ├── sidebar-top-bg.png │ ├── sidebar_border.png │ └── swirl_divider.png │ └── javascripts │ ├── bbq.js │ ├── bootstrap.js │ ├── clicker.js │ ├── disqus-ext.js │ ├── jquery-scrollspy.js │ ├── jquery.collapse.js │ ├── jquery.cookie.js │ ├── plugins.js │ ├── prettify-extension.js │ ├── prettify.js │ └── ux.js ├── experiments ├── animate_folding.html ├── basic_animation.html ├── capture.html ├── cut_copy.html ├── triple_click.html ├── worker.html ├── worker.js └── zenbg.png ├── index.html ├── kitchen-sink.html ├── lib └── ace │ ├── ace.js │ ├── anchor.js │ ├── anchor_test.js │ ├── autocomplete.js │ ├── autocomplete │ ├── popup.js │ ├── text_completer.js │ └── util.js │ ├── background_tokenizer.js │ ├── background_tokenizer_test.js │ ├── commands │ ├── command_manager.js │ ├── command_manager_test.js │ ├── default_commands.js │ ├── incremental_search_commands.js │ ├── multi_select_commands.js │ └── occur_commands.js │ ├── config.js │ ├── config_test.js │ ├── css │ ├── codefolding-fold-button-states.png │ ├── editor.css │ └── expand-marker.png │ ├── document.js │ ├── document_test.js │ ├── edit_session.js │ ├── edit_session │ ├── bracket_match.js │ ├── fold.js │ ├── fold_line.js │ └── folding.js │ ├── edit_session_test.js │ ├── editor.js │ ├── editor_change_document_test.js │ ├── editor_highlight_selected_word_test.js │ ├── editor_navigation_test.js │ ├── editor_text_edit_test.js │ ├── ext │ ├── chromevox.js │ ├── elastic_tabstops_lite.js │ ├── emmet.js │ ├── error_marker.js │ ├── keybinding_menu.js │ ├── language_tools.js │ ├── menu_tools │ │ ├── add_editor_menu_options.js │ │ ├── element_generator.js │ │ ├── generate_settings_menu.js │ │ ├── get_editor_keyboard_shortcuts.js │ │ ├── get_set_functions.js │ │ ├── overlay_page.js │ │ └── settings_menu.css │ ├── modelist.js │ ├── old_ie.js │ ├── old_ie_test.js │ ├── searchbox.css │ ├── searchbox.js │ ├── settings_menu.js │ ├── spellcheck.js │ ├── split.js │ ├── static.css │ ├── static_highlight.js │ ├── static_highlight_test.js │ ├── statusbar.js │ ├── textarea.js │ ├── themelist.js │ └── whitespace.js │ ├── incremental_search.js │ ├── incremental_search_test.js │ ├── keyboard │ ├── emacs.js │ ├── emacs_test.js │ ├── hash_handler.js │ ├── keybinding.js │ ├── keybinding_test.js │ ├── state_handler.js │ ├── textinput.js │ ├── vim.js │ ├── vim │ │ ├── commands.js │ │ ├── maps │ │ │ ├── aliases.js │ │ │ ├── motions.js │ │ │ ├── operators.js │ │ │ └── util.js │ │ └── registers.js │ └── vim_test.js │ ├── layer │ ├── cursor.js │ ├── gutter.js │ ├── marker.js │ ├── text.js │ └── text_test.js │ ├── lib │ ├── dom.js │ ├── es5-shim.js │ ├── event.js │ ├── event_emitter.js │ ├── event_emitter_test.js │ ├── fixoldbrowsers.js │ ├── keys.js │ ├── lang.js │ ├── net.js │ ├── oop.js │ ├── regexp.js │ └── useragent.js │ ├── line_widgets.js │ ├── mode │ ├── _test │ │ ├── Readme.md │ │ ├── highlight_rules_test.js │ │ ├── package.json │ │ ├── text_asciidoc.txt │ │ ├── text_coffee.txt │ │ ├── text_curly.txt │ │ ├── text_html.txt │ │ ├── text_javascript.txt │ │ ├── text_livescript.txt │ │ ├── text_lucene.txt │ │ ├── text_markdown.txt │ │ ├── text_ruby.txt │ │ ├── text_xml.txt │ │ ├── tokens_abap.json │ │ ├── tokens_actionscript.json │ │ ├── tokens_ada.json │ │ ├── tokens_asciidoc.json │ │ ├── tokens_assembly_x86.json │ │ ├── tokens_autohotkey.json │ │ ├── tokens_batchfile.json │ │ ├── tokens_c9search.json │ │ ├── tokens_c_cpp.json │ │ ├── tokens_clojure.json │ │ ├── tokens_cobol.json │ │ ├── tokens_coffee.json │ │ ├── tokens_coldfusion.json │ │ ├── tokens_csharp.json │ │ ├── tokens_css.json │ │ ├── tokens_curly.json │ │ ├── tokens_d.json │ │ ├── tokens_dart.json │ │ ├── tokens_diff.json │ │ ├── tokens_dot.json │ │ ├── tokens_ejs.json │ │ ├── tokens_erlang.json │ │ ├── tokens_forth.json │ │ ├── tokens_ftl.json │ │ ├── tokens_glsl.json │ │ ├── tokens_golang.json │ │ ├── tokens_groovy.json │ │ ├── tokens_haml.json │ │ ├── tokens_handlebars.json │ │ ├── tokens_haskell.json │ │ ├── tokens_haxe.json │ │ ├── tokens_html.json │ │ ├── tokens_html_ruby.json │ │ ├── tokens_jack.json │ │ ├── tokens_jade.json │ │ ├── tokens_java.json │ │ ├── tokens_javascript.json │ │ ├── tokens_json.json │ │ ├── tokens_jsp.json │ │ ├── tokens_jsx.json │ │ ├── tokens_julia.json │ │ ├── tokens_latex.json │ │ ├── tokens_less.json │ │ ├── tokens_liquid.json │ │ ├── tokens_lisp.json │ │ ├── tokens_livescript.json │ │ ├── tokens_logiql.json │ │ ├── tokens_lsl.json │ │ ├── tokens_lua.json │ │ ├── tokens_luapage.json │ │ ├── tokens_lucene.json │ │ ├── tokens_markdown.json │ │ ├── tokens_mel.json │ │ ├── tokens_mushcode.json │ │ ├── tokens_nix.json │ │ ├── tokens_objectivec.json │ │ ├── tokens_ocaml.json │ │ ├── tokens_pascal.json │ │ ├── tokens_perl.json │ │ ├── tokens_pgsql.json │ │ ├── tokens_php.json │ │ ├── tokens_powershell.json │ │ ├── tokens_prolog.json │ │ ├── tokens_properties.json │ │ ├── tokens_protobuf.json │ │ ├── tokens_python.json │ │ ├── tokens_r.json │ │ ├── tokens_rdoc.json │ │ ├── tokens_rhtml.json │ │ ├── tokens_ruby.json │ │ ├── tokens_rust.json │ │ ├── tokens_sass.json │ │ ├── tokens_scad.json │ │ ├── tokens_scala.json │ │ ├── tokens_scheme.json │ │ ├── tokens_scss.json │ │ ├── tokens_sh.json │ │ ├── tokens_sjs.json │ │ ├── tokens_snippets.json │ │ ├── tokens_soy_template.json │ │ ├── tokens_space.json │ │ ├── tokens_sql.json │ │ ├── tokens_stylus.json │ │ ├── tokens_svg.json │ │ ├── tokens_tcl.json │ │ ├── tokens_tex.json │ │ ├── tokens_text.json │ │ ├── tokens_textile.json │ │ ├── tokens_toml.json │ │ ├── tokens_twig.json │ │ ├── tokens_typescript.json │ │ ├── tokens_vbscript.json │ │ ├── tokens_velocity.json │ │ ├── tokens_verilog.json │ │ ├── tokens_vhdl.json │ │ ├── tokens_xml.json │ │ ├── tokens_xquery.json │ │ └── tokens_yaml.json │ ├── abap.js │ ├── abap_highlight_rules.js │ ├── actionscript.js │ ├── actionscript_highlight_rules.js │ ├── ada.js │ ├── ada_highlight_rules.js │ ├── apache_conf.js │ ├── apache_conf_highlight_rules.js │ ├── asciidoc.js │ ├── asciidoc_highlight_rules.js │ ├── assembly_x86.js │ ├── assembly_x86_highlight_rules.js │ ├── autohotkey.js │ ├── autohotkey_highlight_rules.js │ ├── batchfile.js │ ├── batchfile_highlight_rules.js │ ├── behaviour.js │ ├── behaviour │ │ ├── coldfusion.js │ │ ├── css.js │ │ ├── cstyle.js │ │ ├── html.js │ │ ├── xml.js │ │ └── xquery.js │ ├── c9search.js │ ├── c9search_highlight_rules.js │ ├── c_cpp.js │ ├── c_cpp_highlight_rules.js │ ├── cirru.js │ ├── cirru_highlight_rules.js │ ├── clojure.js │ ├── clojure_highlight_rules.js │ ├── cobol.js │ ├── cobol_highlight_rules.js │ ├── coffee.js │ ├── coffee │ │ ├── coffee-script.js │ │ ├── helpers.js │ │ ├── lexer.js │ │ ├── nodes.js │ │ ├── parser.js │ │ ├── parser_test.js │ │ ├── rewriter.js │ │ └── scope.js │ ├── coffee_highlight_rules.js │ ├── coffee_worker.js │ ├── coldfusion.js │ ├── coldfusion_highlight_rules.js │ ├── coldfusion_test.js │ ├── csharp.js │ ├── csharp_highlight_rules.js │ ├── css.js │ ├── css │ │ └── csslint.js │ ├── css_highlight_rules.js │ ├── css_test.js │ ├── css_worker.js │ ├── css_worker_test.js │ ├── curly.js │ ├── curly_highlight_rules.js │ ├── d.js │ ├── d_highlight_rules.js │ ├── dart.js │ ├── dart_highlight_rules.js │ ├── diff.js │ ├── diff_highlight_rules.js │ ├── django.js │ ├── doc_comment_highlight_rules.js │ ├── dot.js │ ├── dot_highlight_rules.js │ ├── ejs.js │ ├── erlang.js │ ├── erlang_highlight_rules.js │ ├── folding │ │ ├── asciidoc.js │ │ ├── c9search.js │ │ ├── coffee.js │ │ ├── coffee_test.js │ │ ├── csharp.js │ │ ├── cstyle.js │ │ ├── cstyle_test.js │ │ ├── diff.js │ │ ├── fold_mode.js │ │ ├── html.js │ │ ├── html_test.js │ │ ├── ini.js │ │ ├── latex.js │ │ ├── lua.js │ │ ├── markdown.js │ │ ├── mixed.js │ │ ├── pythonic.js │ │ ├── pythonic_test.js │ │ ├── velocity.js │ │ ├── xml.js │ │ └── xml_test.js │ ├── forth.js │ ├── forth_highlight_rules.js │ ├── ftl.js │ ├── ftl_highlight_rules.js │ ├── glsl.js │ ├── glsl_highlight_rules.js │ ├── golang.js │ ├── golang_highlight_rules.js │ ├── groovy.js │ ├── groovy_highlight_rules.js │ ├── haml.js │ ├── haml_highlight_rules.js │ ├── handlebars.js │ ├── handlebars_highlight_rules.js │ ├── haskell.js │ ├── haskell_highlight_rules.js │ ├── haxe.js │ ├── haxe_highlight_rules.js │ ├── html.js │ ├── html │ │ └── saxparser.js │ ├── html_completions.js │ ├── html_highlight_rules.js │ ├── html_ruby.js │ ├── html_ruby_highlight_rules.js │ ├── html_test.js │ ├── html_worker.js │ ├── ini.js │ ├── ini_highlight_rules.js │ ├── jack.js │ ├── jack_highlight_rules.js │ ├── jade.js │ ├── jade_highlight_rules.js │ ├── java.js │ ├── java_highlight_rules.js │ ├── javascript.js │ ├── javascript │ │ └── jshint.js │ ├── javascript_highlight_rules.js │ ├── javascript_test.js │ ├── javascript_worker.js │ ├── javascript_worker_test.js │ ├── js_regex_highlight_rules.js │ ├── json.js │ ├── json │ │ └── json_parse.js │ ├── json_highlight_rules.js │ ├── json_worker.js │ ├── json_worker_test.js │ ├── jsoniq.js │ ├── jsp.js │ ├── jsp_highlight_rules.js │ ├── jsx.js │ ├── jsx_highlight_rules.js │ ├── julia.js │ ├── julia_highlight_rules.js │ ├── latex.js │ ├── latex_highlight_rules.js │ ├── less.js │ ├── less_highlight_rules.js │ ├── liquid.js │ ├── liquid_highlight_rules.js │ ├── lisp.js │ ├── lisp_highlight_rules.js │ ├── livescript.js │ ├── logiql.js │ ├── logiql_highlight_rules.js │ ├── logiql_test.js │ ├── lsl.js │ ├── lsl_highlight_rules.js │ ├── lua.js │ ├── lua │ │ └── luaparse.js │ ├── lua_highlight_rules.js │ ├── lua_worker.js │ ├── luapage.js │ ├── luapage_highlight_rules.js │ ├── lucene.js │ ├── lucene_highlight_rules.js │ ├── makefile.js │ ├── makefile_highlight_rules.js │ ├── markdown.js │ ├── markdown_highlight_rules.js │ ├── matching_brace_outdent.js │ ├── matching_parens_outdent.js │ ├── matlab.js │ ├── matlab_highlight_rules.js │ ├── mel.js │ ├── mel_highlight_rules.js │ ├── mushcode.js │ ├── mushcode_high_rules.js │ ├── mysql.js │ ├── mysql_highlight_rules.js │ ├── nix.js │ ├── nix_highlight_rules.js │ ├── objectivec.js │ ├── objectivec_highlight_rules.js │ ├── ocaml.js │ ├── ocaml_highlight_rules.js │ ├── pascal.js │ ├── pascal_highlight_rules.js │ ├── perl.js │ ├── perl_highlight_rules.js │ ├── pgsql.js │ ├── pgsql_highlight_rules.js │ ├── php.js │ ├── php │ │ └── php.js │ ├── php_highlight_rules.js │ ├── php_worker.js │ ├── plain_text.js │ ├── plain_text_test.js │ ├── powershell.js │ ├── powershell_highlight_rules.js │ ├── prolog.js │ ├── prolog_highlight_rules.js │ ├── properties.js │ ├── properties_highlight_rules.js │ ├── protobuf.js │ ├── protobuf_highlight_rules.js │ ├── python.js │ ├── python_highlight_rules.js │ ├── python_test.js │ ├── r.js │ ├── r_highlight_rules.js │ ├── rdoc.js │ ├── rdoc_highlight_rules.js │ ├── rhtml.js │ ├── rhtml_highlight_rules.js │ ├── ruby.js │ ├── ruby_highlight_rules.js │ ├── ruby_test.js │ ├── rust.js │ ├── rust_highlight_rules.js │ ├── sass.js │ ├── sass_highlight_rules.js │ ├── scad.js │ ├── scad_highlight_rules.js │ ├── scala.js │ ├── scala_highlight_rules.js │ ├── scheme.js │ ├── scheme_highlight_rules.js │ ├── scss.js │ ├── scss_highlight_rules.js │ ├── sh.js │ ├── sh_highlight_rules.js │ ├── sjs.js │ ├── sjs_highlight_rules.js │ ├── snippets.js │ ├── soy_template.js │ ├── soy_template_highlight_rules.js │ ├── space.js │ ├── space_highlight_rules.js │ ├── sql.js │ ├── sql_highlight_rules.js │ ├── stylus.js │ ├── stylus_highlight_rules.js │ ├── svg.js │ ├── svg_highlight_rules.js │ ├── tcl.js │ ├── tcl_highlight_rules.js │ ├── tex.js │ ├── tex_highlight_rules.js │ ├── text.js │ ├── text_highlight_rules.js │ ├── text_test.js │ ├── textile.js │ ├── textile_highlight_rules.js │ ├── toml.js │ ├── toml_highlight_rules.js │ ├── twig.js │ ├── twig_highlight_rules.js │ ├── typescript.js │ ├── typescript_highlight_rules.js │ ├── vbscript.js │ ├── vbscript_highlight_rules.js │ ├── velocity.js │ ├── velocity_highlight_rules.js │ ├── verilog.js │ ├── verilog_highlight_rules.js │ ├── vhdl.js │ ├── vhdl_highlight_rules.js │ ├── xml.js │ ├── xml_highlight_rules.js │ ├── xml_test.js │ ├── xml_util.js │ ├── xquery.js │ ├── xquery │ │ ├── JSONParseTreeHandler.js │ │ ├── JSONiqLexer.js │ │ ├── JSONiqTokenizer.ebnf │ │ ├── JSONiqTokenizer.js │ │ ├── Readme.md │ │ ├── XQueryLexer.js │ │ ├── XQueryParser.ebnf │ │ ├── XQueryParser.js │ │ ├── XQueryTokenizer.ebnf │ │ ├── XQueryTokenizer.js │ │ └── visitors │ │ │ └── SemanticHighlighter.js │ ├── xquery_worker.js │ ├── yaml.js │ └── yaml_highlight_rules.js │ ├── model │ └── editor.js │ ├── mouse │ ├── default_gutter_handler.js │ ├── default_handlers.js │ ├── dragdrop_handler.js │ ├── fold_handler.js │ ├── mouse_event.js │ ├── mouse_handler.js │ ├── mouse_handler_test.js │ └── multi_select_handler.js │ ├── multi_select.js │ ├── multi_select_test.js │ ├── occur.js │ ├── occur_test.js │ ├── placeholder.js │ ├── placeholder_test.js │ ├── range.js │ ├── range_list.js │ ├── range_list_test.js │ ├── range_test.js │ ├── renderloop.js │ ├── requirejs │ └── text.js │ ├── scrollbar.js │ ├── search.js │ ├── search_highlight.js │ ├── search_test.js │ ├── selection.js │ ├── selection_test.js │ ├── snippets.js │ ├── snippets │ ├── _.snippets │ ├── abap.js │ ├── abap.snippets │ ├── actionscript.js │ ├── actionscript.snippets │ ├── ada.js │ ├── ada.snippets │ ├── apache.snippets │ ├── apache_conf.js │ ├── apache_conf.snippets │ ├── asciidoc.js │ ├── asciidoc.snippets │ ├── assembly_x86.js │ ├── assembly_x86.snippets │ ├── autohotkey.js │ ├── autohotkey.snippets │ ├── autoit.snippets │ ├── batchfile.js │ ├── batchfile.snippets │ ├── c.snippets │ ├── c9search.js │ ├── c9search.snippets │ ├── c_cpp.js │ ├── c_cpp.snippets │ ├── chef.snippets │ ├── clojure.js │ ├── clojure.snippets │ ├── cmake.snippets │ ├── cobol.js │ ├── cobol.snippets │ ├── coffee.js │ ├── coffee.snippets │ ├── coldfusion.js │ ├── coldfusion.snippets │ ├── cs.snippets │ ├── csharp.js │ ├── csharp.snippets │ ├── css.js │ ├── css.snippets │ ├── curly.js │ ├── curly.snippets │ ├── d.js │ ├── d.snippets │ ├── dart.js │ ├── dart.snippets │ ├── diff.js │ ├── diff.snippets │ ├── django.js │ ├── django.snippets │ ├── dot.js │ ├── dot.snippets │ ├── ejs.js │ ├── ejs.snippets │ ├── erlang.js │ ├── erlang.snippets │ ├── eruby.snippets │ ├── falcon.snippets │ ├── forth.js │ ├── forth.snippets │ ├── ftl.js │ ├── ftl.snippets │ ├── glsl.js │ ├── glsl.snippets │ ├── go.snippets │ ├── golang.js │ ├── golang.snippets │ ├── groovy.js │ ├── groovy.snippets │ ├── haml.js │ ├── haml.snippets │ ├── handlebars.js │ ├── handlebars.snippets │ ├── haskell.js │ ├── haskell.snippets │ ├── haxe.js │ ├── haxe.snippets │ ├── html.js │ ├── html.snippets │ ├── html_ruby.js │ ├── html_ruby.snippets │ ├── htmldjango.snippets │ ├── htmltornado.snippets │ ├── ini.js │ ├── ini.snippets │ ├── jade.js │ ├── jade.snippets │ ├── java.js │ ├── java.snippets │ ├── javascript-jquery.snippets │ ├── javascript.js │ ├── javascript.snippets │ ├── json.js │ ├── json.snippets │ ├── jsoniq.js │ ├── jsoniq.snippets │ ├── jsp.js │ ├── jsp.snippets │ ├── jsx.js │ ├── jsx.snippets │ ├── julia.js │ ├── julia.snippets │ ├── latex.js │ ├── latex.snippets │ ├── ledger.snippets │ ├── less.js │ ├── less.snippets │ ├── liquid.js │ ├── liquid.snippets │ ├── lisp.js │ ├── lisp.snippets │ ├── livescript.js │ ├── livescript.snippets │ ├── logiql.js │ ├── logiql.snippets │ ├── lsl.js │ ├── lsl.snippets │ ├── lua.js │ ├── lua.snippets │ ├── luapage.js │ ├── luapage.snippets │ ├── lucene.js │ ├── lucene.snippets │ ├── makefile.js │ ├── makefile.snippets │ ├── mako.snippets │ ├── markdown.js │ ├── markdown.snippets │ ├── matlab.js │ ├── matlab.snippets │ ├── mushcode.js │ ├── mushcode.snippets │ ├── mushcode_high_rules.js │ ├── mushcode_high_rules.snippets │ ├── mysql.js │ ├── mysql.snippets │ ├── nix.js │ ├── nix.snippets │ ├── objc.snippets │ ├── objectivec.js │ ├── objectivec.snippets │ ├── ocaml.js │ ├── ocaml.snippets │ ├── pascal.js │ ├── pascal.snippets │ ├── perl.js │ ├── perl.snippets │ ├── pgsql.js │ ├── pgsql.snippets │ ├── php.js │ ├── php.snippets │ ├── powershell.js │ ├── powershell.snippets │ ├── prolog.js │ ├── prolog.snippets │ ├── properties.js │ ├── properties.snippets │ ├── protobuf.js │ ├── python.js │ ├── python.snippets │ ├── r.js │ ├── r.snippets │ ├── rdoc.js │ ├── rdoc.snippets │ ├── rhtml.js │ ├── rhtml.snippets │ ├── rst.snippets │ ├── ruby.js │ ├── ruby.snippets │ ├── rust.js │ ├── rust.snippets │ ├── sass.js │ ├── sass.snippets │ ├── scad.js │ ├── scad.snippets │ ├── scala.js │ ├── scala.snippets │ ├── scheme.js │ ├── scheme.snippets │ ├── scss.js │ ├── scss.snippets │ ├── sh.js │ ├── sh.snippets │ ├── sjs.js │ ├── sjs.snippets │ ├── snippets.js │ ├── snippets.snippets │ ├── soy_template.js │ ├── soy_template.snippets │ ├── sql.js │ ├── sql.snippets │ ├── stylus.js │ ├── stylus.snippets │ ├── svg.js │ ├── svg.snippets │ ├── tcl.js │ ├── tcl.snippets │ ├── tex.js │ ├── tex.snippets │ ├── text.js │ ├── text.snippets │ ├── textile.js │ ├── textile.snippets │ ├── tmsnippet.snippets │ ├── toml.js │ ├── toml.snippets │ ├── twig.js │ ├── twig.snippets │ ├── typescript.js │ ├── typescript.snippets │ ├── vbscript.js │ ├── vbscript.snippets │ ├── velocity.js │ ├── velocity.snippets │ ├── verilog.js │ ├── verilog.snippets │ ├── vhdl.js │ ├── vhdl.snippets │ ├── xml.js │ ├── xml.snippets │ ├── xquery.js │ ├── xquery.snippets │ ├── xslt.snippets │ ├── yaml.js │ └── yaml.snippets │ ├── snippets_test.js │ ├── split.js │ ├── test │ ├── all.js │ ├── all_browser.js │ ├── assertions.js │ ├── asyncjs │ │ ├── assert.js │ │ ├── async.js │ │ ├── index.js │ │ ├── test.js │ │ └── utils.js │ ├── benchmark.js │ ├── mockdom.js │ ├── mockrenderer.js │ └── tests.html │ ├── theme │ ├── ambiance.css │ ├── ambiance.js │ ├── chaos.css │ ├── chaos.js │ ├── chrome.css │ ├── chrome.js │ ├── clouds.css │ ├── clouds.js │ ├── clouds_midnight.css │ ├── clouds_midnight.js │ ├── cobalt.css │ ├── cobalt.js │ ├── crimson_editor.css │ ├── crimson_editor.js │ ├── dawn.css │ ├── dawn.js │ ├── dreamweaver.css │ ├── dreamweaver.js │ ├── eclipse.css │ ├── eclipse.js │ ├── github.css │ ├── github.js │ ├── idle_fingers.css │ ├── idle_fingers.js │ ├── katzenmilch.css │ ├── katzenmilch.js │ ├── kr_theme.css │ ├── kr_theme.js │ ├── kuroir.css │ ├── kuroir.js │ ├── merbivore.css │ ├── merbivore.js │ ├── merbivore_soft.css │ ├── merbivore_soft.js │ ├── mono_industrial.css │ ├── mono_industrial.js │ ├── monokai.css │ ├── monokai.js │ ├── pastel_on_dark.css │ ├── pastel_on_dark.js │ ├── solarized_dark.css │ ├── solarized_dark.js │ ├── solarized_light.css │ ├── solarized_light.js │ ├── terminal.css │ ├── terminal.js │ ├── textmate.css │ ├── textmate.js │ ├── tomorrow.css │ ├── tomorrow.js │ ├── tomorrow_night.css │ ├── tomorrow_night.js │ ├── tomorrow_night_blue.css │ ├── tomorrow_night_blue.js │ ├── tomorrow_night_bright.css │ ├── tomorrow_night_bright.js │ ├── tomorrow_night_eighties.css │ ├── tomorrow_night_eighties.js │ ├── twilight.css │ ├── twilight.js │ ├── vibrant_ink.css │ ├── vibrant_ink.js │ ├── xcode.css │ └── xcode.js │ ├── token_iterator.js │ ├── token_iterator_test.js │ ├── tokenizer.js │ ├── tokenizer_dev.js │ ├── tokenizer_test.js │ ├── tooltip.js │ ├── undomanager.js │ ├── unicode.js │ ├── virtual_renderer.js │ ├── virtual_renderer_test.js │ └── worker │ ├── mirror.js │ ├── worker.js │ ├── worker_client.js │ └── worker_test.js ├── package.json ├── static.js ├── static.py ├── tool ├── lib.js ├── mode.tmpl.js ├── mode_creator.html ├── mode_creator.js ├── mode_highlight_rules.tmpl.js ├── package.json ├── perf-test.html ├── snippets.tmpl.js ├── theme.tmpl.css ├── theme.tmpl.js ├── tmlanguage.js ├── tmsnippets.js ├── tmtheme.js ├── tmthemes │ ├── Active4D.tmTheme │ ├── All Hallows Eve.tmTheme │ ├── Amy.tmTheme │ ├── Blackboard.tmTheme │ ├── Brilliance Black.tmTheme │ ├── Brilliance Dull.tmTheme │ ├── Chrome DevTools.tmTheme │ ├── Clouds Midnight.tmTheme │ ├── Clouds.tmTheme │ ├── Cobalt.tmTheme │ ├── Dawn.tmTheme │ ├── Dreamweaver.tmTheme │ ├── Eiffel.tmTheme │ ├── Espresso Libre.tmTheme │ ├── GitHub.tmTheme │ ├── IDLE.tmTheme │ ├── LAZY.tmTheme │ ├── LICENSE │ ├── MagicWB (Amiga).tmTheme │ ├── Merbivore Soft.tmTheme │ ├── Merbivore.tmTheme │ ├── Monokai.tmTheme │ ├── Pastels on Dark.tmTheme │ ├── Slush and Poppies.tmTheme │ ├── Solarized-dark.tmTheme │ ├── Solarized-light.tmTheme │ ├── SpaceCadet.tmTheme │ ├── Sunburst.tmTheme │ ├── Textmate (Mac Classic).tmTheme │ ├── Tomorrow-Night-Blue.tmTheme │ ├── Tomorrow-Night-Bright.tmTheme │ ├── Tomorrow-Night-Eighties.tmTheme │ ├── Tomorrow-Night.tmTheme │ ├── Tomorrow.tmTheme │ ├── Twilight.tmTheme │ ├── Vibrant Ink.tmTheme │ ├── Xcode_default.tmTheme │ ├── Zenburnesque.tmTheme │ ├── iPlastic.tmTheme │ ├── idleFingers.tmTheme │ ├── krTheme.tmTheme │ └── monoindustrial.tmTheme ├── update_deps.js └── wrap_keyword_regexp.js └── version.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Junk that could exist anywhere: 2 | .DS_Store 3 | *.swp 4 | *.tmp 5 | 6 | # Project files that should not be in the repo 7 | .* 8 | \#* 9 | !/.gitignore 10 | .*.gz 11 | *.tmTheme.js 12 | 13 | # A handy place to put stuff that git should ignore: 14 | /ignore/ 15 | node_modules/ 16 | jam/ 17 | * * 18 | 19 | .git-ref 20 | npm-debug.log 21 | deps/ 22 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "doc/wiki"] 2 | path = doc/wiki 3 | url = git://github.com/ajaxorg/ace.wiki.git 4 | [submodule "build"] 5 | path = build 6 | url = git://github.com/ajaxorg/ace-builds.git 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | ace.c9.io 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY : doc build clean dist 2 | 3 | pre_build: 4 | git rev-parse HEAD > .git-ref 5 | mkdir -p build/src 6 | mkdir -p build/demo/kitchen-sink 7 | mkdir -p build/textarea/src 8 | 9 | cp -r demo/kitchen-sink/styles.css build/demo/kitchen-sink/styles.css 10 | cp demo/kitchen-sink/logo.png build/demo/kitchen-sink/logo.png 11 | cp -r doc/site/images build/textarea 12 | 13 | build: pre_build 14 | ./Makefile.dryice.js normal 15 | ./Makefile.dryice.js demo 16 | ./Makefile.dryice.js bm 17 | 18 | # Minimal build: call Makefile.dryice.js only if our sources changed 19 | basic: build/src/ace.js 20 | 21 | build/src/ace.js : ${wildcard lib/*} \ 22 | ${wildcard lib/*/*} \ 23 | ${wildcard lib/*/*/*} \ 24 | ${wildcard lib/*/*/*/*} \ 25 | ${wildcard lib/*/*/*/*/*} \ 26 | ${wildcard lib/*/*/*/*/*/*} 27 | ./Makefile.dryice.js 28 | 29 | doc: 30 | cd doc;\ 31 | (test -d node_modules && npm update) || npm install;\ 32 | node build.js 33 | 34 | clean: 35 | rm -rf build 36 | rm -rf ace-* 37 | rm -f ace-*.tgz 38 | 39 | ace.tgz: build 40 | mv build ace-`./version.js`/ 41 | cp Readme.md ace-`./version.js`/ 42 | cp LICENSE ace-`./version.js`/ 43 | tar cvfz ace-`./version.js`.tgz ace-`./version.js`/ 44 | 45 | dist: clean build ace.tgz 46 | -------------------------------------------------------------------------------- /api/index.html: -------------------------------------------------------------------------------- 1 | 2 |

Ace API Reference

3 |

Welcome to the Ace API Reference Guide. Ace is a standalone code editor written in JavaScript that you can embed onto any website. We're used in a bunch of places already, like GitHub, Google, and Facebook.

4 |

On the left, you'll find a list of all of our currently documented classes. There are plenty more to do, but these represent the "core" set. For more information on how to work with Ace, check out the main Ace website.

5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
-------------------------------------------------------------------------------- /api/resources/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /api/resources/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /api/resources/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /api/resources/images/Ace_ERD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/Ace_ERD.png -------------------------------------------------------------------------------- /api/resources/images/ace_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/ace_logo.png -------------------------------------------------------------------------------- /api/resources/images/ace_logo_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/ace_logo_menu.png -------------------------------------------------------------------------------- /api/resources/images/c9-log-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/c9-log-footer.png -------------------------------------------------------------------------------- /api/resources/images/c9-sponsor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/c9-sponsor.png -------------------------------------------------------------------------------- /api/resources/images/cloud9-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/cloud9-logo.png -------------------------------------------------------------------------------- /api/resources/images/content-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/content-top.png -------------------------------------------------------------------------------- /api/resources/images/content_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/content_bg.png -------------------------------------------------------------------------------- /api/resources/images/content_top_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/content_top_bg.png -------------------------------------------------------------------------------- /api/resources/images/dashed_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/dashed_back.png -------------------------------------------------------------------------------- /api/resources/images/footer-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/footer-bg.png -------------------------------------------------------------------------------- /api/resources/images/main_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/main_bg.png -------------------------------------------------------------------------------- /api/resources/images/member-sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/member-sprites.png -------------------------------------------------------------------------------- /api/resources/images/menu_disc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/menu_disc.png -------------------------------------------------------------------------------- /api/resources/images/method_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/method_bg.png -------------------------------------------------------------------------------- /api/resources/images/scrolled-heading-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/scrolled-heading-shadow.png -------------------------------------------------------------------------------- /api/resources/images/sidebar-top-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/sidebar-top-bg.png -------------------------------------------------------------------------------- /api/resources/images/sidebar_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/sidebar_border.png -------------------------------------------------------------------------------- /api/resources/images/swirl_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/api/resources/images/swirl_divider.png -------------------------------------------------------------------------------- /api/resources/javascripts/disqus-ext.js: -------------------------------------------------------------------------------- 1 | function setupDisqus(href) { 2 | var disqus_shortname = 'aceapi'; 3 | 4 | //var paths = window.location.pathname.split("/"); 5 | //var fileName = paths[paths.length - 2] + "/" + paths[paths.length - 1]; 6 | 7 | //var disqus_identifier = fileName; 8 | var disqus_identifier = href.substring(2); 9 | 10 | (function() { 11 | if (document.getElementById("disqusScript") === null) { 12 | var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; 13 | dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; 14 | (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); 15 | } 16 | })(); 17 | } -------------------------------------------------------------------------------- /api/resources/javascripts/plugins.js: -------------------------------------------------------------------------------- 1 | window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);(typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a))}}; 2 | (function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try 3 | {console.log();return window.console;}catch(err){return window.console={};}})()); 4 | 5 | /* 6 | * jQuery throttle / debounce - v1.1 - 3/7/2010 7 | * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 8 | * 9 | * Copyright (c) 2010 "Cowboy" Ben Alman 10 | * Dual licensed under the MIT and GPL licenses. 11 | * http://benalman.com/about/license/ 12 | */ 13 | (function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this); 14 | -------------------------------------------------------------------------------- /api/resources/javascripts/prettify-extension.js: -------------------------------------------------------------------------------- 1 | // Stolen from StackOverflow. Find all
 
 2 | // elements on the page and add the "prettyprint" style. If at least one 
 3 | // prettyprint element was found, call the Google Prettify prettyPrint() API.
 4 | //http://sstatic.net/so/js/master.js?v=6523
 5 | function styleCode() 
 6 | {
 7 |     if (typeof disableStyleCode != "undefined") 
 8 |     {
 9 |         return;
10 |     }
11 | 
12 |     var a = false;
13 | 
14 |     $("pre code").parent().each(function() 
15 |     {
16 |         if (!$(this).hasClass("prettyprint")) 
17 |         {
18 |             $(this).addClass("prettyprint");
19 |             a = true
20 |         }
21 |     });
22 |     
23 |     if (a) { prettyPrint() } 
24 | }


--------------------------------------------------------------------------------
/build_support/editor.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |   
 5 |   
 6 |   Editor
 7 |   
21 | 
22 | 
23 | 
24 | 
function foo(items) {
25 |     var i;
26 |     for (i = 0; i < items.length; i++) {
27 |         alert("Ace Rocks " + items[i]);
28 |     }
29 | }
30 | 31 | 32 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /demo/autocompletion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ACE Autocompletion demo 6 | 20 | 21 | 22 | 23 |

24 | 
25 | 
26 | 
27 | 
28 | 
29 | 
41 | 
42 | 
43 | 
44 | 
45 | 


--------------------------------------------------------------------------------
/demo/autoresize.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |   
 5 |   
 6 |   Editor
 7 |   
21 | 
22 | 
23 | 
autoresizing editor
24 |
25 |
minHeight = 2 lines
26 | 27 | 28 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /demo/chromevox.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ACE ChromeVox demo 6 | 20 | 21 | 22 | 23 |

24 | 
25 | 
26 | 
27 | 
28 | 
29 | 
36 | 
37 | 
38 | 
39 | 
40 | 


--------------------------------------------------------------------------------
/demo/emmet.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |   
 5 |   ACE Emmet demo
 6 |   
20 | 
21 | 
22 | 
23 | 

24 | 
25 | 
26 | 
27 | 
28 | 
29 | 
30 | 
31 | 
39 | 
40 | 
41 | 
42 | 
43 | 


--------------------------------------------------------------------------------
/demo/ie7.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |   
 5 |   
 6 |   ACE Editor StatusBar Demo
 7 |   
22 | 
23 | 
24 | 
25 | 
26 | require("ace/ext/old_ie");
27 | // now ace will work even on ie7!
28 | var editor = ace.edit("editor");
29 | 
30 | 31 | 32 | 33 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /demo/keyboard_shortcuts.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Editor 7 | 20 | 21 | 22 | 23 |

24 |     
25 | 
26 | 
43 | 
44 | 
45 | 
46 | 
47 | 


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/abap.abap:
--------------------------------------------------------------------------------
 1 | ***************************************
 2 | ** Program: EXAMPLE                  **
 3 | ** Author: Joe Byte, 07-Jul-2007     **
 4 | ***************************************
 5 |  
 6 | REPORT BOOKINGS.
 7 |  
 8 | * Read flight bookings from the database
 9 | SELECT * FROM FLIGHTINFO
10 |   WHERE CLASS = 'Y'       "Y = economy
11 |   OR    CLASS = 'C'.      "C = business
12 | (...)
13 | 
14 | REPORT TEST.
15 | WRITE 'Hello World'.
16 | 
17 | USERPROMPT = 'Please double-click on a line in the output list ' &
18 |              'to see the complete details of the transaction.'.
19 | 
20 | 
21 | DATA LAST_EOM    TYPE D.  "last end-of-month date
22 |  
23 | * Start from today's date
24 |   LAST_EOM = SY-DATUM.
25 | * Set characters 6 and 7 (0-relative) of the YYYYMMDD string to "01",
26 | * giving the first day of the current month
27 |   LAST_EOM+6(2) = '01'.
28 | * Subtract one day
29 |   LAST_EOM = LAST_EOM - 1.
30 |  
31 |   WRITE: 'Last day of previous month was', LAST_EOM.
32 |   
33 | DATA : BEGIN OF I_VBRK OCCURS 0,
34 |          VBELN LIKE VBRK-VBELN,
35 |          ZUONR LIKE VBRK-ZUONR,
36 |        END OF I_VBRK.


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/actionscript.as:
--------------------------------------------------------------------------------
 1 | package code
 2 | {
 3 |     /*****************************************
 4 | 	 * based on textmate actionscript bundle
 5 | 	 ****************************************/
 6 | 	 
 7 | 	import fl.events.SliderEvent;
 8 | 	
 9 | 	public class Foo extends MovieClip
10 | 	{
11 | 		//*************************
12 | 		// Properties:
13 | 		
14 | 		public var activeSwatch:MovieClip;
15 | 		
16 | 		// Color offsets
17 | 		public var c1:Number = 0;	// R
18 | 		
19 | 		//*************************
20 | 		// Constructor:
21 | 		
22 | 		public function Foo()
23 | 		{
24 | 			// Respond to mouse events
25 | 			swatch1_btn.addEventListener(MouseEvent.CLICK,swatchHandler,false,0,false);
26 | 			previewBox_btn.addEventListener(MouseEvent.MOUSE_DOWN,dragPressHandler);
27 | 			
28 | 			// Respond to drag events
29 | 			red_slider.addEventListener(SliderEvent.THUMB_DRAG,sliderHandler);
30 | 			
31 | 			// Draw a frame later
32 | 			addEventListener(Event.ENTER_FRAME,draw);
33 | 		}
34 |         
35 | 		protected function clickHandler(event:MouseEvent):void
36 | 		{
37 | 			car.transform.colorTransform = new ColorTransform(0,0,0,1,c1,c2,c3);
38 | 		}
39 | 		
40 | 		protected function changeRGBHandler(event:Event):void
41 | 		{
42 | 			c1 = Number(c1_txt.text);
43 |             
44 | 			if(!(c1>=0)){
45 | 				c1 = 0;
46 | 			}			
47 | 			
48 | 			updateSliders();
49 | 		}
50 | 	}
51 | }


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/ada.ada:
--------------------------------------------------------------------------------
1 | with Ada.Text_IO; use Ada.Text_IO;
2 | procedure Hello is
3 | begin
4 |   Put_Line("Hello, world!");
5 | end Hello;


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/assembly_x86.asm:
--------------------------------------------------------------------------------
 1 | section	.text
 2 |     global main         ;must be declared for using gcc
 3 | 
 4 | main:	                ;tell linker entry point
 5 | 
 6 | 	mov	edx, len	    ;message length
 7 | 	mov	ecx, msg	    ;message to write
 8 | 	mov	ebx, 1	        ;file descriptor (stdout)
 9 | 	mov	eax, 4	        ;system call number (sys_write)
10 | 	int	0x80	        ;call kernel
11 | 
12 | 	mov	eax, 1	        ;system call number (sys_exit)
13 | 	int	0x80	        ;call kernel
14 | 
15 | section	.data
16 | 
17 | msg	db	'Hello, world!',0xa	;our dear string
18 | len	equ	$ - msg			;length of our dear string
19 | 


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/autohotkey.ahk:
--------------------------------------------------------------------------------
 1 | #NoEnv
 2 | SetBatchLines -1
 3 | 
 4 | CoordMode Mouse, Screen
 5 | OnExit GuiClose
 6 | 
 7 | zoom := 9
 8 | 
 9 | computeSize(){
10 | 	global as_x
11 | 	as_x := Round(ws_x/zoom/2 - 0.5)
12 | 	if (zoom>1) {
13 | 		pix := Round(zoom)
14 | 	} ele {
15 | 		pix := 1
16 | 	}
17 |     ToolTip Message %as_x% %zoom% %ws_x% %hws_x% 
18 | }
19 | 
20 | hdc_frame := DllCall("GetDC", UInt, MagnifierID)
21 | 
22 | ; comment
23 | DrawCross(byRef x="", rX,rY,z, dc){
24 |         ;specify the style, thickness and color of the cross lines
25 |     h_pen := DllCall( "gdi32.dll\CreatePen", Int, 0, Int, 1, UInt, 0x0000FF)
26 | }
27 | 
28 | ;Ctrl ^; Shift +; Win #; Alt !
29 | ^NumPadAdd::
30 | ^WheelUp::   
31 | ^;::   ;comment
32 |     If(zoom < ws_x and ( A_ThisHotKey = "^WheelUp" or A_ThisHotKey ="^NumPadAdd") )
33 | 		zoom *= 1.189207115         ; sqrt(sqrt(2))
34 | 	Gosub,setZoom
35 | return
36 | 


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/batchfile.bat:
--------------------------------------------------------------------------------
 1 | :: batch file highlighting in Ace!
 2 | @echo off
 3 | 
 4 | CALL set var1=%cd%
 5 | echo unhide everything in %var1%!
 6 | 
 7 | :: FOR loop in bat is super strange!
 8 | FOR /f "tokens=*" %%G IN ('dir /A:D /b') DO (
 9 | echo %var1%%%G
10 | attrib -r -a -h -s "%var1%%%G" /D /S
11 | )
12 | 
13 | pause
14 | 
15 | REM that's all
16 | 


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/c9search.c9search_results:
--------------------------------------------------------------------------------
 1 | Searching for var in/.c9/metadata/workspace/pluginsregexp, case sensitive, whole word
 2 | 
 3 | configs/default.js:
 4 |     1: var fs = require("fs");
 5 | 	2: var argv = require('optimist').argv;
 6 | 	3: var path = require("path");
 7 | 	5: var clientExtensions = {};
 8 | 	6: var clientDirs = fs.readdirSync(__dirname + "/../plugins-client");
 9 | 	7: for (var i = 0; i < clientDirs.length; i++) {
10 | 	8:     var dir = clientDirs[i];
11 | 	12:     var name = dir.split(".")[1];
12 | 	16: var projectDir = (argv.w && path.resolve(process.cwd(), argv.w)) || process.cwd();
13 | 	17: var fsUrl = "/workspace";
14 | 	19: var port = argv.p || process.env.PORT || 3131;
15 | 	20: var host = argv.l || "localhost";
16 | 	22: var config = {
17 | 
18 | configs/local.js:
19 | 	2: var config = require("./default");
20 | 
21 | configs/packed.js:
22 | 	1: var config = require("./default");
23 | 
24 | 
25 | Found 15 matches in 3 files


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/c_cpp.cpp:
--------------------------------------------------------------------------------
 1 | // compound assignment operators
 2 | 
 3 | #include 
 4 | 
 5 | #include \
 6 |    
 7 | 
 8 | #include \
 9 |    \
10 |    
11 | 
12 | #include \
13 |    \
14 |    "iostream"
15 | 
16 | #include 
17 | #include "boost/asio/io_service.hpp"
18 | 
19 | #include \
20 |    \
21 |    "iostream" \
22 |    "string" \
23 |    
24 |    
25 | using namespace std;
26 | 
27 | int main ()
28 | {
29 |     int a, b=3; /* foobar */
30 |     a = b;
31 |     a+=2; // equivalent to a=a+2
32 |     cout << a;
33 |     #if VERBOSE >= 2
34 |         prints("trace message");
35 |     #endif
36 |     return 0;
37 | }
38 | 
39 | /* Print an error message and get out */
40 | #define ABORT                             \
41 |     do {                                  \
42 |         print( "Abort\n" );                \
43 |         exit(8);                          \
44 | } while (0)                      /* Note: No semicolon */


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/cirru.cirru:
--------------------------------------------------------------------------------
 1 | -- https://github.com/Cirru/cirru-gopher/blob/master/code/scope.cr,
 2 | 
 3 | set a (int 2)
 4 | 
 5 | print (self)
 6 | 
 7 | set c (child)
 8 | 
 9 | under c
10 |   under parent
11 |     print a
12 | 
13 | print $ get c a
14 | 
15 | set c x (int 3)
16 | print $ get c x
17 | 
18 | set just-print $ code
19 |   print a
20 | 
21 | print just-print
22 | 
23 | eval (self) just-print
24 | eval just-print
25 | 
26 | print (string "string with space")
27 | print (string "escapes \n \"\\")
28 | 
29 | brackets ((((()))))
30 | 
31 | "eval" $ string "eval"
32 | 
33 | print (add $ (int 1) (int 2))
34 | 
35 | print $ unwrap $
36 |   map (a $ int 1) (b $ int 2)


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/clojure.clj:
--------------------------------------------------------------------------------
 1 | (defn parting
 2 |   "returns a String parting in a given language"
 3 |   ([] (parting "World"))
 4 |   ([name] (parting name "en"))
 5 |   ([name language]
 6 |     ; condp is similar to a case statement in other languages.
 7 |     ; It is described in more detail later.
 8 |     ; It is used here to take different actions based on whether the
 9 |     ; parameter "language" is set to "en", "es" or something else.
10 |     (condp = language
11 |       "en" (str "Goodbye, " name)
12 |       "es" (str "Adios, " name)
13 |       (throw (IllegalArgumentException.
14 |         (str "unsupported language " language))))))
15 | 
16 | (println (parting)) ; -> Goodbye, World
17 | (println (parting "Mark")) ; -> Goodbye, Mark
18 | (println (parting "Mark" "es")) ; -> Adios, Mark
19 | (println (parting "Mark", "xy")) ; -> java.lang.IllegalArgumentException: unsupported language xy


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/coffee.coffee:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env coffee
 2 | 
 3 | try
 4 |     throw URIError decodeURI(0xC0ffee * 123456.7e-8 / .9)
 5 | catch e
 6 |     console.log 'qstring' + "qqstring" + '''
 7 |         qdoc
 8 |     ''' + """
 9 |         qqdoc
10 |     """
11 | 
12 | do ->
13 |     ###
14 |     herecomment
15 |     ###
16 |     re = /regex/imgy.test ///
17 |         heregex  # comment
18 |     ///imgy
19 |     this isnt: `just JavaScript`
20 |     undefined
21 |     
22 | sentence = "#{ 22 / 7 } is a decent approximation of π"


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/coldfusion.cfm:
--------------------------------------------------------------------------------
1 | 
2 | 
3 | 
4 | 
5 | #welcome#


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/csharp.cs:
--------------------------------------------------------------------------------
1 | public void HelloWorld() {
2 |     //Say Hello!
3 |     Console.WriteLine("Hello World");
4 | }


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/css.css:
--------------------------------------------------------------------------------
 1 | .text-layer {
 2 |     font-family: Monaco, "Courier New", monospace;
 3 |     font-size: 12pX;
 4 |     cursor: text;
 5 | }
 6 | 
 7 | .blinker {
 8 |     animation-duration: 1s;
 9 |     animation-name: blink;
10 |     animation-iteration-count: infinite;
11 |     animation-direction: alternate;
12 |     animation-timing-function: linear;
13 | }
14 | 
15 | @keyframes blink {
16 |     0% {
17 |         opacity: 0;
18 |     }
19 |     40% {
20 |         opacity: 0;
21 |     }
22 |     40.5% {
23 |         opacity: 1
24 |     }
25 |     100% {
26 |         opacity: 1
27 |     }
28 | }


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/curly.curly:
--------------------------------------------------------------------------------
 1 | 
 2 |     
 3 | 
 4 |     
11 | 
12 |     
13 |     
14 |         

{{author_name}}

15 | 16 | 17 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/d.d: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env rdmd 2 | // Computes average line length for standard input. 3 | import std.stdio; 4 | 5 | void main() { 6 | ulong lines = 0; 7 | double sumLength = 0; 8 | foreach (line; stdin.byLine()) { 9 | ++lines; 10 | sumLength += line.length; 11 | } 12 | writeln("Average line length: ", 13 | lines ? sumLength / lines : 0); 14 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/dart.dart: -------------------------------------------------------------------------------- 1 | // Go ahead and modify this example. 2 | 3 | import "dart:html"; 4 | 5 | // Computes the nth Fibonacci number. 6 | int fibonacci(int n) { 7 | if (n < 2) return n; 8 | return fibonacci(n - 1) + fibonacci(n - 2); 9 | } 10 | 11 | // Displays a Fibonacci number. 12 | void main() { 13 | int i = 20; 14 | String message = "fibonacci($i) = ${fibonacci(i)}"; 15 | 16 | // This example uses HTML to display the result and it will appear 17 | // in a nested HTML frame (an iframe). 18 | document.body.append(new HeadingElement.h1()..appendText(message)); 19 | } 20 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ejs.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Cloud9 Rocks! 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | <% if (!isRoot) { %> 14 | 15 | 16 | 17 | 18 | <% } %> 19 | <% entries.forEach(function(entry) { %> 20 | 21 | 25 | 26 | 27 | <% }) %> 28 |
NameSize
..
22 | 23 | <%= entry.name %> 24 | <%= entry.size %>
29 | 30 | 31 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/erlang.erl: -------------------------------------------------------------------------------- 1 | %% A process whose only job is to keep a counter. 2 | %% First version 3 | -module(counter). 4 | -export([start/0, codeswitch/1]). 5 | 6 | start() -> loop(0). 7 | 8 | loop(Sum) -> 9 | receive 10 | {increment, Count} -> 11 | loop(Sum+Count); 12 | {counter, Pid} -> 13 | Pid ! {counter, Sum}, 14 | loop(Sum); 15 | code_switch -> 16 | ?MODULE:codeswitch(Sum) 17 | % Force the use of 'codeswitch/1' from the latest MODULE version 18 | end. 19 | 20 | codeswitch(Sum) -> loop(Sum). -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/forth.frt: -------------------------------------------------------------------------------- 1 | : HELLO ( -- ) CR ." Hello, world!" ; 2 | 3 | HELLO 4 | Hello, world! 5 | 6 | : [CHAR] CHAR POSTPONE LITERAL ; IMMEDIATE 7 | 8 | 0 value ii 0 value jj 9 | 0 value KeyAddr 0 value KeyLen 10 | create SArray 256 allot \ state array of 256 bytes 11 | : KeyArray KeyLen mod KeyAddr ; 12 | 13 | : get_byte + c@ ; 14 | : set_byte + c! ; 15 | : as_byte 255 and ; 16 | : reset_ij 0 TO ii 0 TO jj ; 17 | : i_update 1 + as_byte TO ii ; 18 | : j_update ii SArray get_byte + as_byte TO jj ; 19 | : swap_s_ij 20 | jj SArray get_byte 21 | ii SArray get_byte jj SArray set_byte 22 | ii SArray set_byte 23 | ; 24 | 25 | : rc4_init ( KeyAddr KeyLen -- ) 26 | 256 min TO KeyLen TO KeyAddr 27 | 256 0 DO i i SArray set_byte LOOP 28 | reset_ij 29 | BEGIN 30 | ii KeyArray get_byte jj + j_update 31 | swap_s_ij 32 | ii 255 < WHILE 33 | ii i_update 34 | REPEAT 35 | reset_ij 36 | ; 37 | : rc4_byte 38 | ii i_update jj j_update 39 | swap_s_ij 40 | ii SArray get_byte jj SArray get_byte + as_byte SArray get_byte xor 41 | ; -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ftl.ftl: -------------------------------------------------------------------------------- 1 | <#ftl encoding="utf-8" /> 2 | <#setting locale="en_US" /> 3 | <#import "library" as lib /> 4 | <#-- 5 | FreeMarker comment 6 | ${abc} <#assign a=12 /> 7 | --> 8 | 9 | 10 | 11 | 12 | 13 | 14 | ${title!"FreeMarker"}<title> 15 | </head> 16 | 17 | <body> 18 | 19 | <h1>Hello ${name!""}</h1> 20 | 21 | <p>Today is: ${.now?date}</p> 22 | 23 | <#assign x = 13> 24 | <#if x > 12 && x lt 14>x equals 13: ${x}</#if> 25 | 26 | <ul> 27 | <#list items as item> 28 | <li>${item_index}: ${item.name!?split("\n")[0]}</li> 29 | </#list> 30 | </ul> 31 | 32 | User directive: <@lib.function attr1=true attr2='value' attr3=-42.12>Test</@lib.function> 33 | <@anotherOne /> 34 | 35 | <#if variable?exists> 36 | Deprecated 37 | <#elseif variable??> 38 | Better 39 | <#else> 40 | Default 41 | </#if> 42 | 43 | <img src="images/${user.id}.png" /> 44 | 45 | </body> 46 | </html> 47 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/glsl.glsl: -------------------------------------------------------------------------------- 1 | uniform float amplitude; 2 | attribute float displacement; 3 | varying vec3 vNormal; 4 | 5 | void main() { 6 | 7 | vNormal = normal; 8 | 9 | // multiply our displacement by the 10 | // amplitude. The amp will get animated 11 | // so we'll have animated displacement 12 | vec3 newPosition = position + 13 | normal * 14 | vec3(displacement * 15 | amplitude); 16 | 17 | gl_Position = projectionMatrix * 18 | modelViewMatrix * 19 | vec4(newPosition,1.0); 20 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/golang.go: -------------------------------------------------------------------------------- 1 | // Concurrent computation of pi. 2 | // See http://goo.gl/ZuTZM. 3 | // 4 | // This demonstrates Go's ability to handle 5 | // large numbers of concurrent processes. 6 | // It is an unreasonable way to calculate pi. 7 | package main 8 | 9 | import ( 10 | "fmt" 11 | "math" 12 | ) 13 | 14 | func main() { 15 | fmt.Println(pi(5000)) 16 | } 17 | 18 | // pi launches n goroutines to compute an 19 | // approximation of pi. 20 | func pi(n int) float64 { 21 | ch := make(chan float64) 22 | for k := 0; k <= n; k++ { 23 | go term(ch, float64(k)) 24 | } 25 | f := 0.0 26 | for k := 0; k <= n; k++ { 27 | f += <-ch 28 | } 29 | return f 30 | } 31 | 32 | func term(ch chan float64, k float64) { 33 | ch <- 4 * math.Pow(-1, k) / (2*k + 1) 34 | } 35 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/groovy.groovy: -------------------------------------------------------------------------------- 1 | //http://groovy.codehaus.org/Martin+Fowler%27s+closure+examples+in+Groovy 2 | 3 | class Employee { 4 | def name, salary 5 | boolean manager 6 | String toString() { return name } 7 | } 8 | 9 | def emps = [new Employee(name:'Guillaume', manager:true, salary:200), 10 | new Employee(name:'Graeme', manager:true, salary:200), 11 | new Employee(name:'Dierk', manager:false, salary:151), 12 | new Employee(name:'Bernd', manager:false, salary:50)] 13 | 14 | def managers(emps) { 15 | emps.findAll { e -> e.isManager() } 16 | } 17 | 18 | assert emps[0..1] == managers(emps) // [Guillaume, Graeme] 19 | 20 | def highPaid(emps) { 21 | threshold = 150 22 | emps.findAll { e -> e.salary > threshold } 23 | } 24 | 25 | assert emps[0..2] == highPaid(emps) // [Guillaume, Graeme, Dierk] 26 | 27 | def paidMore(amount) { 28 | { e -> e.salary > amount} 29 | } 30 | def highPaid = paidMore(150) 31 | 32 | assert highPaid(emps[0]) // true 33 | assert emps[0..2] == emps.findAll(highPaid) 34 | 35 | def filename = 'test.txt' 36 | new File(filename).withReader{ reader -> doSomethingWith(reader) } 37 | 38 | def readersText 39 | def doSomethingWith(reader) { readersText = reader.text } 40 | 41 | assert new File(filename).text == readersText -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/haml.haml: -------------------------------------------------------------------------------- 1 | !!!5 2 | 3 | # <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> 4 | # <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> 5 | # <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> 6 | # <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> 7 | 8 | 9 | /adasdasdad 10 | %div{:id => "#{@item.type}_#{@item.number}", :class => '#{@item.type} #{@item.urgency}', :phoney => `asdasdasd`} 11 | / file: app/views/movies/index.html.haml 12 | \d 13 | %ads:{:bleh => 33} 14 | %p==ddd== 15 | Date/Time: 16 | - now = DateTime.now 17 | %strong= now 18 | = if now DateTime.parse("December 31, 2006") 19 | = "Happy new " + "year!" 20 | %sfd.dfdfg 21 | #content 22 | .title 23 | %h1= @title 24 | = link_to 'Home', home_url 25 | 26 | #contents 27 | %div#content 28 | %div.articles 29 | %div.article.title Blah 30 | %div.article.date 2006-11-05 31 | %div.article.entry 32 | Neil Patrick Harris 33 | 34 | %div[@user, :greeting] 35 | %bar[290]/ 36 | ==Hello!== 37 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/handlebars.hbs: -------------------------------------------------------------------------------- 1 | {{!-- Ace + :-}} --}} 2 | 3 | <div id="comments"> 4 | {{#each comments}} 5 | <h2><a href="/posts/{{../permalink}}#{{id}}">{{title}}</a></h2> 6 | <div>{{body}}</div> 7 | {{/each}} 8 | </div> 9 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/haskell.hs: -------------------------------------------------------------------------------- 1 | -- Type annotation (optional) 2 | fib :: Int -> Integer 3 | 4 | -- With self-referencing data 5 | fib n = fibs !! n 6 | where fibs = 0 : scanl (+) 1 fibs 7 | -- 0,1,1,2,3,5,... 8 | 9 | -- Same, coded directly 10 | fib n = fibs !! n 11 | where fibs = 0 : 1 : next fibs 12 | next (a : t@(b:_)) = (a+b) : next t 13 | 14 | -- Similar idea, using zipWith 15 | fib n = fibs !! n 16 | where fibs = 0 : 1 : zipWith (+) fibs (tail fibs) 17 | 18 | -- Using a generator function 19 | fib n = fibs (0,1) !! n 20 | where fibs (a,b) = a : fibs (b,a+b) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/htaccess: -------------------------------------------------------------------------------- 1 | Redirect /linux http://www.linux.org 2 | Redirect 301 /kernel http://www.linux.org 3 | 4 | # comment 5 | RewriteEngine on 6 | 7 | RewriteCond %{HTTP_USER_AGENT} ^Mozilla.* 8 | RewriteRule ^/$ /homepage.max.html [L] 9 | 10 | RewriteRule ^/$ /homepage.std.html [L] 11 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/html.html: -------------------------------------------------------------------------------- 1 | <!DOCTYPE html> 2 | <html> 3 | <head> 4 | 5 | <style type="text/css"> 6 | .text-layer { 7 | font-family: Monaco, "Courier New", monospace; 8 | font-size: 12px; 9 | cursor: text; 10 | } 11 | </style> 12 | 13 | </head> 14 | <body> 15 | <h1 style="color:red">Juhu Kinners</h1> 16 | </body> 17 | </html> -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/html_ruby.erb: -------------------------------------------------------------------------------- 1 | <h1>Listing Books</h1> 2 | 3 | <table> 4 | <tr> 5 | <th>Title</th> 6 | <th>Summary</th> 7 | <th></th> 8 | <th></th> 9 | <th></th> 10 | </tr> 11 | 12 | <% @books.each do |book| %> 13 | <tr> 14 | <%# comment %> 15 | <td><%= book.title %></td> 16 | <td><%= book.content %></td> 17 | <td><%= link_to 'Show', book %></td> 18 | <td><%= link_to 'Edit', edit_book_path(book) %></td> 19 | <td><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %></td> 20 | </tr> 21 | <% end %> 22 | </table> 23 | 24 | <br /> 25 | 26 | <%= link_to 'New book', new_book_path %> -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ini.ini: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/jade.jade: -------------------------------------------------------------------------------- 1 | !!!doctype 2 | !!!5 3 | !!! 4 | 5 | include something 6 | 7 | include another_thing 8 | 9 | // let's talk about it 10 | 11 | // 12 | here it is. a block comment! 13 | and another row! 14 | but not here. 15 | 16 | // 17 | a far spaced 18 | should be lack of block 19 | 20 | // also not a comment 21 | div.attemptAtBlock 22 | 23 | span#myName 24 | 25 | #{implicit} 26 | !{more_explicit} 27 | 28 | #idDiv 29 | 30 | .idDiv 31 | 32 | test(id="tag") 33 | header(id="tag", blah="foo", meh="aads") 34 | mixin article(obj, parents) 35 | 36 | mixin bleh() 37 | 38 | mixin clever-name 39 | 40 | -var x = "0"; 41 | - y each z 42 | 43 | - var items = ["one", "two", "three"] 44 | each item in items 45 | li= item -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/java.java: -------------------------------------------------------------------------------- 1 | public class InfiniteLoop { 2 | 3 | /* 4 | * This will cause the program to hang... 5 | * 6 | * Taken from: 7 | * http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/ 8 | */ 9 | public static void main(String[] args) { 10 | double d = Double.parseDouble("2.2250738585072012e-308"); 11 | 12 | // unreachable code 13 | System.out.println("Value: " + d); 14 | } 15 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/javascript.js: -------------------------------------------------------------------------------- 1 | function foo(items, nada) { 2 | for (var i=0; i<items.length; i++) { 3 | alert(items[i] + "juhu\n"); 4 | } // Real Tab. 5 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/jsoniq.jq: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/jsp.jsp: -------------------------------------------------------------------------------- 1 | <html> 2 | <body> 3 | <script> 4 | var x = "abc"; 5 | function y { 6 | } 7 | </script> 8 | <style> 9 | .class { 10 | background: #124356; 11 | } 12 | </style> 13 | 14 | <p> 15 | Today's date: <%= (new java.util.Date()).toLocaleString()%> 16 | </p> 17 | <%! int i = 0; %> 18 | <jsp:declaration> 19 | int j = 10; 20 | </jsp:declaration> 21 | 22 | <%-- This is JSP comment --%> 23 | <%@ directive attribute="value" %> 24 | 25 | <h2>Select Languages:</h2> 26 | 27 | <form ACTION="jspCheckBox.jsp"> 28 | <input type="checkbox" name="id" value="Java"> Java<BR> 29 | <input type="checkbox" name="id" value=".NET"> .NET<BR> 30 | <input type="checkbox" name="id" value="PHP"> PHP<BR> 31 | <input type="checkbox" name="id" value="C/C++"> C/C++<BR> 32 | <input type="checkbox" name="id" value="PERL"> PERL <BR> 33 | <input type="submit" value="Submit"> 34 | </form> 35 | 36 | <% 37 | String select[] = request.getParameterValues("id"); 38 | if (select != null && select.length != 0) { 39 | out.println("You have selected: "); 40 | for (int i = 0; i < select.length; i++) { 41 | out.println(select[i]); 42 | } 43 | } 44 | %> 45 | </body> 46 | </html> -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/jsx.jsx: -------------------------------------------------------------------------------- 1 | /*EXPECTED 2 | hello world! 3 | */ 4 | class Test { 5 | static function run() : void { 6 | // console.log("hello world!"); 7 | log "hello world!"; 8 | } 9 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/julia.jl: -------------------------------------------------------------------------------- 1 | for op = (:+, :*, :&, :|, :$) 2 | @eval ($op)(a,b,c) = ($op)(($op)(a,b),c) 3 | end 4 | 5 | 6 | function g(x,y) 7 | return x * y 8 | x + y 9 | end 10 | 11 | cd("data") do 12 | open("outfile", "w") do f 13 | write(f, data) 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/latex.tex: -------------------------------------------------------------------------------- 1 | \usepackage{amsmath} 2 | \title{\LaTeX} 3 | \date{} 4 | \begin{document} 5 | \maketitle 6 | \LaTeX{} is a document preparation system for the \TeX{} 7 | typesetting program. It offers programmable desktop publishing 8 | features and extensive facilities for automating most aspects of 9 | typesetting and desktop publishing, including numbering and 10 | cross-referencing, tables and figures, page layout, bibliographies, 11 | and much more. \LaTeX{} was originally written in 1984 by Leslie 12 | Lamport and has become the dominant method for using \TeX; few 13 | people write in plain \TeX{} anymore. The current version is 14 | \LaTeXe. 15 | 16 | % This is a comment; it will not be shown in the final output. 17 | % The following shows a little of the typesetting power of LaTeX: 18 | \begin{align} 19 | E &= mc^2 \\ 20 | m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} 21 | \end{align} 22 | \end{document} -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/less.less: -------------------------------------------------------------------------------- 1 | /* styles.less */ 2 | 3 | @base: #f938ab; 4 | 5 | .box-shadow(@style, @c) when (iscolor(@c)) { 6 | box-shadow: @style @c; 7 | -webkit-box-shadow: @style @c; 8 | -moz-box-shadow: @style @c; 9 | } 10 | .box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) { 11 | .box-shadow(@style, rgba(0, 0, 0, @alpha)); 12 | } 13 | 14 | // Box styles 15 | .box { 16 | color: saturate(@base, 5%); 17 | border-color: lighten(@base, 30%); 18 | 19 | div { .box-shadow(0 0 5px, 30%) } 20 | 21 | a { 22 | color: @base; 23 | 24 | &:hover { 25 | color: lighten(@base, 50%); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/lisp.lisp: -------------------------------------------------------------------------------- 1 | (defun prompt-for-cd () 2 | "Prompts 3 | for CD" 4 | (prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6)) 5 | (prompt-read "Artist" &rest) 6 | (or (parse-integer (prompt-read "Rating") :junk-allowed t) 0) 7 | (if x (format t "yes") (format t "no" nil) ;and here comment 8 | ) 0xFFLL -23ull 9 | ;; second line comment 10 | '(+ 1 2) 11 | (defvar *lines*) ; list of all lines 12 | (position-if-not #'sys::whitespacep line :start beg)) 13 | (quote (privet 1 2 3)) 14 | '(hello world) 15 | (* 5 7) 16 | (1 2 34 5) 17 | (:use "aaaa") 18 | (let ((x 10) (y 20)) 19 | (print (+ x y)) 20 | ) LAmbDa 21 | 22 | "asdad\0eqweqe" -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/logiql.logic: -------------------------------------------------------------------------------- 1 | // ancestors 2 | parentof("douglas", "john"). 3 | parentof("john", "bob"). 4 | parentof("bob", "ebbon"). 5 | 6 | parentof("douglas", "jane"). 7 | parentof("jane", "jan"). 8 | 9 | ancestorof(A, B) <- parentof(A, B). 10 | ancestorof(A, C) <- ancestorof(A, B), parentof(B,C). 11 | 12 | grandparentof(A, B) <- parentof(A, C), parentof(C, B). 13 | 14 | cousins(A,B) <- grandparentof(C,A), grandparentof(C,B). 15 | 16 | parentof[`arg](A, B) -> int[32](A), !string(B). -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/lua.lua: -------------------------------------------------------------------------------- 1 | --[[-- 2 | num_args takes in 5.1 byte code and extracts the number of arguments 3 | from its function header. 4 | --]]-- 5 | 6 | function int(t) 7 | return t:byte(1)+t:byte(2)*0x100+t:byte(3)*0x10000+t:byte(4)*0x1000000 8 | end 9 | 10 | function num_args(func) 11 | local dump = string.dump(func) 12 | local offset, cursor = int(dump:sub(13)), offset + 26 13 | --Get the params and var flag (whether there's a ... in the param) 14 | return dump:sub(cursor):byte(), dump:sub(cursor+1):byte() 15 | end 16 | 17 | -- Usage: 18 | num_args(function(a,b,c,d, ...) end) -- return 4, 7 19 | 20 | -- Python styled string format operator 21 | local gm = debug.getmetatable("") 22 | 23 | gm.__mod=function(self, other) 24 | if type(other) ~= "table" then other = {other} end 25 | for i,v in ipairs(other) do other[i] = tostring(v) end 26 | return self:format(unpack(other)) 27 | end 28 | 29 | print([===[ 30 | blah blah %s, (%d %d) 31 | ]===]%{"blah", num_args(int)}) 32 | 33 | --[=[-- 34 | table.maxn is deprecated, use # instead. 35 | --]=]-- 36 | print(table.maxn{1,2,[4]=4,[8]=8) -- outputs 8 instead of 2 37 | 38 | print(5 --[[ blah ]]) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/lucene.lucene: -------------------------------------------------------------------------------- 1 | (title:"foo bar" AND body:"quick fox") OR title:fox -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/matlab.matlab: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/mel.mel: -------------------------------------------------------------------------------- 1 | // animated duplicates, instances script 2 | proc animatedDuplication (int $rangeStart, int $rangeEnd, int $numOfDuplicates, int $duplicateOrInstance) 3 | { 4 | int $range_start = $rangeStart; 5 | int $range_end = $rangeEnd; 6 | int $num_of_duplicates = $numOfDuplicates; 7 | int $step_size = ($range_end - $range_start) / $num_of_duplicates; 8 | int $i = 0; 9 | int $temp; 10 | 11 | currentTime $range_start; // set to range start 12 | 13 | string $selectedObjects[]; // to store selected objects 14 | $selectedObjects = `ls -sl`; // store selected objects 15 | select $selectedObjects; 16 | 17 | while ($i <= $num_of_duplicates) 18 | { 19 | $temp = $range_start + ($step_size * $i); 20 | currentTime ($temp); 21 | // seleced the objects to duplicate or instance 22 | select $selectedObjects; 23 | if($duplicateOrInstance == 0) 24 | { 25 | duplicate; 26 | } 27 | else 28 | { 29 | instance; 30 | } 31 | $i++; 32 | } 33 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/mysql.mysql: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ocaml.ml: -------------------------------------------------------------------------------- 1 | (* 2 | * Example of early return implementation taken from 3 | * http://ocaml.janestreet.com/?q=node/91 4 | *) 5 | 6 | let with_return (type t) (f : _ -> t) = 7 | let module M = 8 | struct exception Return of t end 9 | in 10 | let return = { return = (fun x -> raise (M.Return x)); } in 11 | try f return with M.Return x -> x 12 | 13 | 14 | (* Function that uses the 'early return' functionality provided by `with_return` *) 15 | let sum_until_first_negative list = 16 | with_return (fun r -> 17 | List.fold list ~init:0 ~f:(fun acc x -> 18 | if x >= 0 then acc + x else r.return acc)) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/perl.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | =begin 3 | perl example code for Ace 4 | =cut 5 | 6 | use strict; 7 | use warnings; 8 | my $num_primes = 0; 9 | my @primes; 10 | 11 | # Put 2 as the first prime so we won't have an empty array 12 | $primes[$num_primes] = 2; 13 | $num_primes++; 14 | 15 | MAIN_LOOP: 16 | for my $number_to_check (3 .. 200) 17 | { 18 | for my $p (0 .. ($num_primes-1)) 19 | { 20 | if ($number_to_check % $primes[$p] == 0) 21 | { 22 | next MAIN_LOOP; 23 | } 24 | } 25 | 26 | # If we reached this point it means $number_to_check is not 27 | # divisable by any prime number that came before it. 28 | $primes[$num_primes] = $number_to_check; 29 | $num_primes++; 30 | } 31 | 32 | for my $p (0 .. ($num_primes-1)) 33 | { 34 | print $primes[$p], ", "; 35 | } 36 | print "\n"; 37 | 38 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/php.php: -------------------------------------------------------------------------------- 1 | <?php 2 | 3 | function nfact($n) { 4 | if ($n == 0) { 5 | return 1; 6 | } 7 | else { 8 | return $n * nfact($n - 1); 9 | } 10 | } 11 | 12 | echo "\n\nPlease enter a whole number ... "; 13 | $num = trim(fgets(STDIN)); 14 | 15 | // ===== PROCESS - Determing the factorial of the input number ===== 16 | $output = "\n\nFactorial " . $num . " = " . nfact($num) . "\n\n"; 17 | echo $output; 18 | 19 | ?> -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/powershell.ps1: -------------------------------------------------------------------------------- 1 | # This is a simple comment 2 | function Hello($name) { 3 | Write-host "Hello $name" 4 | } 5 | 6 | function add($left, $right=4) { 7 | if ($right -ne 4) { 8 | return $left 9 | } elseif ($left -eq $null -and $right -eq 2) { 10 | return 3 11 | } else { 12 | return 2 13 | } 14 | } 15 | 16 | $number = 1 + 2; 17 | $number += 3 18 | 19 | Write-Host Hello -name "World" 20 | 21 | $an_array = @(1, 2, 3) 22 | $a_hash = @{"something" = "something else"} 23 | 24 | & notepad .\readme.md 25 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/prolog.plg: -------------------------------------------------------------------------------- 1 | partition([], _, [], []). 2 | partition([X|Xs], Pivot, Smalls, Bigs) :- 3 | ( X @< Pivot -> 4 | Smalls = [X|Rest], 5 | partition(Xs, Pivot, Rest, Bigs) 6 | ; Bigs = [X|Rest], 7 | partition(Xs, Pivot, Smalls, Rest) 8 | ). 9 | 10 | quicksort([]) --> []. 11 | quicksort([X|Xs]) --> 12 | { partition(Xs, X, Smaller, Bigger) }, 13 | quicksort(Smaller), [X], quicksort(Bigger). 14 | 15 | perfect(N) :- 16 | between(1, inf, N), U is N // 2, 17 | findall(D, (between(1,U,D), N mod D =:= 0), Ds), 18 | sumlist(Ds, N). -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/properties.properties: -------------------------------------------------------------------------------- 1 | # You are reading the ".properties" entry. 2 | ! The exclamation mark can also mark text as comments. 3 | # The key and element characters #, !, =, and : are written with a preceding backslash to ensure that they are properly loaded. 4 | website = http\://en.wikipedia.org/ 5 | language = English 6 | # The backslash below tells the application to continue reading 7 | # the value onto the next line. 8 | message = Welcome to \ 9 | Wikipedia! 10 | # Add spaces to the key 11 | key\ with\ spaces = This is the value that could be looked up with the key "key with spaces". 12 | # Unicode 13 | tab : \u0009 14 | empty-key= 15 | last.line=value 16 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/protobuf.proto: -------------------------------------------------------------------------------- 1 | message Point { 2 | required int32 x = 1; 3 | required int32 y = 2; 4 | optional string label = 3; 5 | } 6 | 7 | message Line { 8 | required Point start = 1; 9 | required Point end = 2; 10 | optional string label = 3; 11 | } 12 | 13 | message Polyline { 14 | repeated Point point = 1; 15 | optional string label = 2; 16 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/python.py: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/python 2 | 3 | import string, sys 4 | 5 | # If no arguments were given, print a helpful message 6 | if len(sys.argv)==1: 7 | print '''Usage: 8 | celsius temp1 temp2 ...''' 9 | sys.exit(0) 10 | 11 | # Loop over the arguments 12 | for i in sys.argv[1:]: 13 | try: 14 | fahrenheit=float(string.atoi(i)) 15 | except string.atoi_error: 16 | print repr(i), "not a numeric value" 17 | else: 18 | celsius=(fahrenheit-32)*5.0/9.0 19 | print '%i\260F = %i\260C' % (int(fahrenheit), int(celsius+.5)) -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/r.r: -------------------------------------------------------------------------------- 1 | Call: 2 | lm(formula = y ~ x) 3 | 4 | Residuals: 5 | 1 2 3 4 5 6 6 | 3.3333 -0.6667 -2.6667 -2.6667 -0.6667 3.3333 7 | 8 | Coefficients: 9 | Estimate Std. Error t value Pr(>|t|) 10 | (Intercept) -9.3333 2.8441 -3.282 0.030453 * 11 | x 7.0000 0.7303 9.585 0.000662 *** 12 | --- 13 | Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 14 | 15 | Residual standard error: 3.055 on 4 degrees of freedom 16 | Multiple R-squared: 0.9583, Adjusted R-squared: 0.9478 17 | F-statistic: 91.88 on 1 and 4 DF, p-value: 0.000662 18 | 19 | > par(mfrow=c(2, 2)) # Request 2x2 plot layout 20 | > plot(lm_1) # Diagnostic plot of regression model -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/rhtml.Rhtml: -------------------------------------------------------------------------------- 1 | <html> 2 | 3 | <head> 4 | <title>Title 5 | 6 | 7 | 8 | 9 |

This is an R HTML document. When you click the Knit HTML button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

10 | 11 | 14 | 15 |

You can also embed plots, for example:

16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ruby.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/ruby 2 | 3 | # Program to find the factorial of a number 4 | def fact(n) 5 | if n == 0 6 | 1 7 | else 8 | n * fact(n-1) 9 | end 10 | end 11 | 12 | puts fact(ARGV[0].to_i) 13 | 14 | class Range 15 | def to_json(*a) 16 | { 17 | 'json_class' => self.class.name, # = 'Range' 18 | 'data' => [ first, last, exclude_end? ] 19 | }.to_json(*a) 20 | end 21 | end 22 | 23 | {:id => 34, :key => "value"} 24 | 25 | 26 | herDocs = [<<'FOO', <(vector: &[T], function: &fn(v: &T) -> U) -> ~[U] { 15 | let mut accumulator = ~[]; 16 | for vec::each(vector) |element| { 17 | accumulator.push(function(element)); 18 | } 19 | return accumulator; 20 | } 21 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/sass.sass: -------------------------------------------------------------------------------- 1 | // sass ace mode; 2 | 3 | @import url(http://fonts.googleapis.com/css?family=Ace:700) 4 | 5 | html, body 6 | :background-color #ace 7 | text-align: center 8 | height: 100% 9 | /*;*********; 10 | ;comment ; 11 | ;*********; 12 | 13 | .toggle 14 | $size: 14px 15 | 16 | :background url(http://subtlepatterns.com/patterns/dark_stripes.png) 17 | border-radius: 8px 18 | height: $size 19 | 20 | &:before 21 | $radius: $size * 0.845 22 | $glow: $size * 0.125 23 | 24 | box-shadow: 0 0 $glow $glow / 2 #fff 25 | border-radius: $radius 26 | 27 | &:active 28 | ~ .button 29 | box-shadow: 0 15px 25px -4px rgba(0,0,0,0.4) 30 | ~ .label 31 | font-size: 40px 32 | color: rgba(0,0,0,0.45) 33 | 34 | &:checked 35 | ~ .button 36 | box-shadow: 0 15px 25px -4px #ace 37 | ~ .label 38 | font-size: 40px 39 | color: #c9c9c9 40 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/scad.scad: -------------------------------------------------------------------------------- 1 | // ace can highlight scad! 2 | module Element(xpos, ypos, zpos){ 3 | translate([xpos,ypos,zpos]){ 4 | union(){ 5 | cube([10,10,4],true); 6 | cylinder(10,15,5); 7 | translate([0,0,10])sphere(5); 8 | } 9 | } 10 | } 11 | 12 | union(){ 13 | for(i=[0:30]){ 14 | # Element(0,0,0); 15 | Element(15*i,0,0); 16 | } 17 | } 18 | 19 | for (i = [3, 5, 7, 11]){ 20 | rotate([i*10,0,0])scale([1,1,i])cube(10); 21 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/scheme.scm: -------------------------------------------------------------------------------- 1 | (define (prompt-for-cd) 2 | "Prompts 3 | for CD" 4 | (prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6)) 5 | (prompt-read "Artist") 6 | (or (parse-integer (prompt-read "Rating") #:junk-allowed #t) 0) 7 | (if x (format #t "yes") (format #f "no") ;and here comment 8 | ) 9 | ;; second line comment 10 | '(+ 1 2) 11 | (position-if-not char-set:whitespace line #:start beg)) 12 | (quote (privet 1 2 3)) 13 | '(hello world) 14 | (* 5 7) 15 | (1 2 34 5) 16 | (#:use "aaaa") 17 | (let ((x 10) (y 20)) 18 | (display (+ x y)) 19 | ) 20 | 21 | "asdad\0eqweqe" 22 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/scss.scss: -------------------------------------------------------------------------------- 1 | /* style.scss */ 2 | 3 | #navbar { 4 | $navbar-width: 800px; 5 | $items: 5; 6 | $navbar-color: #ce4dd6; 7 | 8 | width: $navbar-width; 9 | border-bottom: 2px solid $navbar-color; 10 | 11 | li { 12 | float: left; 13 | width: $navbar-width/$items - 10px; 14 | 15 | background-color: lighten($navbar-color, 20%); 16 | &:hover { 17 | background-color: lighten($navbar-color, 10%); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/sh.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Script to open a browser to current branch 4 | # Repo formats: 5 | # ssh git@github.com:richoH/gh_pr.git 6 | # http https://richoH@github.com/richoH/gh_pr.git 7 | # git git://github.com/richoH/gh_pr.git 8 | 9 | username=`git config --get github.user` 10 | 11 | get_repo() { 12 | git remote -v | grep ${@:-$username} | while read remote; do 13 | if repo=`echo $remote | grep -E -o "git@github.com:[^ ]*"`; then 14 | echo $repo | sed -e "s/^git@github\.com://" -e "s/\.git$//" 15 | exit 1 16 | fi 17 | if repo=`echo $remote | grep -E -o "https?://([^@]*@)?github.com/[^ ]*\.git"`; then 18 | echo $repo | sed -e "s|^https?://||" -e "s/^.*github\.com\///" -e "s/\.git$//" 19 | exit 1 20 | fi 21 | if repo=`echo $remote | grep -E -o "git://github.com/[^ ]*\.git"`; then 22 | echo $repo | sed -e "s|^git://github.com/||" -e "s/\.git$//" 23 | exit 1 24 | fi 25 | done 26 | 27 | if [ $? -eq 0 ]; then 28 | echo "Couldn't find a valid remote" >&2 29 | exit 1 30 | fi 31 | } 32 | 33 | echo ${#x[@]} 34 | 35 | if repo=`get_repo $@`; then 36 | branch=`git symbolic-ref HEAD 2>/dev/null` 37 | echo "http://github.com/$repo/pull/new/${branch##refs/heads/}" 38 | else 39 | exit 1 40 | fi 41 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/sjs.sjs: -------------------------------------------------------------------------------- 1 | var { each, map } = require('sjs:sequence'); 2 | var { get } = require('sjs:http'); 3 | 4 | function foo(items, nada) { 5 | var component = { name: "Ace", role: "Editor" }; 6 | console.log(" 7 | Welcome, #{component.name} 8 | ".trim()); 9 | 10 | logging.debug(`Component added: $String(component) (${component})`); 11 | 12 | console.log(` 13 | Welcome, {${function() { 14 | return { x: 1, y: "why?}"}; 15 | }()} 16 | `.trim()); 17 | 18 | waitfor { 19 | items .. each.par { |item| 20 | get(item); 21 | } 22 | } and { 23 | var lengths = items .. map(i -> i.length); 24 | } or { 25 | hold(1500); 26 | throw new Error("timed out"); 27 | } 28 | } // Real Tab. 29 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/snippets.snippets: -------------------------------------------------------------------------------- 1 | # Function 2 | snippet fun 3 | function ${1?:function_name}(${2:argument}) { 4 | ${3:// body...} 5 | } 6 | # Anonymous Function 7 | regex /((=)\s*|(:)\s*|(\()|\b)/f/(\))?/ 8 | name f 9 | function${M1?: ${1:functionName}}($2) { 10 | ${0:$TM_SELECTED_TEXT} 11 | }${M2?;}${M3?,}${M4?)} 12 | # Immediate function 13 | trigger \(?f\( 14 | endTrigger \)? 15 | snippet f( 16 | (function(${1}) { 17 | ${0:${TM_SELECTED_TEXT:/* code */}} 18 | }(${1})); 19 | # if 20 | snippet if 21 | if (${1:true}) { 22 | ${0} 23 | } 24 | 25 | 26 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/soy_template.soy: -------------------------------------------------------------------------------- 1 | /** 2 | * Greets a person using "Hello" by default. 3 | * @param name The name of the person. 4 | * @param? greetingWord Optional greeting word to use instead of "Hello". 5 | */ 6 | {template .helloName #eee} 7 | {if not $greetingWord} 8 | Hello {$name}! 9 | {else} 10 | {$greetingWord} {$name}! 11 | {/if} 12 | {/template} 13 | 14 | /** 15 | * Greets a person and optionally a list of other people. 16 | * @param name The name of the person. 17 | * @param additionalNames The additional names to greet. May be an empty list. 18 | */ 19 | {template .helloNames} 20 | // Greet the person. 21 | {call .helloName data="all" /}
22 | // Greet the additional people. 23 | {foreach $additionalName in $additionalNames} 24 | {call .helloName} 25 | {param name: $additionalName /} 26 | {/call} 27 | {if not isLast($additionalName)} 28 |
// break after every line except the last 29 | {/if} 30 | {ifempty} 31 | No additional people to greet. 32 | {/foreach} 33 | {/template} 34 | 35 | 36 | {/foreach} 37 | {if length($items) > 5} 38 | {msg desc="Says hello to the user."} 39 | 40 | 41 | {namespace ns autoescape="contextual"} 42 | 43 | /** Example. */ 44 | {template .example} 45 | foo is {$ij.foo} 46 | {/template} -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/space.space: -------------------------------------------------------------------------------- 1 | query 2 | count 10 3 | created 2011-06-21T08:10:46Z 4 | lang en-US 5 | results 6 | photo 7 | 0 8 | farm 6 9 | id 5855620975 10 | isfamily 0 11 | isfriend 0 12 | ispublic 1 13 | owner 32021554@N04 14 | secret f1f5e8515d 15 | server 5110 16 | title 7087 bandit cat 17 | 1 18 | farm 4 19 | id 5856170534 20 | isfamily 0 21 | isfriend 0 22 | ispublic 1 23 | owner 32021554@N04 24 | secret ff1efb2a6f 25 | server 3217 26 | title 6975 rusty cat 27 | 2 28 | farm 6 29 | id 5856172972 30 | isfamily 0 31 | isfriend 0 32 | ispublic 1 33 | owner 51249875@N03 34 | secret 6c6887347c 35 | server 5192 36 | title watermarked-cats 37 | 3 38 | farm 6 39 | id 5856168328 40 | isfamily 0 41 | isfriend 0 42 | ispublic 1 43 | owner 32021554@N04 44 | secret 0c1cfdf64c 45 | server 5078 46 | title 7020 mandy cat 47 | 4 48 | farm 3 49 | id 5856171774 50 | isfamily 0 51 | isfriend 0 52 | ispublic 1 53 | owner 32021554@N04 54 | secret 7f5a3180ab 55 | server 2696 56 | title 7448 bobby cat 57 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/sql.sql: -------------------------------------------------------------------------------- 1 | SELECT city, COUNT(id) AS users_count 2 | FROM users 3 | WHERE group_name = 'salesman' 4 | AND created > '2011-05-21' 5 | GROUP BY 1 6 | ORDER BY 2 DESC -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/stylus.styl: -------------------------------------------------------------------------------- 1 | // I'm a comment! 2 | 3 | /* 4 | * Adds the given numbers together. 5 | */ 6 | 7 | 8 | /*! 9 | * Adds the given numbers together. 10 | */ 11 | 12 | 13 | asdasdasdad(df, ad=23) 14 | 15 | add(a, b = a) 16 | a + b 17 | green(#0c0) 18 | add(10, 5) 19 | // => 15 20 | 21 | add(10) 22 | add(a, b) 23 | 24 | &asdasd 25 | 26 | (arguments) 27 | 28 | @sdfsdf 29 | .signatures 30 | background-color #e0e8e0 31 | border 1px solid grayLighter 32 | box-shadow 0 0 3px grayLightest 33 | border-radius 3px 34 | padding 3px 5px 35 | "adsads" 36 | margin-left 0 37 | list-style none 38 | .signature 39 | list-style none 40 | display: inline 41 | margin-left 0 42 | > li 43 | display inline 44 | is not 45 | .signature-values 46 | list-style none 47 | display inline 48 | margin-left 0 49 | &:before 50 | content '→' 51 | margin 0 5px 52 | > li 53 | !important 54 | 55 | unless -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/tcl.tcl: -------------------------------------------------------------------------------- 1 | 2 | proc dijkstra {graph origin} { 3 | # Initialize 4 | dict for {vertex distmap} $graph { 5 | dict set dist $vertex Inf 6 | dict set path $vertex {} 7 | } 8 | dict set dist $origin 0 9 | dict set path $origin [list $origin] 10 | 11 | while {[dict size $graph]} { 12 | # Find unhandled node with least weight 13 | set d Inf 14 | dict for {uu -} $graph { 15 | if {$d > [set dd [dict get $dist $uu]]} { 16 | set u $uu 17 | set d $dd 18 | } 19 | } 20 | 21 | # No such node; graph must be disconnected 22 | if {$d == Inf} break 23 | 24 | # Update the weights for nodes\ 25 | lead to by the node we've picked 26 | dict for {v dd} [dict get $graph $u] { 27 | if {[dict exists $graph $v]} { 28 | set alt [expr {$d + $dd}] 29 | if {$alt < [dict get $dist $v]} { 30 | dict set dist $v $alt 31 | dict set path $v [list {*}[dict get $path $u] $v] 32 | } 33 | } 34 | } 35 | 36 | # Remove chosen node from graph still to be handled 37 | dict unset graph $u 38 | } 39 | return [list $dist $path] 40 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/tex.tex: -------------------------------------------------------------------------------- 1 | The quadratic formula is $$-b \pm \sqrt{b^2 - 4ac} \over 2a$$ 2 | \bye 3 | 4 | \makeatletter 5 | \newcommand{\be}{% 6 | \begingroup 7 | % \setlength{\arraycolsep}{2pt} 8 | \eqnarray% 9 | \@ifstar{\nonumber}{}% 10 | } 11 | \newcommand{\ee}{\endeqnarray\endgroup} 12 | \makeatother 13 | 14 | \begin{equation} 15 | x=\left\{ \begin{array}{cl} 16 | 0 & \textrm{if }A=\ldots\\ 17 | 1 & \textrm{if }B=\ldots\\ 18 | x & \textrm{this runs with as much text as you like, but without an raggeright text 19 | .}\end{array}\right. 20 | \end{equation} -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/textile.textile: -------------------------------------------------------------------------------- 1 | h1. Textile document 2 | 3 | h2. Heading Two 4 | 5 | h3. A two-line 6 | header 7 | 8 | h2. Another two-line 9 | header 10 | 11 | Paragraph: 12 | one, two, 13 | thee lines! 14 | 15 | p(classone two three). This is a paragraph with classes 16 | 17 | p(#id). (one with an id) 18 | 19 | p(one two three#my_id). ..classes + id 20 | 21 | * Unordered list 22 | ** sublist 23 | * back again! 24 | ** sublist again.. 25 | 26 | # ordered 27 | 28 | bg. Blockquote! 29 | This is a two-list blockquote..! -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/toml.toml: -------------------------------------------------------------------------------- 1 | # This is a TOML document. Boom. 2 | 3 | title = "TOML Example" 4 | 5 | [owner] 6 | name = "Tom Preston-Werner" 7 | organization = "GitHub" 8 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." 9 | dob = 1979-05-27T07:32:00Z # First class dates? Why not? 10 | 11 | [database] 12 | server = "192.168.1.1" 13 | ports = [ 8001, 8001, 8002 ] 14 | connection_max = 5000 15 | enabled = true 16 | 17 | [servers] 18 | 19 | # You can indent as you please. Tabs or spaces. TOML don't care. 20 | [servers.alpha] 21 | ip = "10.0.0.1" 22 | dc = "eqdc10" 23 | 24 | [servers.beta] 25 | ip = "10.0.0.2" 26 | dc = "eqdc10" 27 | 28 | [clients] 29 | data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/twig.twig: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | My Webpage 5 | 6 | 7 | 12 | 13 | {% if 1 not in [1, 2, 3] %} 14 | 15 | {# is equivalent to #} 16 | {% if not (1 in [1, 2, 3]) %} 17 | 18 | {% autoescape true %} 19 | {{ var }} 20 | {{ var|raw }} {# var won't be escaped #} 21 | {{ var|escape }} {# var won't be doubled-escaped #} 22 | {% endautoescape %} 23 | 24 | {{ include('twig.html', sandboxed = true) }} 25 | 26 | {{"string #{with} \" escapes" 'another#one' }} 27 |

My Webpage

28 | {{ a_variable }} 29 | 30 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/vbscript.vbs: -------------------------------------------------------------------------------- 1 | myfilename = "C:\Wikipedia - VBScript - Example - Hello World.txt" 2 | MakeHelloWorldFile myfilename 3 | 4 | Sub MakeHelloWorldFile (FileName) 5 | 'Create a new file in C: drive or overwrite existing file 6 | Set FSO = CreateObject("Scripting.FileSystemObject") 7 | If FSO.FileExists(FileName) Then 8 | Answer = MsgBox ("File " & FileName & " exists ... OK to overwrite?", vbOKCancel) 9 | 'If button selected is not OK, then quit now 10 | 'vbOK is a language constant 11 | If Answer <> vbOK Then Exit Sub 12 | Else 13 | 'Confirm OK to create 14 | Answer = MsgBox ("File " & FileName & " ... OK to create?", vbOKCancel) 15 | If Answer <> vbOK Then Exit Sub 16 | End If 17 | 'Create new file (or replace an existing file) 18 | Set FileObject = FSO.CreateTextFile (FileName) 19 | FileObject.WriteLine "Time ... " & Now() 20 | FileObject.WriteLine "Hello World" 21 | FileObject.Close() 22 | MsgBox "File " & FileName & " ... updated." 23 | End Sub -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/velocity.vm: -------------------------------------------------------------------------------- 1 | #* 2 | This is a sample comment block that 3 | spans multiple lines. 4 | *# 5 | 6 | #macro ( outputItem $item ) 7 |
  • ${item}
  • 8 | #end 9 | 10 | ## Define the items to iterate 11 | #set ( $items = [1, 2, 3, 4] ) 12 | 13 |
      14 | ## Iterate over the items and output the evens. 15 | #foreach ( $item in $items ) 16 | #if ( $_MathTool.mod($item, 2) == 0 ) 17 | #outputItem ($item) 18 | #end 19 | #end 20 |
    21 | 22 | 33 | 34 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/verilog.v: -------------------------------------------------------------------------------- 1 | always @(negedge reset or posedge clk) begin 2 | if (reset == 0) begin 3 | d_out <= 16'h0000; 4 | d_out_mem[resetcount] <= d_out; 5 | laststoredvalue <= d_out; 6 | end else begin 7 | d_out <= d_out + 1'b1; 8 | end 9 | end 10 | 11 | always @(bufreadaddr) 12 | bufreadval = d_out_mem[bufreadaddr]; -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/vhdl.vhd: -------------------------------------------------------------------------------- 1 | library IEEE 2 | user IEEE.std_logic_1164.all; 3 | use IEEE.numeric_std.all; 4 | 5 | entity COUNT16 is 6 | 7 | port ( 8 | cOut :out std_logic_vector(15 downto 0); -- counter output 9 | clkEn :in std_logic; -- count enable 10 | clk :in std_logic; -- clock input 11 | rst :in std_logic -- reset input 12 | ); 13 | 14 | end entity; 15 | 16 | architecture count_rtl of COUNT16 is 17 | signal count :std_logic_vector (15 downto 0); 18 | 19 | begin 20 | process (clk, rst) begin 21 | 22 | if(rst = '1') then 23 | count <= (others=>'0'); 24 | elsif(rising_edge(clk)) then 25 | if(clkEn = '1') then 26 | count <= count + 1; 27 | end if; 28 | end if; 29 | 30 | end process; 31 | cOut <= count; 32 | 33 | end architecture; 34 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/xquery.xq: -------------------------------------------------------------------------------- 1 | xquery version "1.0"; 2 | 3 | let $message := "Hello World!" 4 | return 5 | {$message} 6 | 7 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/yaml.yaml: -------------------------------------------------------------------------------- 1 | # This sample document was taken from wikipedia: 2 | # http://en.wikipedia.org/wiki/YAML#Sample_document 3 | --- 4 | receipt: Oz-Ware Purchase Invoice 5 | date: 2007-08-06 6 | customer: 7 | given: Dorothy 8 | family: Gale 9 | 10 | items: 11 | - part_no: 'A4786' 12 | descrip: Water Bucket (Filled) 13 | price: 1.47 14 | quantity: 4 15 | 16 | - part_no: 'E1628' 17 | descrip: High Heeled "Ruby" Slippers 18 | size: 8 19 | price: 100.27 20 | quantity: 1 21 | 22 | bill-to: &id001 23 | street: | 24 | 123 Tornado Alley 25 | Suite 16 26 | city: East Centerville 27 | state: KS 28 | 29 | ship-to: *id001 30 | 31 | specialDelivery: > 32 | Follow the Yellow Brick 33 | Road to the Emerald City. 34 | Pay no attention to the 35 | man behind the curtain. 36 | -------------------------------------------------------------------------------- /demo/kitchen-sink/icons/Readme.txt: -------------------------------------------------------------------------------- 1 | The icons in this folder are from the Eclipse project and licensed under the Eclipse public license version 1.0 (EPL). -------------------------------------------------------------------------------- /demo/kitchen-sink/icons/error_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/demo/kitchen-sink/icons/error_obj.gif -------------------------------------------------------------------------------- /demo/kitchen-sink/icons/warning_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/demo/kitchen-sink/icons/warning_obj.gif -------------------------------------------------------------------------------- /demo/kitchen-sink/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/demo/kitchen-sink/logo.png -------------------------------------------------------------------------------- /demo/kitchen-sink/styles.css: -------------------------------------------------------------------------------- 1 | html { 2 | height: 100%; 3 | width: 100%; 4 | overflow: hidden; 5 | } 6 | 7 | body { 8 | overflow: hidden; 9 | margin: 0; 10 | padding: 0; 11 | height: 100%; 12 | width: 100%; 13 | font-family: Arial, Helvetica, sans-serif, Tahoma, Verdana, sans-serif; 14 | font-size: 12px; 15 | background: rgb(14, 98, 165); 16 | color: white; 17 | } 18 | 19 | #c9-logo, #ace-logo { 20 | padding: 0; 21 | border: none; 22 | } 23 | 24 | #editor-container { 25 | position: absolute; 26 | top: 0px; 27 | left: 280px; 28 | bottom: 0px; 29 | right: 0px; 30 | background: white; 31 | } 32 | 33 | #controls { 34 | padding: 5px; 35 | } 36 | 37 | #controls td { 38 | text-align: right; 39 | } 40 | 41 | #controls td + td { 42 | text-align: left; 43 | } 44 | .ace_status-indicator { 45 | color: gray; 46 | position: absolute; 47 | right: 0; 48 | border-left: 1px solid; 49 | } -------------------------------------------------------------------------------- /demo/requirejs+build.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Editor 7 | 21 | 22 | 23 | 24 |
    function foo(items) {
    25 |     var i;
    26 |     for (i = 0; i < items.length; i++) {
    27 |         alert("Ace Rocks " + items[i]);
    28 |     }
    29 | }
    30 | 31 | 32 | 33 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /demo/settings_menu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Editor 7 | 21 | 22 | 23 | 24 |
    
    25 |     
    26 | 
    27 | 
    28 | 
    42 | 
    43 | 
    44 | 
    45 | 
    46 | 
    
    
    --------------------------------------------------------------------------------
    /demo/show_own_source.js:
    --------------------------------------------------------------------------------
    1 | ace.require("ace/lib/net").get(document.baseURI, function(t){
    2 |     editor.setValue(t, 1);
    3 | })
    
    
    --------------------------------------------------------------------------------
    /demo/static-highlighter/server.js:
    --------------------------------------------------------------------------------
     1 | /**
     2 |  * Simple node.js server, which generates the synax highlighted version of itself 
     3 |  * using the Ace modes and themes on the server and serving a static web page.
     4 |  */
     5 | // $'
     6 | // include ace search path and modules
     7 | require("amd-loader");
     8 | 
     9 | // load jsdom, which is required by Ace
    10 | require("../../lib/ace/test/mockdom");
    11 | 
    12 | var http = require("http");
    13 | var fs = require("fs");
    14 | 
    15 | // load the highlighter and the desired mode and theme
    16 | var highlighter = require("../../lib/ace/ext/static_highlight");
    17 | var JavaScriptMode = require("../../lib/ace/mode/javascript").Mode;
    18 | var theme = require("../../lib/ace/theme/twilight");
    19 | 
    20 | var port = process.env.PORT || 2222;
    21 | 
    22 | http.createServer(function(req, res) {
    23 |     res.writeHead(200, {"Content-Type": "text/html; charset=utf-8"});
    24 |     fs.readFile(__filename, "utf8", function(err, data) {
    25 |         var highlighted = highlighter.render(data, new JavaScriptMode(), theme);
    26 |         res.end(
    27 |             '\n' +
    28 |                 '\n' + 
    31 |                 highlighted.html +            
    32 |             ''
    33 |         );
    34 |     });
    35 | }).listen(port);
    36 | 
    37 | console.log("Listening on port " + port);
    
    
    --------------------------------------------------------------------------------
    /doc/Contributor_License_Agreement-v2.pdf:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/Contributor_License_Agreement-v2.pdf
    
    
    --------------------------------------------------------------------------------
    /doc/Corporate_Contributor_License_Agreement-v2.pdf:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/Corporate_Contributor_License_Agreement-v2.pdf
    
    
    --------------------------------------------------------------------------------
    /doc/README.md:
    --------------------------------------------------------------------------------
     1 | # Introduction
     2 | 
     3 | The API doc build takes a look a source Javascript files in the _lib_ directory, and turns it into HTML output in the _api_ directory. It uses [Panino](https://github.com/gjtorikian/panino-docs) to perform the conversion.
     4 | 
     5 | For any questions on the build system, please see that repo.
     6 | 
     7 | # Building
     8 | 
     9 | In the root directory, just run:
    10 | 
    11 |     make doc
    12 | 
    13 | In this directory, just run:
    14 | 
    15 |     npm install
    16 |     node build.js
    17 | 
    18 | 
    
    
    --------------------------------------------------------------------------------
    /doc/index.md:
    --------------------------------------------------------------------------------
    1 | # Ace API Reference
    2 | 
    3 | Welcome to the Ace API Reference Guide. Ace is a standalone code editor written in JavaScript that you can embed onto any website. We're used in a bunch of places already, like GitHub, Google, and Facebook.
    4 | 
    5 | On the left, you'll find a list of all of our currently documented classes. There are plenty more to do, but these represent the "core" set. For more information on how to work with Ace, check out the [main Ace website](http://ace.ajax.org).
    
    
    --------------------------------------------------------------------------------
    /doc/package.json:
    --------------------------------------------------------------------------------
    1 | {
    2 |     "name": "ace-api",
    3 |     "version": "0.1.0",
    4 |     "dependencies": {
    5 |         "panino" : ">=2.2.0",
    6 |         "asset-smasher": "0.2.0"
    7 |     }
    8 | }
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/FineCut_small_logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/FineCut_small_logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/ac-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/ac-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/ace-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/ace-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/ace-tab.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/ace-tab.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/ace.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/ace.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/acebug-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/acebug-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/background.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/background.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/body_background.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/body_background.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/bottombar.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/bottombar.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/cloud9-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/cloud9-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/codecademy-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/codecademy-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/codiad.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/codiad.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/crunchapp-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/crunchapp-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/empty-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/empty-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/favicon.ico:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/favicon.ico
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/firefox-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/firefox-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/fork_on_github.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/fork_on_github.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/github-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/github-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/header-bg.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/header-bg.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/ideone-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/ideone-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/khan-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/khan-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/logo_half.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/logo_half.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/lws-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/lws-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/modx-logo-4.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/modx-logo-4.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/pixie-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/pixie-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/plunker.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/plunker.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/repl.it-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/repl.it-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/rstudio_logo_64.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/rstudio_logo_64.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/sassmeister-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/sassmeister-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/shiftedit-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/shiftedit-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/spandexio-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/spandexio-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/stypi-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/stypi-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/sx-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/sx-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/textimage.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/textimage.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/weecod-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/weecod-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/wolf_3d_logo_trans.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/wolf_3d_logo_trans.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/images/zorba-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/site/images/zorba-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/site/iphone.css:
    --------------------------------------------------------------------------------
     1 | #wrapper {
     2 |     position:relative;
     3 |     overflow:hidden;
     4 | }
     5 | 
     6 | #wrapper .content .column1 {
     7 |     margin:0 16px 0 15px;
     8 | }
     9 | 
    10 | #header .content .signature {
    11 |     font-size:18px;
    12 |     bottom:0;
    13 | }
    14 | 
    15 | UL.menu-list LI {
    16 |     font-size:22px;
    17 | }
    18 | 
    19 | UL.menu-footer LI {
    20 |     font-size:22px;
    21 | }
    22 | 
    23 | PRE{
    24 |     font-size:22px;
    25 | }
    
    
    --------------------------------------------------------------------------------
    /doc/site/js/ga.js:
    --------------------------------------------------------------------------------
    1 |  var _gaq = _gaq || [];
    2 |  _gaq.push(['_setAccount', 'UA-31998201-1']);
    3 |  _gaq.push(['_trackPageview']);
    4 |  
    5 |  (function() {
    6 |    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    7 |    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    8 |    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    9 |  })();
    
    
    --------------------------------------------------------------------------------
    /doc/template/jade/layout.jade:
    --------------------------------------------------------------------------------
     1 | include common_layout
     2 | include lib
     3 | 
     4 | #documentation.span9
     5 |     -if (isIndex)
     6 |         != indexContent
     7 |     -else
     8 |         mixin api()
     9 | 
    10 |     mixin endingScripts
    11 | 
    12 |     div(id="disqus_thread")
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/font/fontawesome-webfont.eot:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/font/fontawesome-webfont.eot
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/font/fontawesome-webfont.ttf:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/font/fontawesome-webfont.ttf
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/font/fontawesome-webfont.woff:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/font/fontawesome-webfont.woff
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/Ace_ERD.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/Ace_ERD.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/ace_logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/ace_logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/ace_logo_menu.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/ace_logo_menu.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/c9-log-footer.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/c9-log-footer.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/c9-sponsor.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/c9-sponsor.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/cloud9-logo.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/cloud9-logo.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/content-top.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/content-top.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/content_bg.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/content_bg.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/content_top_bg.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/content_top_bg.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/dashed_back.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/dashed_back.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/footer-bg.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/footer-bg.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/main_bg.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/main_bg.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/member-sprites.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/member-sprites.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/menu_disc.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/menu_disc.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/method_bg.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/method_bg.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/scrolled-heading-shadow.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/scrolled-heading-shadow.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/sidebar-top-bg.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/sidebar-top-bg.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/sidebar_border.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/sidebar_border.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/images/swirl_divider.png:
    --------------------------------------------------------------------------------
    https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/doc/template/resources/images/swirl_divider.png
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/javascripts/disqus-ext.js:
    --------------------------------------------------------------------------------
     1 | function setupDisqus(href) {
     2 |     var disqus_shortname = 'aceapi';
     3 |     
     4 |     //var paths = window.location.pathname.split("/");
     5 |     //var fileName = paths[paths.length - 2] + "/" + paths[paths.length - 1];
     6 |     
     7 |     //var disqus_identifier = fileName;
     8 |     var disqus_identifier =  href.substring(2);
     9 |     
    10 |     (function() {
    11 |         if (document.getElementById("disqusScript") === null) {
    12 |             var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
    13 |             dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
    14 |             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);       
    15 |         }
    16 |     })();
    17 | }
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/javascripts/plugins.js:
    --------------------------------------------------------------------------------
     1 | window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);(typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a))}};
     2 | (function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
     3 | {console.log();return window.console;}catch(err){return window.console={};}})());
     4 | 
     5 | /*
     6 |  * jQuery throttle / debounce - v1.1 - 3/7/2010
     7 |  * http://benalman.com/projects/jquery-throttle-debounce-plugin/
     8 |  * 
     9 |  * Copyright (c) 2010 "Cowboy" Ben Alman
    10 |  * Dual licensed under the MIT and GPL licenses.
    11 |  * http://benalman.com/about/license/
    12 |  */
    13 | (function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
    14 | 
    
    
    --------------------------------------------------------------------------------
    /doc/template/resources/javascripts/prettify-extension.js:
    --------------------------------------------------------------------------------
     1 | // Stolen from StackOverflow. Find all 
     
     2 | // elements on the page and add the "prettyprint" style. If at least one 
     3 | // prettyprint element was found, call the Google Prettify prettyPrint() API.
     4 | //http://sstatic.net/so/js/master.js?v=6523
     5 | function styleCode() 
     6 | {
     7 |     if (typeof disableStyleCode != "undefined") 
     8 |     {
     9 |         return;
    10 |     }
    11 | 
    12 |     var a = false;
    13 | 
    14 |     $("pre code").parent().each(function() 
    15 |     {
    16 |         if (!$(this).hasClass("prettyprint")) 
    17 |         {
    18 |             $(this).addClass("prettyprint");
    19 |             a = true
    20 |         }
    21 |     });
    22 |     
    23 |     if (a) { prettyPrint() } 
    24 | }
    
    
    --------------------------------------------------------------------------------
    /experiments/capture.html:
    --------------------------------------------------------------------------------
     1 | 
     3 | 
     4 | 
     5 | 
     6 | 	
     7 | 	
     8 | 	
     9 | 	
    10 | 	
    17 | 
    18 | 
    19 | 
    20 | 
    21 | 22 |
    23 | 24 | 25 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /experiments/triple_click.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | triple_click 8 | 9 | 10 | 11 | 12 | 13 |
    14 | Juhu Kinners 15 |
    16 | 17 | 18 | 19 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /experiments/worker.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | worker 8 | 9 | 10 | 11 | 12 | 13 | 14 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /experiments/worker.js: -------------------------------------------------------------------------------- 1 | onmessage = function(e) { 2 | onmessage = new Function("e", e.data); 3 | }; -------------------------------------------------------------------------------- /experiments/zenbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/experiments/zenbg.png -------------------------------------------------------------------------------- /lib/ace/css/codefolding-fold-button-states.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/css/codefolding-fold-button-states.png -------------------------------------------------------------------------------- /lib/ace/css/expand-marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/css/expand-marker.png -------------------------------------------------------------------------------- /lib/ace/ext/menu_tools/settings_menu.css: -------------------------------------------------------------------------------- 1 | #ace_settingsmenu, #kbshortcutmenu { 2 | background-color: #F7F7F7; 3 | color: black; 4 | box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55); 5 | padding: 1em 0.5em 2em 1em; 6 | overflow: auto; 7 | position: absolute; 8 | margin: 0; 9 | bottom: 0; 10 | right: 0; 11 | top: 0; 12 | z-index: 9991; 13 | cursor: default; 14 | } 15 | 16 | .ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu { 17 | box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25); 18 | background-color: rgba(255, 255, 255, 0.6); 19 | color: black; 20 | } 21 | 22 | .ace_optionsMenuEntry:hover { 23 | background-color: rgba(100, 100, 100, 0.1); 24 | -webkit-transition: all 0.5s; 25 | transition: all 0.3s 26 | } 27 | 28 | .ace_closeButton { 29 | background: rgba(245, 146, 146, 0.5); 30 | border: 1px solid #F48A8A; 31 | border-radius: 50%; 32 | padding: 7px; 33 | position: absolute; 34 | right: -8px; 35 | top: -8px; 36 | z-index: 1000; 37 | } 38 | .ace_closeButton{ 39 | background: rgba(245, 146, 146, 0.9); 40 | } 41 | .ace_optionsMenuKey { 42 | color: darkslateblue; 43 | font-weight: bold; 44 | } 45 | .ace_optionsMenuCommand { 46 | color: darkcyan; 47 | font-weight: normal; 48 | } -------------------------------------------------------------------------------- /lib/ace/ext/static.css: -------------------------------------------------------------------------------- 1 | .ace_static_highlight { 2 | font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace; 3 | font-size: 12px; 4 | } 5 | 6 | .ace_static_highlight .ace_gutter { 7 | width: 25px !important; 8 | display: block; 9 | float: left; 10 | text-align: right; 11 | padding: 0 3px 0 0; 12 | margin-right: 3px; 13 | position: static !important; 14 | } 15 | 16 | .ace_static_highlight .ace_line { clear: both; } 17 | 18 | .ace_static_highlight .ace_gutter-cell { 19 | -moz-user-select: -moz-none; 20 | -khtml-user-select: none; 21 | -webkit-user-select: none; 22 | user-select: none; 23 | } 24 | 25 | 26 | .ace_static_highlight .ace_gutter-cell:before { 27 | content: counter(ace_line, decimal); 28 | counter-increment: ace_line; 29 | } 30 | .ace_static_highlight { 31 | counter-reset: ace_line; 32 | } 33 | -------------------------------------------------------------------------------- /lib/ace/lib/fixoldbrowsers.js: -------------------------------------------------------------------------------- 1 | // vim:set ts=4 sts=4 sw=4 st: 2 | // -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License 3 | // -- tlrobinson Tom Robinson Copyright (C) 2009-2010 MIT License (Narwhal Project) 4 | // -- dantman Daniel Friesen Copyright(C) 2010 XXX No License Specified 5 | // -- fschaefer Florian Schäfer Copyright (C) 2010 MIT License 6 | // -- Irakli Gozalishvili Copyright (C) 2010 MIT License 7 | 8 | /*! 9 | Copyright (c) 2009, 280 North Inc. http://280north.com/ 10 | MIT License. http://github.com/280north/narwhal/blob/master/README.md 11 | */ 12 | 13 | define(function(require, exports, module) { 14 | "use strict"; 15 | 16 | require("./regexp"); 17 | require("./es5-shim"); 18 | 19 | }); 20 | -------------------------------------------------------------------------------- /lib/ace/lib/net.js: -------------------------------------------------------------------------------- 1 | /* 2 | * based on code from: 3 | * 4 | * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. 5 | * Available via the MIT or new BSD license. 6 | * see: http://github.com/jrburke/requirejs for details 7 | */ 8 | define(function(require, exports, module) { 9 | "use strict"; 10 | var dom = require("./dom"); 11 | 12 | exports.get = function (url, callback) { 13 | var xhr = new XMLHttpRequest(); 14 | xhr.open('GET', url, true); 15 | xhr.onreadystatechange = function () { 16 | //Do not explicitly handle errors, those should be 17 | //visible via console output in the browser. 18 | if (xhr.readyState === 4) { 19 | callback(xhr.responseText); 20 | } 21 | }; 22 | xhr.send(null); 23 | }; 24 | 25 | exports.loadScript = function(path, callback) { 26 | var head = dom.getDocumentHead(); 27 | var s = document.createElement('script'); 28 | 29 | s.src = path; 30 | head.appendChild(s); 31 | 32 | s.onload = s.onreadystatechange = function(_, isAbort) { 33 | if (isAbort || !s.readyState || s.readyState == "loaded" || s.readyState == "complete") { 34 | s = s.onload = s.onreadystatechange = null; 35 | if (!isAbort) 36 | callback(); 37 | } 38 | }; 39 | }; 40 | 41 | }); 42 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/Readme.md: -------------------------------------------------------------------------------- 1 | `tokens_.json` files keep information about correct tokens and tokenizer states for all modes supported by ace. 2 | They are generated from `text_.txt` or `demo/kitchen-sink/doc/*` with 3 | 4 | ```sh 5 | node highlight_rules_test.js -gen 6 | ``` 7 | 8 | command. 9 | 10 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-mode-creator", 3 | "version": "0.1.0", 4 | "dependencies": { 5 | "connect": "", 6 | "socket.io": "" 7 | } 8 | } -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_curly.txt: -------------------------------------------------------------------------------- 1 | tokenize Curly template{{test}} 2 | tokenize embedded script 3 | '123' 4 | tokenize multiline attribute value with double quotes 5 | 7 | tokenize multiline attribute value with single quotes 8 | 10 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_html.txt: -------------------------------------------------------------------------------- 1 | 2 | '123' 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_livescript.txt: -------------------------------------------------------------------------------- 1 | # comment 2 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_lucene.txt: -------------------------------------------------------------------------------- 1 | test: recognises AND as keyword 2 | test: recognises OR as keyword 3 | test: recognises NOT as keyword 4 | test: recognises "hello this is dog" as string 5 | test: recognises -"hello this is dog" as negation with string 6 | test: recognises ~100 as text with proximity 7 | test: recognises "hello this is dog"~100 as string with proximity 8 | test: recognises raw:"hello this is dog" as keyword 9 | test: recognises raw:foo as"keyword' 10 | test: recognises "(" as opening parenthesis 11 | test: recognises ")" as closing parenthesis 12 | test: recognises foo* as text with asterisk 13 | test: recognises foo? as text with interro 14 | test: recognises single word as text 15 | foo 16 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_markdown.txt: -------------------------------------------------------------------------------- 1 | test: header 1 2 | #f 3 | test: header 2 4 | ## foo 5 | test: header ends with ' #' 6 | # # # 7 | test: header ends with '#' 8 | #foo# 9 | test: 6+ #s is not a valid header 10 | ####### foo 11 | test: # followed be only space is not a valid header 12 | # 13 | test: only space between #s is not a valid header 14 | # # 15 | 16 | # test links [Cloud9 IDE](http://www.c9.io/) # 17 | * [demo](http://ajaxorg.github.com/ace/) [+](escape(\) ) [+](a "title") [+](a "space" ) 18 | * usually *work* fine (_em_) 19 | in lists 20 | 21 | in plain text http://ace.ajaxorg.com 22 | 23 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_ruby.txt: -------------------------------------------------------------------------------- 1 | #test: symbol tokenizer 2 | [:@thing, :$thing, :_thing, :thing, :Thing, :thing1, :thing_a, 3 | :THING, :thing!, :thing=, :thing?, :t?, 4 | :, :@, :$, :1, :1thing, :th?ing, :thi=ng, :1thing, 5 | :th!ing, :thing# 6 | ] 7 | 8 | #test: namespaces aren't symbols" : function() { 9 | Namespaced::Class 10 | #test: hex tokenizer 11 | 0x9a, 0XA1, 0x9_a, 0x, 0x_9a, 0x9a_, 12 | #test: float tokenizer 13 | [1, +1, -1, 12_345, 0.000_1, 14 | _, 3_1, 1_2, 1_.0, 0._1]; 15 | 16 | {:id => 34, :key => "value"} 17 | 18 | =begin 19 | =end 20 | 21 | =begin x 22 | =end- 23 | =end x 24 | 25 | herDocs = [<<'FOO', <//Juhu Kinners 2 | test: two tags in the same lines should be in separate tokens" 3 | 4 | test: multiline attributes" 5 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_ada.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["keyword","with"], 4 | ["text"," "], 5 | ["identifier","Ada"], 6 | ["text","."], 7 | ["identifier","Text_IO"], 8 | ["text","; "], 9 | ["keyword","use"], 10 | ["text"," "], 11 | ["identifier","Ada"], 12 | ["text","."], 13 | ["identifier","Text_IO"], 14 | ["text",";"] 15 | ],[ 16 | "start", 17 | ["keyword","procedure"], 18 | ["text"," "], 19 | ["identifier","Hello"], 20 | ["text"," "], 21 | ["keyword","is"] 22 | ],[ 23 | "start", 24 | ["keyword","begin"] 25 | ],[ 26 | "start", 27 | ["text"," "], 28 | ["identifier","Put_Line"], 29 | ["paren.lparen","("], 30 | ["string","\"Hello, world!\""], 31 | ["paren.rparen",")"], 32 | ["text",";"] 33 | ],[ 34 | "start", 35 | ["keyword","end"], 36 | ["text"," "], 37 | ["identifier","Hello"], 38 | ["text",";"] 39 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_cobol.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["identifier","TODO"] 4 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_coldfusion.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["comment",""] 4 | ],[ 5 | "start" 6 | ],[ 7 | "start", 8 | ["meta.tag.punctuation.begin","<"], 9 | ["meta.tag.name","cfset"], 10 | ["text"," "], 11 | ["entity.other.attribute-name","welcome"], 12 | ["keyword.operator.separator","="], 13 | ["string","\"Hello World!\""], 14 | ["meta.tag.punctuation.end",">"] 15 | ],[ 16 | "start" 17 | ],[ 18 | "start", 19 | ["meta.tag.punctuation.begin","<"], 20 | ["meta.tag.name","cfoutput"], 21 | ["meta.tag.punctuation.end",">"], 22 | ["text","#welcome#"], 23 | ["meta.tag.punctuation.begin",""] 26 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_csharp.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["keyword","public"], 4 | ["text"," "], 5 | ["keyword","void"], 6 | ["text"," "], 7 | ["identifier","HelloWorld"], 8 | ["paren.lparen","("], 9 | ["paren.rparen",")"], 10 | ["text"," "], 11 | ["paren.lparen","{"] 12 | ],[ 13 | "start", 14 | ["text"," "], 15 | ["comment","//Say Hello!"] 16 | ],[ 17 | "start", 18 | ["text"," "], 19 | ["identifier","Console"], 20 | ["punctuation.operator","."], 21 | ["identifier","WriteLine"], 22 | ["paren.lparen","("], 23 | ["string.start","\""], 24 | ["string","Hello World"], 25 | ["string.end","\""], 26 | ["paren.rparen",")"], 27 | ["punctuation.operator",";"] 28 | ],[ 29 | "start", 30 | ["paren.rparen","}"] 31 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_jsx.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "comment", 3 | ["comment","/*EXPECTED"] 4 | ],[ 5 | "comment", 6 | ["comment","hello world!"] 7 | ],[ 8 | "start", 9 | ["comment","*/"] 10 | ],[ 11 | "start", 12 | ["keyword","class"], 13 | ["text"," "], 14 | ["language.support.class","Test"], 15 | ["text"," "], 16 | ["paren.lparen","{"] 17 | ],[ 18 | "start", 19 | ["text"," "], 20 | ["keyword","static"], 21 | ["text"," "], 22 | ["storage.type","function"], 23 | ["text"," "], 24 | ["entity.name.function","run"], 25 | ["paren.lparen","("], 26 | ["paren.rparen",")"], 27 | ["text"," "], 28 | ["punctuation.operator",":"], 29 | ["text"," "], 30 | ["keyword","void"], 31 | ["text"," "], 32 | ["paren.lparen","{"] 33 | ],[ 34 | "start", 35 | ["text"," "], 36 | ["comment","// console.log(\"hello world!\");"] 37 | ],[ 38 | "start", 39 | ["text"," "], 40 | ["keyword","log"], 41 | ["text"," "], 42 | ["string","\"hello world!\""], 43 | ["punctuation.operator",";"] 44 | ],[ 45 | "start", 46 | ["text"," "], 47 | ["paren.rparen","}"] 48 | ],[ 49 | "start", 50 | ["paren.rparen","}"] 51 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_livescript.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["comment","# comment"] 4 | ],[ 5 | "start" 6 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_sql.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["keyword","SELECT"], 4 | ["text"," "], 5 | ["identifier","city"], 6 | ["text",", "], 7 | ["support.function","COUNT"], 8 | ["paren.lparen","("], 9 | ["identifier","id"], 10 | ["paren.rparen",")"], 11 | ["text"," "], 12 | ["keyword","AS"], 13 | ["text"," "], 14 | ["identifier","users_count"] 15 | ],[ 16 | "start", 17 | ["keyword","FROM"], 18 | ["text"," "], 19 | ["identifier","users"] 20 | ],[ 21 | "start", 22 | ["keyword","WHERE"], 23 | ["text"," "], 24 | ["identifier","group_name"], 25 | ["text"," "], 26 | ["keyword.operator","="], 27 | ["text"," "], 28 | ["string","'salesman'"] 29 | ],[ 30 | "start", 31 | ["keyword","AND"], 32 | ["text"," "], 33 | ["identifier","created"], 34 | ["text"," "], 35 | ["keyword.operator",">"], 36 | ["text"," "], 37 | ["string","'2011-05-21'"] 38 | ],[ 39 | "start", 40 | ["keyword","GROUP"], 41 | ["text"," "], 42 | ["keyword","BY"], 43 | ["text"," "], 44 | ["constant.numeric","1"] 45 | ],[ 46 | "start", 47 | ["keyword","ORDER"], 48 | ["text"," "], 49 | ["keyword","BY"], 50 | ["text"," "], 51 | ["constant.numeric","2"], 52 | ["text"," "], 53 | ["keyword","DESC"] 54 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_xml.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["meta.tag.punctuation.begin","<"], 4 | ["meta.tag.name","Juhu"], 5 | ["meta.tag.punctuation.end",">"], 6 | ["text","//Juhu Kinners"], 7 | ["meta.tag.punctuation.begin",""] 10 | ],[ 11 | "start", 12 | ["text","test: two tags in the same lines should be in separate tokens\""] 13 | ],[ 14 | "start", 15 | ["meta.tag.punctuation.begin","<"], 16 | ["meta.tag.name","Juhu"], 17 | ["meta.tag.punctuation.end",">"], 18 | ["meta.tag.punctuation.begin","<"], 19 | ["meta.tag.name","Kinners"], 20 | ["meta.tag.punctuation.end",">"] 21 | ],[ 22 | "start", 23 | ["text","test: multiline attributes\""] 24 | ],[ 25 | ["qqstring_inner","meta.tag.punctuation.begin"], 26 | ["meta.tag.punctuation.begin","<"], 27 | ["meta.tag.name","copy"], 28 | ["text"," "], 29 | ["entity.other.attribute-name","set"], 30 | ["keyword.operator.separator","="], 31 | ["string","\"{"] 32 | ],[ 33 | ["qqstring_inner","meta.tag.punctuation.begin"], 34 | ["string","}\""], 35 | ["text"," "], 36 | ["entity.other.attribute-name","undo"], 37 | ["keyword.operator.separator","="], 38 | ["string","\"{"] 39 | ],[ 40 | "start", 41 | ["string","}\""], 42 | ["meta.tag.punctuation.end","/>"] 43 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_xquery.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "[\"start\"]", 3 | ["keyword","xquery"], 4 | ["text"," "], 5 | ["keyword","version"], 6 | ["text"," "], 7 | ["string","\""], 8 | ["string","1.0"], 9 | ["string","\""], 10 | ["text",";"] 11 | ],[ 12 | "[\"start\"]" 13 | ],[ 14 | "[\"start\"]", 15 | ["keyword","let"], 16 | ["text"," "], 17 | ["variable","$message"], 18 | ["text"," "], 19 | ["keyword.operator",":="], 20 | ["text"," "], 21 | ["string","\""], 22 | ["string","Hello World!"], 23 | ["string","\""] 24 | ],[ 25 | "[\"start\",\"StartTag\",\"TagContent\"]", 26 | ["keyword","return"], 27 | ["text"," "], 28 | ["meta.tag",""] 30 | ],[ 31 | "[\"start\",\"StartTag\",\"TagContent\"]", 32 | ["text"," "], 33 | ["meta.tag",""], 35 | ["text","{"], 36 | ["variable","$message"], 37 | ["text","}"], 38 | ["meta.tag",""] 39 | ],[ 40 | "[\"start\"]", 41 | ["meta.tag",""] 42 | ],[ 43 | "[\"start\"]" 44 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/groovy.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | var oop = require("../lib/oop"); 5 | var JavaScriptMode = require("./javascript").Mode; 6 | var Tokenizer = require("../tokenizer").Tokenizer; 7 | var GroovyHighlightRules = require("./groovy_highlight_rules").GroovyHighlightRules; 8 | 9 | var Mode = function() { 10 | JavaScriptMode.call(this); 11 | this.HighlightRules = GroovyHighlightRules; 12 | }; 13 | oop.inherits(Mode, JavaScriptMode); 14 | 15 | (function() { 16 | 17 | this.createWorker = function(session) { 18 | return null; 19 | }; 20 | 21 | this.$id = "ace/mode/groovy"; 22 | }).call(Mode.prototype); 23 | 24 | exports.Mode = Mode; 25 | }); 26 | -------------------------------------------------------------------------------- /lib/ace/mode/handlebars.js: -------------------------------------------------------------------------------- 1 | /* global define */ 2 | 3 | define(function(require, exports, module) { 4 | "use strict"; 5 | 6 | var oop = require("../lib/oop"); 7 | var HtmlMode = require("./html").Mode; 8 | var Tokenizer = require("../tokenizer").Tokenizer; 9 | var HandlebarsHighlightRules = require("./handlebars_highlight_rules").HandlebarsHighlightRules; 10 | var HtmlBehaviour = require("./behaviour/html").HtmlBehaviour; 11 | var HtmlFoldMode = require("./folding/html").FoldMode; 12 | 13 | var Mode = function() { 14 | HtmlMode.call(this); 15 | this.HighlightRules = HandlebarsHighlightRules; 16 | this.$behaviour = new HtmlBehaviour(); 17 | 18 | 19 | this.foldingRules = new HtmlFoldMode(); 20 | }; 21 | 22 | oop.inherits(Mode, HtmlMode); 23 | 24 | (function() { 25 | 26 | this.$id = "ace/mode/handlebars"; 27 | }).call(Mode.prototype); 28 | 29 | exports.Mode = Mode; 30 | }); 31 | -------------------------------------------------------------------------------- /lib/ace/mode/java.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | var oop = require("../lib/oop"); 5 | var JavaScriptMode = require("./javascript").Mode; 6 | var Tokenizer = require("../tokenizer").Tokenizer; 7 | var JavaHighlightRules = require("./java_highlight_rules").JavaHighlightRules; 8 | 9 | var Mode = function() { 10 | JavaScriptMode.call(this); 11 | this.HighlightRules = JavaHighlightRules; 12 | }; 13 | oop.inherits(Mode, JavaScriptMode); 14 | 15 | (function() { 16 | 17 | this.createWorker = function(session) { 18 | return null; 19 | }; 20 | 21 | this.$id = "ace/mode/java"; 22 | }).call(Mode.prototype); 23 | 24 | exports.Mode = Mode; 25 | }); 26 | -------------------------------------------------------------------------------- /lib/ace/mode/latex.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | var oop = require("../lib/oop"); 5 | var TextMode = require("./text").Mode; 6 | var Tokenizer = require("../tokenizer").Tokenizer; 7 | var LatexHighlightRules = require("./latex_highlight_rules").LatexHighlightRules; 8 | var LatexFoldMode = require("./folding/latex").FoldMode; 9 | var Range = require("../range").Range; 10 | 11 | var Mode = function() { 12 | this.HighlightRules = LatexHighlightRules; 13 | this.foldingRules = new LatexFoldMode(); 14 | }; 15 | oop.inherits(Mode, TextMode); 16 | 17 | (function() { 18 | this.lineCommentStart = "%"; 19 | 20 | this.$id = "ace/mode/latex"; 21 | }).call(Mode.prototype); 22 | 23 | exports.Mode = Mode; 24 | 25 | }); 26 | -------------------------------------------------------------------------------- /lib/ace/mode/latex_highlight_rules.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | var oop = require("../lib/oop"); 5 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 6 | 7 | var LatexHighlightRules = function() { 8 | this.$rules = { 9 | "start" : [{ 10 | // A tex command e.g. \foo 11 | token : "keyword", 12 | regex : "\\\\(?:[^a-zA-Z]|[a-zA-Z]+)" 13 | }, { 14 | // Curly and square braces 15 | token : "lparen", 16 | regex : "[[({]" 17 | }, { 18 | // Curly and square braces 19 | token : "rparen", 20 | regex : "[\\])}]" 21 | }, { 22 | // Inline math between two $ symbols 23 | token : "string", 24 | regex : "\\$(?:(?:\\\\.)|(?:[^\\$\\\\]))*?\\$" 25 | }, { 26 | // A comment. Tex comments start with % and go to 27 | // the end of the line 28 | token : "comment", 29 | regex : "%.*$" 30 | }] 31 | }; 32 | }; 33 | 34 | oop.inherits(LatexHighlightRules, TextHighlightRules); 35 | 36 | exports.LatexHighlightRules = LatexHighlightRules; 37 | 38 | }); 39 | -------------------------------------------------------------------------------- /lib/ace/mode/luapage.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | var oop = require("../lib/oop"); 5 | var HtmlMode = require("./html").Mode; 6 | var LuaMode = require("./lua").Mode; 7 | var Tokenizer = require("../tokenizer").Tokenizer; 8 | var LuaPageHighlightRules = require("./luapage_highlight_rules").LuaPageHighlightRules; 9 | 10 | var Mode = function() { 11 | this.HighlightRules = LuaPageHighlightRules; 12 | 13 | this.HighlightRules = LuaPageHighlightRules; 14 | this.createModeDelegates({ 15 | "lua-": LuaMode 16 | }); 17 | }; 18 | oop.inherits(Mode, HtmlMode); 19 | 20 | (function() { 21 | this.$id = "ace/mode/luapage"; 22 | }).call(Mode.prototype); 23 | 24 | exports.Mode = Mode; 25 | }); -------------------------------------------------------------------------------- /lib/ace/mode/lucene.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | 4 | var oop = require("../lib/oop"); 5 | var TextMode = require("./text").Mode; 6 | var Tokenizer = require("../tokenizer").Tokenizer; 7 | var LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules; 8 | 9 | var Mode = function() { 10 | this.$tokenizer = new Tokenizer(new LuceneHighlightRules().getRules()); 11 | }; 12 | 13 | oop.inherits(Mode, TextMode); 14 | 15 | (function() { 16 | this.$id = "ace/mode/lucene"; 17 | }).call(Mode.prototype); 18 | 19 | exports.Mode = Mode; 20 | }); -------------------------------------------------------------------------------- /lib/ace/mode/scala.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | var oop = require("../lib/oop"); 5 | var JavaScriptMode = require("./javascript").Mode; 6 | var Tokenizer = require("../tokenizer").Tokenizer; 7 | var ScalaHighlightRules = require("./scala_highlight_rules").ScalaHighlightRules; 8 | 9 | var Mode = function() { 10 | JavaScriptMode.call(this); 11 | 12 | this.HighlightRules = ScalaHighlightRules; 13 | }; 14 | oop.inherits(Mode, JavaScriptMode); 15 | 16 | (function() { 17 | 18 | this.createWorker = function(session) { 19 | return null; 20 | }; 21 | 22 | this.$id = "ace/mode/scala"; 23 | }).call(Mode.prototype); 24 | 25 | exports.Mode = Mode; 26 | }); 27 | -------------------------------------------------------------------------------- /lib/ace/mode/space.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | var oop = require("../lib/oop"); 4 | // defines the parent mode 5 | var TextMode = require("./text").Mode; 6 | var Tokenizer = require("../tokenizer").Tokenizer; 7 | var FoldMode = require("./folding/coffee").FoldMode; 8 | // defines the language specific highlighters and folding rules 9 | var SpaceHighlightRules = require("./space_highlight_rules").SpaceHighlightRules; 10 | var Mode = function() { 11 | // set everything up 12 | var highlighter = new SpaceHighlightRules(); 13 | this.$tokenizer = new Tokenizer(highlighter.getRules()); 14 | this.foldingRules = new FoldMode(); 15 | }; 16 | oop.inherits(Mode, TextMode); 17 | (function() { 18 | 19 | this.$id = "ace/mode/space"; 20 | }).call(Mode.prototype); 21 | exports.Mode = Mode; 22 | }); 23 | -------------------------------------------------------------------------------- /lib/ace/mode/xquery/Readme.md: -------------------------------------------------------------------------------- 1 | WARNING! 2 | ============================ 3 | 4 | Files in this folder are generated automatically from the xquery.js project (https://github.com/wcandillon/xquery.js). 5 | Instructions on how to generate the XQuery parser are available at https://github.com/wcandillon/xquery.js 6 | 7 | -------------------------------------------------------------------------------- /lib/ace/snippets/abap.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./abap.snippets"); 5 | exports.scope = "abap"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/abap.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/abap.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/actionscript.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./actionscript.snippets"); 5 | exports.scope = "actionscript"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/ada.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./ada.snippets"); 5 | exports.scope = "ada"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/ada.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/ada.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/apache.snippets: -------------------------------------------------------------------------------- 1 | # Snippets for code blocks used oftenly in Apache files. 2 | # 3 | snippet dir 4 | 5 | DirectoryIndex ${2:index.html} 6 | Order Deny,Allow 7 | Deny from All 8 | 9 | # 10 | snippet filesmatch 11 | 12 | ${2} 13 | 14 | # 15 | snippet ifmodule 16 | 17 | ${2} 18 | 19 | # 20 | snippet limitexcept 21 | 22 | ${2} 23 | 24 | # 25 | snippet proxy 26 | 27 | ${2} 28 | 29 | # 30 | snippet virtualhost 31 | 32 | ServerAdmin ${3:webmaster@example.com} 33 | DocumentRoot ${4:/www/example.com} 34 | ServerName ${5:www.example.com} 35 | 36 | -------------------------------------------------------------------------------- /lib/ace/snippets/apache_conf.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./apache_conf.snippets"); 5 | exports.scope = "apache_conf"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/apache_conf.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/apache_conf.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/asciidoc.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./asciidoc.snippets"); 5 | exports.scope = "asciidoc"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/asciidoc.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/asciidoc.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/assembly_x86.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./assembly_x86.snippets"); 5 | exports.scope = "assembly_x86"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/assembly_x86.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/assembly_x86.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/autohotkey.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./autohotkey.snippets"); 5 | exports.scope = "autohotkey"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/autohotkey.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/autohotkey.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/batchfile.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./batchfile.snippets"); 5 | exports.scope = "batchfile"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/batchfile.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/batchfile.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/c9search.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./c9search.snippets"); 5 | exports.scope = "c9search"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/c9search.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/c9search.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/c_cpp.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./c_cpp.snippets"); 5 | exports.scope = "c_cpp"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/clojure.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./clojure.snippets"); 5 | exports.scope = "clojure"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/cmake.snippets: -------------------------------------------------------------------------------- 1 | snippet cmake 2 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 3 | PROJECT(${1:ProjectName}) 4 | 5 | FIND_PACKAGE(${2:LIBRARY}) 6 | 7 | INCLUDE_DIRECTORIES( 8 | ${$2_INCLUDE_DIR} 9 | ) 10 | 11 | ADD_SUBDIRECTORY(${3:src}) 12 | 13 | ADD_EXECUTABLE($1) 14 | 15 | TARGET_LINK_LIBRARIES($1 16 | ${$2_LIBRARIES} 17 | ) 18 | 19 | snippet include 20 | INCLUDE_DIRECTORIES( 21 | ${${1:INCLUDE_DIR}} 22 | ) 23 | 24 | snippet find 25 | FIND_PACKAGE(${1:LIBRARY}) 26 | 27 | snippet glob 28 | FILE(GLOB ${1:SRCS} *.${2:cpp}) 29 | 30 | snippet subdir 31 | ADD_SUBDIRECTORY(${1:src}) 32 | 33 | snippet lib 34 | ADD_LIBRARY(${1:lib} ${2:STATIC} 35 | ${${3:SRCS}} 36 | ) 37 | 38 | snippet link 39 | TARGET_LINK_LIBRARIES(${1:bin} 40 | ${2:somelib} 41 | ) 42 | 43 | snippet bin 44 | ADD_EXECUTABLE(${1:bin}) 45 | 46 | snippet set 47 | SET(${1:var} ${2:val}) 48 | 49 | snippet dep 50 | ADD_DEPENDENCIES(${1:target} 51 | ${2:dep} 52 | ) 53 | 54 | snippet props 55 | SET_TARGET_PROPERTIES(${1:target} 56 | ${2:PROPERTIES} ${3:COMPILE_FLAGS} 57 | ${4:"-O3 -Wall -pedantic"} 58 | ) 59 | -------------------------------------------------------------------------------- /lib/ace/snippets/cobol.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./cobol.snippets"); 5 | exports.scope = "cobol"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/cobol.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/cobol.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/coffee.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./coffee.snippets"); 5 | exports.scope = "coffee"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/coldfusion.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./coldfusion.snippets"); 5 | exports.scope = "coldfusion"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/coldfusion.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/coldfusion.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/csharp.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./csharp.snippets"); 5 | exports.scope = "csharp"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/csharp.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/csharp.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/css.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./css.snippets"); 5 | exports.scope = "css"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/curly.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./curly.snippets"); 5 | exports.scope = "curly"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/curly.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/curly.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/d.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./d.snippets"); 5 | exports.scope = "d"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/d.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/d.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/dart.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./dart.snippets"); 5 | exports.scope = "dart"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/diff.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./diff.snippets"); 5 | exports.scope = "diff"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/diff.snippets: -------------------------------------------------------------------------------- 1 | # DEP-3 (http://dep.debian.net/deps/dep3/) style patch header 2 | snippet header DEP-3 style header 3 | Description: ${1} 4 | Origin: ${2:vendor|upstream|other}, ${3:url of the original patch} 5 | Bug: ${4:url in upstream bugtracker} 6 | Forwarded: ${5:no|not-needed|url} 7 | Author: ${6:`g:snips_author`} 8 | Reviewed-by: ${7:name and email} 9 | Last-Update: ${8:`strftime("%Y-%m-%d")`} 10 | Applied-Upstream: ${9:upstream version|url|commit} 11 | 12 | -------------------------------------------------------------------------------- /lib/ace/snippets/django.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./django.snippets"); 5 | exports.scope = "django"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/dot.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./dot.snippets"); 5 | exports.scope = "dot"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/dot.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/dot.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/ejs.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./ejs.snippets"); 5 | exports.scope = "ejs"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/ejs.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/ejs.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/erlang.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./erlang.snippets"); 5 | exports.scope = "erlang"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/falcon.snippets: -------------------------------------------------------------------------------- 1 | snippet #! 2 | #!/usr/bin/env falcon 3 | 4 | # Import 5 | snippet imp 6 | import ${1:module} 7 | 8 | # Function 9 | snippet fun 10 | function ${2:function_name}(${3}) 11 | ${4:/* code */} 12 | end 13 | 14 | # Class 15 | snippet class 16 | class ${1:class_name}(${2:class_params}) 17 | ${3:/* members/methods */} 18 | end 19 | 20 | # If 21 | snippet if 22 | if ${1:condition} 23 | ${2:/* code */} 24 | end 25 | 26 | # If else 27 | snippet ife 28 | if ${1:condition} 29 | ${2:/* code */} 30 | else 31 | ${1} 32 | end 33 | 34 | # If else if 35 | snippet elif 36 | elif ${1:condition} 37 | ${2:/* code */} 38 | 39 | # Switch case 40 | snippet switch 41 | switch ${1:expression} 42 | case ${2:item} 43 | case ${3:item} 44 | default 45 | end 46 | 47 | # Select 48 | snippet select 49 | select ${1:variable} 50 | case ${2:TypeSpec} 51 | case ${3:TypeSpec} 52 | default 53 | end 54 | 55 | # For/in Loop 56 | snippet forin 57 | for ${1:element} in ${2:container} 58 | ${3:/* code */} 59 | end 60 | 61 | # For/to Loop 62 | snippet forto 63 | for ${1:lowerbound} to ${2:upperbound} 64 | ${3:/* code */} 65 | end 66 | 67 | # While Loop 68 | snippet while 69 | while ${1:conidition} 70 | ${2:/* code */} 71 | end 72 | -------------------------------------------------------------------------------- /lib/ace/snippets/forth.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./forth.snippets"); 5 | exports.scope = "forth"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/forth.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/forth.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/ftl.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./ftl.snippets"); 5 | exports.scope = "ftl"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/ftl.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/ftl.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/glsl.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./glsl.snippets"); 5 | exports.scope = "glsl"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/glsl.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/glsl.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/golang.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./golang.snippets"); 5 | exports.scope = "golang"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/golang.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/golang.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/groovy.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./groovy.snippets"); 5 | exports.scope = "groovy"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/groovy.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/groovy.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/haml.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./haml.snippets"); 5 | exports.scope = "haml"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/haml.snippets: -------------------------------------------------------------------------------- 1 | snippet t 2 | %table 3 | %tr 4 | %th 5 | ${1:headers} 6 | %tr 7 | %td 8 | ${2:headers} 9 | snippet ul 10 | %ul 11 | %li 12 | ${1:item} 13 | %li 14 | snippet =rp 15 | = render :partial => '${1:partial}' 16 | snippet =rpl 17 | = render :partial => '${1:partial}', :locals => {} 18 | snippet =rpc 19 | = render :partial => '${1:partial}', :collection => @$1 20 | 21 | -------------------------------------------------------------------------------- /lib/ace/snippets/handlebars.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./handlebars.snippets"); 5 | exports.scope = "handlebars"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/handlebars.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/handlebars.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/haskell.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./haskell.snippets"); 5 | exports.scope = "haskell"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/haxe.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./haxe.snippets"); 5 | exports.scope = "haxe"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/haxe.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/haxe.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/html.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./html.snippets"); 5 | exports.scope = "html"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/html_ruby.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./html_ruby.snippets"); 5 | exports.scope = "html_ruby"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/html_ruby.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/html_ruby.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/htmltornado.snippets: -------------------------------------------------------------------------------- 1 | # Generic tags 2 | 3 | snippet { 4 | {{ ${1} }} 5 | 6 | # Template tags 7 | 8 | snippet extends 9 | {% extends "${1:base.html}" %} 10 | snippet autoescape 11 | {% autoescape ${1:xhtml_escape | None} %} 12 | snippet apply 13 | {% apply ${1:function} %} 14 | ${2} 15 | {% end %} 16 | snippet block 17 | {% block ${1} %} 18 | ${2} 19 | {% end %} 20 | snippet for 21 | {% for ${1:item} in ${2} %} 22 | ${3} 23 | {% end %} 24 | snippet from 25 | {% from ${1:x} import ${2:y} %} 26 | snippet if 27 | {% if ${1:condition} %} 28 | ${2} 29 | {% end %} 30 | snippet elif 31 | {% elif ${1:condition} %} 32 | snippet else 33 | {% else %} 34 | snippet import 35 | {% import ${1:module} %} 36 | snippet include 37 | {% include "${1:filename}" %} 38 | snippet module 39 | {% module ${1:expression} %} 40 | snippet raw 41 | {% raw ${1:expression} %} 42 | snippet set 43 | {% set ${1:x} = ${2:y} %} 44 | snippet try 45 | {% try %} 46 | ${1} 47 | {% except %} 48 | ${2} 49 | {% finallly %} 50 | ${3} 51 | {% end %} 52 | snippet while 53 | {% while ${1:condition} %} 54 | ${2} 55 | {% end %} 56 | -------------------------------------------------------------------------------- /lib/ace/snippets/ini.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./ini.snippets"); 5 | exports.scope = "ini"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/ini.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/ini.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/jade.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./jade.snippets"); 5 | exports.scope = "jade"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/jade.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/jade.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/java.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./java.snippets"); 5 | exports.scope = "java"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/javascript.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./javascript-jquery.snippets") 5 | + "\n" 6 | + require("../requirejs/text!./javascript.snippets"); 7 | exports.scope = "javascript"; 8 | 9 | }); 10 | -------------------------------------------------------------------------------- /lib/ace/snippets/json.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./json.snippets"); 5 | exports.scope = "json"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/json.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/json.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/jsoniq.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./jsoniq.snippets"); 5 | exports.scope = "jsoniq"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/jsoniq.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/jsoniq.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/jsp.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./jsp.snippets"); 5 | exports.scope = "jsp"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/jsx.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./jsx.snippets"); 5 | exports.scope = "jsx"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/jsx.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/jsx.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/julia.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./julia.snippets"); 5 | exports.scope = "julia"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/julia.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/julia.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/latex.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./latex.snippets"); 5 | exports.scope = "latex"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/latex.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/latex.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/ledger.snippets: -------------------------------------------------------------------------------- 1 | # Ledger 2 | snippet ent 3 | `strftime("%Y/%m/%d")` ${1:transaction} 4 | ${2:account} ${3:value} 5 | ${4:account} 6 | -------------------------------------------------------------------------------- /lib/ace/snippets/less.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./less.snippets"); 5 | exports.scope = "less"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/less.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/less.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/liquid.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./liquid.snippets"); 5 | exports.scope = "liquid"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/liquid.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/liquid.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/lisp.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./lisp.snippets"); 5 | exports.scope = "lisp"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/lisp.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/lisp.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/livescript.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./livescript.snippets"); 5 | exports.scope = "livescript"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/livescript.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/livescript.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/logiql.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./logiql.snippets"); 5 | exports.scope = "logiql"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/logiql.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/logiql.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/lsl.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./lsl.snippets"); 5 | exports.scope = "lsl"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/lua.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./lua.snippets"); 5 | exports.scope = "lua"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/lua.snippets: -------------------------------------------------------------------------------- 1 | snippet #! 2 | #!/usr/bin/env lua 3 | $1 4 | snippet local 5 | local ${1:x} = ${2:1} 6 | snippet fun 7 | function ${1:fname}(${2:...}) 8 | ${3:-- body} 9 | end 10 | snippet for 11 | for ${1:i}=${2:1},${3:10} do 12 | ${4:print(i)} 13 | end 14 | snippet forp 15 | for ${1:i},${2:v} in pairs(${3:table_name}) do 16 | ${4:-- body} 17 | end 18 | snippet fori 19 | for ${1:i},${2:v} in ipairs(${3:table_name}) do 20 | ${4:-- body} 21 | end 22 | -------------------------------------------------------------------------------- /lib/ace/snippets/luapage.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./luapage.snippets"); 5 | exports.scope = "luapage"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/luapage.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/luapage.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/lucene.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./lucene.snippets"); 5 | exports.scope = "lucene"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/lucene.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/lucene.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/makefile.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./makefile.snippets"); 5 | exports.scope = "makefile"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/makefile.snippets: -------------------------------------------------------------------------------- 1 | snippet ifeq 2 | ifeq (${1:cond0},${2:cond1}) 3 | ${3:code} 4 | endif 5 | -------------------------------------------------------------------------------- /lib/ace/snippets/mako.snippets: -------------------------------------------------------------------------------- 1 | snippet def 2 | <%def name="${1:name}"> 3 | ${2:} 4 | 5 | snippet call 6 | <%call expr="${1:name}"> 7 | ${2:} 8 | 9 | snippet doc 10 | <%doc> 11 | ${1:} 12 | 13 | snippet text 14 | <%text> 15 | ${1:} 16 | 17 | snippet for 18 | % for ${1:i} in ${2:iter}: 19 | ${3:} 20 | % endfor 21 | snippet if if 22 | % if ${1:condition}: 23 | ${2:} 24 | % endif 25 | snippet if if/else 26 | % if ${1:condition}: 27 | ${2:} 28 | % else: 29 | ${3:} 30 | % endif 31 | snippet try 32 | % try: 33 | ${1:} 34 | % except${2:}: 35 | ${3:pass} 36 | % endtry 37 | snippet wh 38 | % while ${1:}: 39 | ${2:} 40 | % endwhile 41 | snippet $ 42 | ${ ${1:} } 43 | snippet <% 44 | <% ${1:} %> 45 | snippet 47 | snippet inherit 48 | <%inherit file="${1:filename}" /> 49 | snippet include 50 | <%include file="${1:filename}" /> 51 | snippet namespace 52 | <%namespace file="${1:name}" /> 53 | snippet page 54 | <%page args="${1:}" /> 55 | -------------------------------------------------------------------------------- /lib/ace/snippets/markdown.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./markdown.snippets"); 5 | exports.scope = "markdown"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/matlab.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./matlab.snippets"); 5 | exports.scope = "matlab"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/matlab.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/matlab.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/mushcode.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./mushcode.snippets"); 5 | exports.scope = "mushcode"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/mushcode.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/mushcode.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/mushcode_high_rules.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./mushcode_high_rules.snippets"); 5 | exports.scope = "mushcode_high_rules"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/mushcode_high_rules.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/mushcode_high_rules.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/mysql.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./mysql.snippets"); 5 | exports.scope = "mysql"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/mysql.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/mysql.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/nix.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./nix.snippets"); 5 | exports.scope = "nix"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/nix.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/nix.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/objectivec.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./objectivec.snippets"); 5 | exports.scope = "objectivec"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/objectivec.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/objectivec.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/ocaml.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./ocaml.snippets"); 5 | exports.scope = "ocaml"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/ocaml.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/ocaml.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/pascal.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./pascal.snippets"); 5 | exports.scope = "pascal"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/pascal.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/pascal.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/perl.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./perl.snippets"); 5 | exports.scope = "perl"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/pgsql.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./pgsql.snippets"); 5 | exports.scope = "pgsql"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/pgsql.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/pgsql.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/php.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./php.snippets"); 5 | exports.scope = "php"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/powershell.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./powershell.snippets"); 5 | exports.scope = "powershell"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/powershell.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/powershell.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/prolog.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./prolog.snippets"); 5 | exports.scope = "prolog"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/prolog.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/prolog.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/properties.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./properties.snippets"); 5 | exports.scope = "properties"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/properties.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/properties.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/protobuf.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = ""; 5 | exports.scope = "protobuf"; 6 | 7 | }); -------------------------------------------------------------------------------- /lib/ace/snippets/python.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./python.snippets"); 5 | exports.scope = "python"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/r.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./r.snippets"); 5 | exports.scope = "r"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/rdoc.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./rdoc.snippets"); 5 | exports.scope = "rdoc"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/rdoc.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/rdoc.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/rhtml.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./rhtml.snippets"); 5 | exports.scope = "rhtml"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/rhtml.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/rhtml.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/rst.snippets: -------------------------------------------------------------------------------- 1 | # rst 2 | 3 | snippet : 4 | :${1:field name}: ${2:field body} 5 | snippet * 6 | *${1:Emphasis}* 7 | snippet ** 8 | **${1:Strong emphasis}** 9 | snippet _ 10 | \`${1:hyperlink-name}\`_ 11 | .. _\`$1\`: ${2:link-block} 12 | snippet = 13 | ${1:Title} 14 | =====${2:=} 15 | ${3} 16 | snippet - 17 | ${1:Title} 18 | -----${2:-} 19 | ${3} 20 | snippet cont: 21 | .. contents:: 22 | 23 | -------------------------------------------------------------------------------- /lib/ace/snippets/ruby.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./ruby.snippets"); 5 | exports.scope = "ruby"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/rust.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./rust.snippets"); 5 | exports.scope = "rust"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/rust.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/rust.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/sass.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./sass.snippets"); 5 | exports.scope = "sass"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/sass.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/sass.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/scad.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./scad.snippets"); 5 | exports.scope = "scad"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/scad.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/scad.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/scala.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./scala.snippets"); 5 | exports.scope = "scala"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/scala.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/scala.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/scheme.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./scheme.snippets"); 5 | exports.scope = "scheme"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/scheme.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/scheme.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/scss.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./scss.snippets"); 5 | exports.scope = "scss"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/scss.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/scss.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/sh.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./sh.snippets"); 5 | exports.scope = "sh"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/sjs.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./sjs.snippets"); 5 | exports.scope = "sjs"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/sjs.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/sjs.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/snippets.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./snippets.snippets"); 5 | exports.scope = "snippets"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/snippets.snippets: -------------------------------------------------------------------------------- 1 | # snippets for making snippets :) 2 | snippet snip 3 | snippet ${1:trigger} 4 | ${2} 5 | snippet msnip 6 | snippet ${1:trigger} ${2:description} 7 | ${3} 8 | snippet v 9 | {VISUAL} 10 | -------------------------------------------------------------------------------- /lib/ace/snippets/soy_template.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./soy_template.snippets"); 5 | exports.scope = "soy_template"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/soy_template.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/soy_template.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/sql.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./sql.snippets"); 5 | exports.scope = "sql"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/sql.snippets: -------------------------------------------------------------------------------- 1 | snippet tbl 2 | create table ${1:table} ( 3 | ${2:columns} 4 | ); 5 | snippet col 6 | ${1:name} ${2:type} ${3:default ''} ${4:not null} 7 | snippet ccol 8 | ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null} 9 | snippet ncol 10 | ${1:name} number ${3:default 0} ${4:not null} 11 | snippet dcol 12 | ${1:name} date ${3:default sysdate} ${4:not null} 13 | snippet ind 14 | create index ${3:$1_$2} on ${1:table}(${2:column}); 15 | snippet uind 16 | create unique index ${1:name} on ${2:table}(${3:column}); 17 | snippet tblcom 18 | comment on table ${1:table} is '${2:comment}'; 19 | snippet colcom 20 | comment on column ${1:table}.${2:column} is '${3:comment}'; 21 | snippet addcol 22 | alter table ${1:table} add (${2:column} ${3:type}); 23 | snippet seq 24 | create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1}; 25 | snippet s* 26 | select * from ${1:table} 27 | -------------------------------------------------------------------------------- /lib/ace/snippets/stylus.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./stylus.snippets"); 5 | exports.scope = "stylus"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/stylus.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/stylus.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/svg.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./svg.snippets"); 5 | exports.scope = "svg"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/svg.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/svg.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/tcl.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./tcl.snippets"); 5 | exports.scope = "tcl"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/tex.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./tex.snippets"); 5 | exports.scope = "tex"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/text.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./text.snippets"); 5 | exports.scope = "text"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/text.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/text.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/textile.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./textile.snippets"); 5 | exports.scope = "textile"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/textile.snippets: -------------------------------------------------------------------------------- 1 | # Jekyll post header 2 | snippet header 3 | --- 4 | title: ${1:title} 5 | layout: post 6 | date: ${2:date} ${3:hour:minute:second} -05:00 7 | --- 8 | 9 | # Image 10 | snippet img 11 | !${1:url}(${2:title}):${3:link}! 12 | 13 | # Table 14 | snippet | 15 | |${1}|${2} 16 | 17 | # Link 18 | snippet link 19 | "${1:link text}":${2:url} 20 | 21 | # Acronym 22 | snippet ( 23 | (${1:Expand acronym})${2} 24 | 25 | # Footnote 26 | snippet fn 27 | [${1:ref number}] ${3} 28 | 29 | fn$1. ${2:footnote} 30 | 31 | -------------------------------------------------------------------------------- /lib/ace/snippets/tmsnippet.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/tmsnippet.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/toml.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./toml.snippets"); 5 | exports.scope = "toml"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/toml.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/toml.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/twig.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./twig.snippets"); 5 | exports.scope = "twig"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/twig.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/twig.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/typescript.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./typescript.snippets"); 5 | exports.scope = "typescript"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/typescript.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/typescript.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/vbscript.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./vbscript.snippets"); 5 | exports.scope = "vbscript"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/vbscript.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/vbscript.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/velocity.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./velocity.snippets"); 5 | exports.scope = "velocity"; 6 | exports.includeScopes = ["html", "javascript", "css"]; 7 | 8 | }); 9 | -------------------------------------------------------------------------------- /lib/ace/snippets/velocity.snippets: -------------------------------------------------------------------------------- 1 | # macro 2 | snippet #macro 3 | #macro ( ${1:macroName} ${2:\$var1, [\$var2, ...]} ) 4 | ${3:## macro code} 5 | #end 6 | # foreach 7 | snippet #foreach 8 | #foreach ( ${1:\$item} in ${2:\$collection} ) 9 | ${3:## foreach code} 10 | #end 11 | # if 12 | snippet #if 13 | #if ( ${1:true} ) 14 | ${0} 15 | #end 16 | # if ... else 17 | snippet #ife 18 | #if ( ${1:true} ) 19 | ${2} 20 | #else 21 | ${0} 22 | #end 23 | #import 24 | snippet #import 25 | #import ( "${1:path/to/velocity/format}" ) 26 | # set 27 | snippet #set 28 | #set ( $${1:var} = ${0} ) 29 | -------------------------------------------------------------------------------- /lib/ace/snippets/verilog.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./verilog.snippets"); 5 | exports.scope = "verilog"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/verilog.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/verilog.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/vhdl.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./vhdl.snippets"); 5 | exports.scope = "vhdl"; 6 | 7 | }); -------------------------------------------------------------------------------- /lib/ace/snippets/vhdl.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/vhdl.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/xml.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./xml.snippets"); 5 | exports.scope = "xml"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/xml.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/xml.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/xquery.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./xquery.snippets"); 5 | exports.scope = "xquery"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/xquery.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/xquery.snippets -------------------------------------------------------------------------------- /lib/ace/snippets/yaml.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./yaml.snippets"); 5 | exports.scope = "yaml"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/yaml.snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/creationix/ace/a8ba1e06d9a33912dc195555ec1697a9a1f2240b/lib/ace/snippets/yaml.snippets -------------------------------------------------------------------------------- /lib/ace/test/asyncjs/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * async.js 3 | * Copyright(c) 2010 Fabian Jakobs 4 | * MIT Licensed 5 | */ 6 | 7 | define(function(require, exports, module) { 8 | 9 | module.exports = require("./async") 10 | module.exports.test = require("./test") 11 | require("./utils") 12 | 13 | }) 14 | -------------------------------------------------------------------------------- /lib/ace/test/mockdom.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var dom = require('jsdom/lib/jsdom/level2/html').dom.level2.html; 4 | var browser = require('jsdom/lib/jsdom/browser/index').windowAugmentation(dom); 5 | 6 | global.document = browser.document; 7 | global.window = browser.window; 8 | global.self = browser.self; 9 | global.navigator = browser.navigator; 10 | global.location = browser.location; 11 | -------------------------------------------------------------------------------- /lib/ace/test/tests.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ace Unit Tests 7 | 21 | 22 | 23 | 24 |
    25 | 26 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace", 3 | "description": "Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE", 4 | "version": "1.0.0", 5 | "homepage" : "http://github.com/ajaxorg/ace", 6 | "engines": {"node": ">= 0.6.0"}, 7 | "author": "Fabian Jakobs ", 8 | "main": "lib/ace", 9 | "repository" : { 10 | "type" : "git", 11 | "url" : "http://github.com/ajaxorg/ace.git" 12 | }, 13 | "dependencies": { 14 | "mime": "1.2.x" 15 | }, 16 | "devDependencies": { 17 | "asyncjs": "0.0.x", 18 | "jsdom": "0.2.x", 19 | "amd-loader": "~0.0.4", 20 | "dryice": "0.4.10" 21 | }, 22 | "mappings": { 23 | "ace": "." 24 | }, 25 | "licenses": [{ 26 | "type": "BSD New", 27 | "url": "http://opensource.org/licenses/BSD-3-Clause" 28 | }], 29 | "directories": { 30 | "lib": "lib/ace" 31 | }, 32 | "scripts": { 33 | "test": "node lib/ace/test/all.js" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tool/lib.js: -------------------------------------------------------------------------------- 1 | var plist = require("plist"); 2 | var util = require("util"); 3 | exports.parsePlist = function(themeXml, callback) { 4 | var result = "" 5 | plist.parseString(themeXml, function(_, theme) { 6 | result = theme[0]; 7 | callback && callback(theme[0]); 8 | }); 9 | return result; 10 | } 11 | 12 | exports.formatJSON = function(object, initialIndent) { 13 | return util.inspect(object, false, 40).replace(/^/gm, initialIndent||"") 14 | 15 | } 16 | 17 | 18 | exports.fillTemplate = function(template, replacements) { 19 | return template.replace(/%(.+?)%/g, function(str, m) { 20 | return replacements[m] || ""; 21 | }); 22 | } 23 | 24 | exports.hyphenate = function(str) { 25 | return str.replace(/([A-Z])/g, "-$1").replace(/_/g, "-").toLowerCase(); 26 | } 27 | 28 | exports.quoteString = function(str) { 29 | return '"' + str.replace(/\\/, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\\n") + '"'; 30 | } 31 | 32 | 33 | exports.restoreJSONComments = function(objStr) { 34 | return objStr.replace(/^(\s*)comment: '(.*)'/gm, function(_, i, c) { 35 | return i + "//" + c.replace(/\\n(\\t)*/g, "\n" + i + "//") + "\n" + i 36 | }).replace(/ \/\/ ERROR/g, '", // ERROR'); 37 | } 38 | 39 | -------------------------------------------------------------------------------- /tool/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-tools", 3 | "version": "0.1.0", 4 | "dependencies": { 5 | "plist": "", 6 | "css-parse": "1.0.3", 7 | "css-stringify": "1.0.3" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tool/snippets.tmpl.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./%modeName%.snippets"); 5 | exports.scope = "%modeName%"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /tool/theme.tmpl.css: -------------------------------------------------------------------------------- 1 | /* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: %uuid%) */ 2 | 3 | .%cssClass% .ace_gutter { 4 | background: #e8e8e8; 5 | color: #333; 6 | } 7 | 8 | .%cssClass% .ace_print-margin { 9 | width: 1px; 10 | background: %printMargin%; 11 | } 12 | 13 | .%cssClass% { 14 | background-color: %background%; 15 | color: %foreground%; 16 | } 17 | 18 | .%cssClass% .ace_cursor { 19 | color: %cursor%; 20 | } 21 | 22 | .%cssClass% .ace_marker-layer .ace_selection { 23 | background: %selection%; 24 | } 25 | 26 | .%cssClass%.ace_multiselect .ace_selection.ace_start { 27 | box-shadow: 0 0 3px 0px %background%; 28 | border-radius: 2px; 29 | } 30 | 31 | .%cssClass% .ace_marker-layer .ace_step { 32 | background: %step%; 33 | } 34 | 35 | .%cssClass% .ace_marker-layer .ace_bracket { 36 | margin: -1px 0 0 -1px; 37 | border: 1px solid %bracket%; 38 | } 39 | 40 | .%cssClass% .ace_marker-layer .ace_active-line { 41 | background: %active_line%; 42 | } 43 | 44 | .%cssClass% .ace_gutter-active-line { 45 | background-color: %active_line%; 46 | } 47 | 48 | .%cssClass% .ace_marker-layer .ace_selected-word { 49 | %selected_word_highlight% 50 | } 51 | 52 | .%cssClass% .ace_fold { 53 | background-color: %fold%; 54 | border-color: %foreground%; 55 | } 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /tool/tmthemes/LICENSE: -------------------------------------------------------------------------------- 1 | If not otherwise specified (see below), files in this directory fall under the following license: 2 | 3 | Permission to copy, use, modify, sell and distribute this 4 | software is granted. This software is provided "as is" without 5 | express or implied warranty, and with no claim as to its 6 | suitability for any purpose. 7 | 8 | An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”. -------------------------------------------------------------------------------- /tool/wrap_keyword_regexp.js: -------------------------------------------------------------------------------- 1 | // a little script to turn giant keyword regexps into 2 | // something that ace can use; for example: 3 | // 4 | // \b(NS(Rect(ToCGRect|FromCGRect)|MakeCollectable|S(tringFromProtocol))\b 5 | // 6 | // into 7 | // 8 | // (?:\\b)(NS(?:Rect(?:ToCGRect|FromCGRect)|MakeCollectable|S(?:tringFromProtocol))(?:\b) 9 | 10 | var inputString = process.argv.splice(2)[0]; 11 | 12 | // solve word boundaries 13 | var outputString = inputString.replace(/\\b/g, "(?:\\\\b)"); 14 | 15 | // I apparently need to do this, instead of something clever, because the regexp 16 | // lastIndex is screwing up my positional 17 | outputString = outputString.split("b)("); 18 | 19 | outputString = outputString[0] + "b)(" + outputString[1].replace(/\(([^\?])/g, "(?:$1"); 20 | 21 | console.log("\n\n" + outputString + "\n\n"); -------------------------------------------------------------------------------- /version.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var x; 3 | eval("x= " + require("fs").readFileSync(__dirname + "/package.json")) 4 | console.log(x.version) --------------------------------------------------------------------------------