├── CNAME ├── lib └── ace │ ├── snippets │ ├── d.snippets │ ├── io.snippets │ ├── abap.snippets │ ├── ada.snippets │ ├── cirru.snippets │ ├── cobol.snippets │ ├── csharp.snippets │ ├── curly.snippets │ ├── dot.snippets │ ├── eiffel.snippets │ ├── ejs.snippets │ ├── elixir.snippets │ ├── elm.snippets │ ├── forth.snippets │ ├── ftl.snippets │ ├── gcode.snippets │ ├── gherkin.snippets │ ├── glsl.snippets │ ├── golang.snippets │ ├── groovy.snippets │ ├── haxe.snippets │ ├── ini.snippets │ ├── jack.snippets │ ├── jade.snippets │ ├── json.snippets │ ├── jsx.snippets │ ├── julia.snippets │ ├── latex.snippets │ ├── lean.snippets │ ├── less.snippets │ ├── liquid.snippets │ ├── lisp.snippets │ ├── logiql.snippets │ ├── luapage.snippets │ ├── lucene.snippets │ ├── matlab.snippets │ ├── mel.snippets │ ├── mysql.snippets │ ├── nix.snippets │ ├── ocaml.snippets │ ├── pascal.snippets │ ├── pgsql.snippets │ ├── praat.snippets │ ├── prolog.snippets │ ├── rdoc.snippets │ ├── rhtml.snippets │ ├── rust.snippets │ ├── sass.snippets │ ├── scad.snippets │ ├── scala.snippets │ ├── scheme.snippets │ ├── scss.snippets │ ├── sjs.snippets │ ├── smarty.snippets │ ├── space.snippets │ ├── stylus.snippets │ ├── svg.snippets │ ├── text.snippets │ ├── toml.snippets │ ├── twig.snippets │ ├── vala.snippets │ ├── verilog.snippets │ ├── vhdl.snippets │ ├── xml.snippets │ ├── yaml.snippets │ ├── _all_modes.snippets │ ├── all_modes.snippets │ ├── apache_conf.snippets │ ├── applescript.snippets │ ├── asciidoc.snippets │ ├── assembly_x86.snippets │ ├── autohotkey.snippets │ ├── batchfile.snippets │ ├── c9search.snippets │ ├── coldfusion.snippets │ ├── dockerfile.snippets │ ├── gitignore.snippets │ ├── handlebars.snippets │ ├── html_elixir.snippets │ ├── html_ruby.snippets │ ├── livescript.snippets │ ├── mushcode.snippets │ ├── objectivec.snippets │ ├── plain_text.snippets │ ├── powershell.snippets │ ├── properties.snippets │ ├── protobuf.snippets │ ├── soy_template.snippets │ ├── tmsnippet.snippets │ ├── typescript.snippets │ ├── vbscript.snippets │ ├── mushcode_high_rules.snippets │ ├── razor.snippets │ ├── makefile.snippets │ ├── protobuf.js │ ├── ledger.snippets │ ├── d.js │ ├── dummy.js │ ├── elixir.js │ ├── nsis.js │ ├── r.js │ ├── sh.js │ ├── vhdl.js │ ├── abap.js │ ├── abc.js │ ├── ada.js │ ├── css.js │ ├── dart.js │ ├── diff.js │ ├── dot.js │ ├── dummy_syntax.js │ ├── ejs.js │ ├── elm.js │ ├── ftl.js │ ├── glsl.js │ ├── haml.js │ ├── haxe.js │ ├── html.js │ ├── ini.js │ ├── jack.js │ ├── jade.js │ ├── java.js │ ├── json.js │ ├── jsp.js │ ├── jsx.js │ ├── lean.js │ ├── less.js │ ├── lisp.js │ ├── lsl.js │ ├── lua.js │ ├── maze.js │ ├── mel.js │ ├── nix.js │ ├── perl.js │ ├── php.js │ ├── rdoc.js │ ├── ruby.js │ ├── rust.js │ ├── sass.js │ ├── scad.js │ ├── scss.js │ ├── sjs.js │ ├── sql.js │ ├── svg.js │ ├── tcl.js │ ├── tex.js │ ├── text.js │ ├── toml.js │ ├── twig.js │ ├── xml.js │ ├── yaml.js │ ├── c_cpp.js │ ├── cirru.js │ ├── cobol.js │ ├── curly.js │ ├── forth.js │ ├── gcode.js │ ├── julia.js │ ├── latex.js │ ├── maze.snippets │ ├── mysql.js │ ├── ocaml.js │ ├── pgsql.js │ ├── praat.js │ ├── razor.js │ ├── rhtml.js │ ├── scala.js │ ├── space.js │ ├── clojure.js │ ├── coffee.js │ ├── csharp.js │ ├── django.js │ ├── drools.js │ ├── eiffel.js │ ├── erlang.js │ ├── gherkin.js │ ├── golang.js │ ├── groovy.js │ ├── haskell.js │ ├── jsoniq.js │ ├── liquid.js │ ├── logiql.js │ ├── luapage.js │ ├── lucene.js │ ├── matlab.js │ ├── pascal.js │ ├── prolog.js │ ├── python.js │ ├── scheme.js │ ├── smarty.js │ ├── stylus.js │ ├── textile.js │ ├── verilog.js │ ├── wollok.js │ ├── xquery.js │ ├── all_modes.js │ ├── asciidoc.js │ ├── batchfile.js │ ├── c9search.js │ ├── gitignore.js │ ├── gobstones.js │ ├── html_ruby.js │ ├── makefile.js │ ├── markdown.js │ ├── mushcode.js │ ├── snippets.js │ ├── sqlserver.js │ ├── vbscript.js │ ├── _all_modes.js │ ├── autohotkey.js │ ├── coldfusion.js │ ├── dockerfile.js │ ├── handlebars.js │ ├── javascript.js │ ├── livescript.js │ ├── objectivec.js │ ├── plain_text.js │ ├── powershell.js │ ├── properties.js │ ├── typescript.js │ ├── actionscript.js │ ├── apache_conf.js │ ├── applescript.js │ ├── assembly_x86.js │ ├── html_elixir.js │ ├── soy_template.js │ ├── snippets.snippets │ ├── mushcode_high_rules.js │ ├── velocity.js │ ├── drools.snippets │ ├── haml.snippets │ ├── rst.snippets │ ├── diff.snippets │ ├── lua.snippets │ ├── textile.snippets │ ├── velocity.snippets │ ├── gobstones.snippets │ ├── apache.snippets │ ├── sql.snippets │ ├── abc.snippets │ ├── mako.snippets │ ├── cmake.snippets │ └── htmltornado.snippets │ ├── mode │ ├── _test │ │ ├── text_livescript.txt │ │ ├── tokens_cobol.json │ │ ├── tokens_mysql.json │ │ ├── tokens_jsoniq.json │ │ ├── tokens_livescript.json │ │ ├── package.json │ │ ├── text_html.txt │ │ ├── text_xml.txt │ │ ├── text_coldfusion.txt │ │ ├── text_curly.txt │ │ ├── Readme.md │ │ ├── tokens_razor.json │ │ ├── text_gobstones.txt │ │ ├── text_php.txt │ │ ├── text_wollok.txt │ │ ├── tokens_gitignore.json │ │ ├── text_markdown.txt │ │ ├── text_lucene.txt │ │ ├── tokens_ini.json │ │ ├── tokens_csharp.json │ │ ├── tokens_ada.json │ │ ├── text_ruby.txt │ │ ├── tokens_xquery.json │ │ └── tokens_jsx.json │ ├── xquery │ │ └── Readme.md │ ├── lucene.js │ ├── gitignore.js │ ├── java.js │ ├── groovy.js │ ├── scala.js │ ├── luapage.js │ ├── wollok.js │ ├── gobstones.js │ ├── space.js │ ├── latex.js │ ├── handlebars.js │ ├── gitignore_highlight_rules.js │ └── razor.js │ ├── css │ ├── expand-marker.png │ └── codefolding-fold-button-states.png │ ├── test │ ├── asyncjs │ │ └── index.js │ ├── mockdom.js │ └── tests.html │ ├── theme │ └── gruvbox.js │ ├── lib │ └── fixoldbrowsers.js │ └── ext │ └── static.css ├── demo ├── kitchen-sink │ ├── docs │ │ ├── cobol.CBL │ │ ├── jsoniq.jq │ │ ├── mysql.mysql │ │ ├── lucene.lucene │ │ ├── tsx.tsx │ │ ├── ini.ini │ │ ├── csharp.cs │ │ ├── razor.cshtml │ │ ├── asciidoc.asciidoc │ │ ├── coldfusion.cfm │ │ ├── ada.ada │ │ ├── xquery.xq │ │ ├── javascript.js │ │ ├── sql.sql │ │ ├── io.io │ │ ├── jsx.jsx │ │ ├── .gitignore │ │ ├── handlebars.hbs │ │ ├── smarty.smarty │ │ ├── lean.lean │ │ ├── htaccess │ │ ├── julia.jl │ │ ├── matlab.matlab │ │ ├── verilog.v │ │ ├── batchfile.bat │ │ ├── css.css │ │ ├── protobuf.proto │ │ ├── curly.curly │ │ ├── d.d │ │ ├── html.html │ │ ├── scad.scad │ │ ├── php.php │ │ ├── java.java │ │ ├── logiql.logic │ │ ├── scss.scss │ │ ├── coffee.coffee │ │ ├── gobstones.gbs │ │ ├── maze.mz │ │ ├── eiffel.e │ │ ├── Haxe.hx │ │ ├── textile.textile │ │ ├── elm.elm │ │ ├── powershell.ps1 │ │ ├── swift.swift │ │ ├── wollok.wlk │ │ ├── snippets.snippets │ │ ├── tex.tex │ │ ├── python.py │ │ ├── dart.dart │ │ ├── erlang.erl │ │ ├── prolog.plg │ │ ├── vala.vala │ │ ├── rhtml.Rhtml │ │ ├── rust.rs │ │ ├── assembly_x86.asm │ │ ├── glsl.glsl │ │ ├── haskell.hs │ │ ├── ocaml.ml │ │ ├── nsis.nsi │ │ ├── html_ruby.erb │ │ ├── scheme.scm │ │ ├── gcode.gcode │ │ ├── properties.properties │ │ ├── less.less │ │ ├── ruby.rb │ │ ├── cirru.cirru │ │ ├── html_elixir.eex │ │ ├── lisp.lisp │ │ ├── r.r │ │ ├── toml.toml │ │ ├── sjs.sjs │ │ ├── jade.jade │ │ ├── golang.go │ │ ├── gherkin.feature │ │ ├── mask.mask │ │ ├── perl.pl │ │ ├── fortran.f90 │ │ ├── clojure.clj │ │ ├── autohotkey.ahk │ │ ├── ejs.ejs │ │ ├── elixir.ex │ │ ├── twig.twig │ │ ├── yaml.yaml │ │ ├── c9search.c9search_results │ │ ├── stylus.styl │ │ ├── sass.sass │ │ ├── latex.tex │ │ ├── vhdl.vhd │ │ ├── velocity.vm │ │ ├── c_cpp.cpp │ │ ├── vbscript.vbs │ │ ├── tcl.tcl │ │ ├── haml.haml │ │ ├── mel.mel │ │ ├── lua.lua │ │ ├── forth.frt │ │ └── space.space │ ├── logo.png │ ├── icons │ │ ├── error_obj.gif │ │ ├── warning_obj.gif │ │ └── Readme.txt │ └── styles.css ├── r.js │ └── build.js ├── svg.svg ├── show_own_source.js ├── chromevox.html ├── emmet.html ├── xml.xml └── autocompletion.html ├── experiments ├── zenbg.png ├── worker.js ├── worker.html ├── triple_click.html └── capture.html ├── doc ├── site │ ├── images │ │ ├── ace.png │ │ ├── logo.png │ │ ├── ac-logo.png │ │ ├── ace-tab.png │ │ ├── codiad.png │ │ ├── favicon.ico │ │ ├── plunker.png │ │ ├── sx-logo.png │ │ ├── ace-logo.png │ │ ├── background.png │ │ ├── bottombar.png │ │ ├── empty-logo.png │ │ ├── header-bg.png │ │ ├── khan-logo.png │ │ ├── logo_half.png │ │ ├── pixie-logo.png │ │ ├── stypi-logo.png │ │ ├── textimage.png │ │ ├── zorba-logo.png │ │ ├── cloud9-logo.png │ │ ├── firefox-logo.png │ │ ├── github-logo.png │ │ ├── ideone-logo.png │ │ ├── modx-logo-4.png │ │ ├── repl.it-logo.png │ │ ├── weecod-logo.png │ │ ├── body_background.png │ │ ├── codecademy-logo.png │ │ ├── crunchapp-logo.png │ │ ├── fork_on_github.png │ │ ├── rstudio_logo_64.png │ │ ├── shiftedit-logo.png │ │ ├── spandexio-logo.png │ │ ├── sassmeister-logo.png │ │ └── wolf_3d_logo_trans.png │ ├── iphone.css │ └── js │ │ └── ga.js ├── template │ ├── resources │ │ ├── images │ │ │ ├── Ace_ERD.png │ │ │ ├── ace_logo.png │ │ │ ├── main_bg.png │ │ │ ├── c9-sponsor.png │ │ │ ├── cloud9-logo.png │ │ │ ├── content-top.png │ │ │ ├── content_bg.png │ │ │ ├── dashed_back.png │ │ │ ├── footer-bg.png │ │ │ ├── menu_disc.png │ │ │ ├── method_bg.png │ │ │ ├── ace_logo_menu.png │ │ │ ├── c9-log-footer.png │ │ │ ├── swirl_divider.png │ │ │ ├── content_top_bg.png │ │ │ ├── member-sprites.png │ │ │ ├── sidebar-top-bg.png │ │ │ ├── sidebar_border.png │ │ │ └── scrolled-heading-shadow.png │ │ ├── font │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ └── fontawesome-webfont.woff │ │ └── javascripts │ │ │ ├── prettify-extension.js │ │ │ └── disqus-ext.js │ └── jade │ │ └── layout.jade ├── package.json ├── index.md └── README.md ├── version.js ├── api ├── resources │ ├── images │ │ ├── Ace_ERD.png │ │ ├── main_bg.png │ │ ├── ace_logo.png │ │ ├── c9-sponsor.png │ │ ├── content_bg.png │ │ ├── footer-bg.png │ │ ├── menu_disc.png │ │ ├── method_bg.png │ │ ├── cloud9-logo.png │ │ ├── content-top.png │ │ ├── dashed_back.png │ │ ├── ace_logo_menu.png │ │ ├── c9-log-footer.png │ │ ├── content_top_bg.png │ │ ├── member-sprites.png │ │ ├── sidebar-top-bg.png │ │ ├── sidebar_border.png │ │ ├── swirl_divider.png │ │ └── scrolled-heading-shadow.png │ ├── font │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ └── javascripts │ │ ├── prettify-extension.js │ │ └── disqus-ext.js └── index.html ├── .gitmodules ├── tool ├── templates │ └── snippets.js ├── package.json ├── tmthemes │ └── LICENSE ├── Readme.md ├── regexp_tokenizer_test.js └── wrap_keyword_regexp.js ├── .travis.yml ├── .gitignore ├── .eslintignore └── package.json /CNAME: -------------------------------------------------------------------------------- 1 | ace.c9.io 2 | -------------------------------------------------------------------------------- /lib/ace/snippets/d.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/io.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/abap.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/ada.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/cirru.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/cobol.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/csharp.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/curly.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/dot.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/eiffel.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/ejs.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/elixir.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/elm.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/forth.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/ftl.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/gcode.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/gherkin.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/glsl.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/golang.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/groovy.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/haxe.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/ini.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/jack.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/jade.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/json.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/jsx.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/julia.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/latex.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/lean.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/less.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/liquid.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/lisp.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/logiql.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/luapage.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/lucene.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/matlab.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/mel.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/mysql.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/nix.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/ocaml.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/pascal.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/pgsql.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/praat.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/prolog.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/rdoc.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/rhtml.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/rust.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/sass.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/scad.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/scala.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/scheme.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/scss.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/sjs.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/smarty.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/space.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/stylus.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/svg.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/text.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/toml.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/twig.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/vala.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/verilog.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/vhdl.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/xml.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/yaml.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/cobol.CBL: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/jsoniq.jq: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/mysql.mysql: -------------------------------------------------------------------------------- 1 | TODO -------------------------------------------------------------------------------- /lib/ace/snippets/_all_modes.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/all_modes.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/apache_conf.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/applescript.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/asciidoc.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/assembly_x86.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/autohotkey.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/batchfile.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/c9search.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/coldfusion.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/dockerfile.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/gitignore.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/handlebars.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/html_elixir.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/html_ruby.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/livescript.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/mushcode.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/objectivec.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/plain_text.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/powershell.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/properties.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/protobuf.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/soy_template.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/tmsnippet.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/typescript.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/vbscript.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/snippets/mushcode_high_rules.snippets: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_livescript.txt: -------------------------------------------------------------------------------- 1 | # comment 2 | -------------------------------------------------------------------------------- /lib/ace/snippets/razor.snippets: -------------------------------------------------------------------------------- 1 | snippet if 2 | (${1} == ${2}) { 3 | ${3} 4 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/lucene.lucene: -------------------------------------------------------------------------------- 1 | (title:"foo bar" AND body:"quick fox") OR title:fox -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_cobol.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["identifier","TODO"] 4 | ]] -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_mysql.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["identifier","TODO"] 4 | ]] -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/tsx.tsx: -------------------------------------------------------------------------------- 1 | var mode =
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/rust.rs: -------------------------------------------------------------------------------- 1 | use core::rand::RngUtil; 2 | 3 | fn main() { 4 | for ["Alice", "Bob", "Carol"].each |&name| { 5 | do spawn { 6 | let v = rand::Rng().shuffle([1, 2, 3]); 7 | for v.each |&num| { 8 | print(fmt!("%s says: '%d'\n", name, num + 1)) 9 | } 10 | } 11 | } 12 | } 13 | 14 | fn mapcouldn't find ace.js file, 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. 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.
"
3 | + "to build it run node Makefile.dryice.js full"
4 | } else if (typeof ace == "undefined" && typeof require != "undefined") {
5 | require(["ace/ace"], setValue)
6 | } else {
7 | require = ace.require;
8 | setValue()
9 | }
10 |
11 | function setValue() {
12 | require("ace/lib/net").get(document.baseURI, function(t){
13 | var el = document.getElementById("editor");
14 | el.env.editor.setValue(t, 1);
15 | })
16 | }
--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/html_ruby.erb:
--------------------------------------------------------------------------------
1 | Listing Books
2 |
3 |
4 |
23 |
24 |
5 |
11 |
12 | <% @books.each do |book| %>
13 | Title
6 | Summary
7 |
8 |
9 |
10 |
14 | <%# comment %>
15 |
21 | <% end %>
22 | <%= book.title %>
16 | <%= book.content %>
17 | <%= link_to 'Show', book %>
18 | <%= link_to 'Edit', edit_book_path(book) %>
19 | <%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %>
20 |
25 |
26 | <%= link_to 'New book', new_book_path %>
--------------------------------------------------------------------------------
/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 JavaHighlightRules = require("./java_highlight_rules").JavaHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 | this.HighlightRules = JavaHighlightRules;
11 | };
12 | oop.inherits(Mode, JavaScriptMode);
13 |
14 | (function() {
15 |
16 | this.createWorker = function(session) {
17 | return null;
18 | };
19 |
20 | this.$id = "ace/mode/java";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
25 |
--------------------------------------------------------------------------------
/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 GroovyHighlightRules = require("./groovy_highlight_rules").GroovyHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 | this.HighlightRules = GroovyHighlightRules;
11 | };
12 | oop.inherits(Mode, JavaScriptMode);
13 |
14 | (function() {
15 |
16 | this.createWorker = function(session) {
17 | return null;
18 | };
19 |
20 | this.$id = "ace/mode/groovy";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
25 |
--------------------------------------------------------------------------------
/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 ScalaHighlightRules = require("./scala_highlight_rules").ScalaHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 |
11 | this.HighlightRules = ScalaHighlightRules;
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/scala";
22 | }).call(Mode.prototype);
23 |
24 | exports.Mode = Mode;
25 | });
26 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 LuaPageHighlightRules = require("./luapage_highlight_rules").LuaPageHighlightRules;
8 |
9 | var Mode = function() {
10 | HtmlMode.call(this);
11 |
12 | this.HighlightRules = LuaPageHighlightRules;
13 | this.createModeDelegates({
14 | "lua-": LuaMode
15 | });
16 | };
17 | oop.inherits(Mode, HtmlMode);
18 |
19 | (function() {
20 | this.$id = "ace/mode/luapage";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
--------------------------------------------------------------------------------
/lib/ace/mode/wollok.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 WollokHighlightRules = require("./wollok_highlight_rules").WollokHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 | this.HighlightRules = WollokHighlightRules;
11 | };
12 | oop.inherits(Mode, JavaScriptMode);
13 |
14 | (function() {
15 |
16 | this.createWorker = function(session) {
17 | return null;
18 | };
19 |
20 | this.$id = "ace/mode/wollok";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
25 |
26 |
--------------------------------------------------------------------------------
/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”.
--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/gcode.gcode:
--------------------------------------------------------------------------------
1 | O003 (DIAMOND SQUARE)
2 | N2 G54 G90 G49 G80
3 | N3 M6 T1 (1.ENDMILL)
4 | N4 M3 S1800
5 | N5 G0 X-.6 Y2.050
6 | N6 G43 H1 Z.1
7 | N7 G1 Z-.3 F50.
8 | N8 G41 D1 Y1.45
9 | N9 G1 X0 F20.
10 | N10 G2 J-1.45
11 | (CUTTER COMP CANCEL)
12 | N11 G1 Z-.2 F50.
13 | N12 Y-.990
14 | N13 G40
15 | N14 G0 X-.6 Y1.590
16 | N15 G0 Z.1
17 | N16 M5 G49 G28 G91 Z0
18 | N17 CALL O9456
19 | N18 #500=0.004
20 | N19 #503=[#500+#501]
21 | N20 VC45=0.0006
22 | VS4=0.0007
23 | N21 G90 G10 L20 P3 X5.Y4. Z6.567
24 | N22 G0 X5000
25 | N23 IF [#1 LT 0.370] GOTO 49
26 | N24 X-0.678 Y+.990
27 | N25 G84.3 X-0.1
28 | N26 #4=#5*COS[45]
29 | N27 #4=#5*SIN[45]
30 | N28 VZOFZ=652.9658
31 | %
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/ace/mode/gobstones.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 GobstonesHighlightRules = require("./gobstones_highlight_rules").GobstonesHighlightRules;
7 |
8 | var Mode = function() {
9 | JavaScriptMode.call(this);
10 | this.HighlightRules = GobstonesHighlightRules;
11 | };
12 | oop.inherits(Mode, JavaScriptMode);
13 |
14 | (function() {
15 |
16 | this.createWorker = function(session) {
17 | return null;
18 | };
19 |
20 | this.$id = "ace/mode/gobstones";
21 | }).call(Mode.prototype);
22 |
23 | exports.Mode = Mode;
24 | });
25 |
26 |
--------------------------------------------------------------------------------
/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/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 => ?", :key => "value"}
24 |
25 |
26 | herDocs = [<<'FOO', <
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 | }
--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/html_elixir.eex:
--------------------------------------------------------------------------------
1 | Listing Books
2 |
3 |
4 |
23 |
24 |
5 |
11 |
12 | <%= for book <- @books do %>
13 | Title
6 | Summary
7 |
8 |
9 |
10 |
14 | <%# comment %>
15 |
21 | <% end %>
22 | <%= book.title %>
16 | <%= book.content %>
17 | <%= link "Show", to: book_path(@conn, :show, book) %>
18 | <%= link "Edit", to: book_path(@conn, :edit, book) %>
19 | <%= link "Delete", to: book_path(@conn, :delete, book), method: :delete, data: [confirm: "Are you sure?"] %>
20 |
25 |
26 | <%= link "New book", to: book_path(@conn, :new) %>
27 |
--------------------------------------------------------------------------------
/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/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
--------------------------------------------------------------------------------
/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 | }
--------------------------------------------------------------------------------
/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 LatexHighlightRules = require("./latex_highlight_rules").LatexHighlightRules;
7 | var LatexFoldMode = require("./folding/latex").FoldMode;
8 | var Range = require("../range").Range;
9 |
10 | var Mode = function() {
11 | this.HighlightRules = LatexHighlightRules;
12 | this.foldingRules = new LatexFoldMode();
13 | };
14 | oop.inherits(Mode, TextMode);
15 |
16 | (function() {
17 | this.type = "text";
18 |
19 | this.lineCommentStart = "%";
20 |
21 | this.$id = "ace/mode/latex";
22 | }).call(Mode.prototype);
23 |
24 | exports.Mode = Mode;
25 |
26 | });
27 |
--------------------------------------------------------------------------------
/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
--------------------------------------------------------------------------------
/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 | ]]
--------------------------------------------------------------------------------
/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 | }
--------------------------------------------------------------------------------
/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/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
--------------------------------------------------------------------------------
/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 | }
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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");
--------------------------------------------------------------------------------
/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 HandlebarsHighlightRules = require("./handlebars_highlight_rules").HandlebarsHighlightRules;
9 | var HtmlBehaviour = require("./behaviour/html").HtmlBehaviour;
10 | var HtmlFoldMode = require("./folding/html").FoldMode;
11 |
12 | var Mode = function() {
13 | HtmlMode.call(this);
14 | this.HighlightRules = HandlebarsHighlightRules;
15 | this.$behaviour = new HtmlBehaviour();
16 | };
17 |
18 | oop.inherits(Mode, HtmlMode);
19 |
20 | (function() {
21 | this.blockComment = {start: "{{!--", end: "--}}"};
22 | this.$id = "ace/mode/handlebars";
23 | }).call(Mode.prototype);
24 |
25 | exports.Mode = Mode;
26 | });
27 |
--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/gherkin.feature:
--------------------------------------------------------------------------------
1 | @these @_are_ @tags
2 | Feature: Serve coffee
3 | Coffee should not be served until paid for
4 | Coffee should not be served until the button has been pressed
5 | If there is no coffee left then money should be refunded
6 |
7 | Scenario Outline: Eating
8 | Given there are
9 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/elixir.ex:
--------------------------------------------------------------------------------
1 | defmodule HelloModule do
2 | @moduledoc """
3 | This is supposed to be `markdown`.
4 | __Yes__ this is [mark](http://down.format)
5 |
6 | # Truly
7 |
8 | ## marked
9 |
10 | * with lists
11 | * more
12 | * and more
13 |
14 | Even.with(code)
15 | blocks |> with |> samples
16 |
17 | _Docs are first class citizens in Elixir_ (Jose Valim)
18 | """
19 |
20 | # A "Hello world" function
21 | def some_fun do
22 | IO.puts "Juhu Kinners!"
23 | end
24 | # A private function
25 | defp priv do
26 | is_regex ~r"""
27 | This is a regex
28 | spanning several
29 | lines.
30 | """
31 | x = elem({ :a, :b, :c }, 0) #=> :a
32 | end
33 | end
34 |
35 | test_fun = fn(x) ->
36 | cond do
37 | x > 10 ->
38 | :greater_than_ten
39 | true ->
40 | :maybe_ten
41 | end
42 | end
--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/twig.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
13 | <% if (!isRoot) { %>
14 | Name
11 | Size
12 |
15 |
18 | <% } %>
19 | <% entries.forEach(function(entry) { %>
20 | ..
16 |
17 |
21 |
27 | <% }) %>
28 |
22 |
23 | <%= entry.name %>
24 |
25 | <%= entry.size %>
26 | My Webpage
28 | {{ a_variable }}
29 |
30 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/experiments/triple_click.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Ace API Reference
3 |
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 |
--------------------------------------------------------------------------------
/lib/ace/snippets/mako.snippets:
--------------------------------------------------------------------------------
1 | snippet def
2 | <%def name="${1:name}">
3 | ${2:}
4 | %def>
5 | snippet call
6 | <%call expr="${1:name}">
7 | ${2:}
8 | %call>
9 | snippet doc
10 | <%doc>
11 | ${1:}
12 | %doc>
13 | snippet text
14 | <%text>
15 | ${1:}
16 | %text>
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 |
--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/c_cpp.cpp:
--------------------------------------------------------------------------------
1 | // compound assignment operators
2 |
3 | #include
{{title}}
6 |