├── 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 =
2 | Typescript + JSX 3 |
; -------------------------------------------------------------------------------- /experiments/zenbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/experiments/zenbg.png -------------------------------------------------------------------------------- /doc/site/images/ace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/ace.png -------------------------------------------------------------------------------- /doc/site/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/logo.png -------------------------------------------------------------------------------- /experiments/worker.js: -------------------------------------------------------------------------------- 1 | onmessage = function(e) { 2 | onmessage = new Function("e", e.data); 3 | }; -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_jsoniq.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "[\"start\"]", 3 | ["support.function","TODO"] 4 | ]] -------------------------------------------------------------------------------- /version.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var x; 3 | x = require('./package'); 4 | console.log(x.version) 5 | -------------------------------------------------------------------------------- /demo/kitchen-sink/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/demo/kitchen-sink/logo.png -------------------------------------------------------------------------------- /doc/site/images/ac-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/ac-logo.png -------------------------------------------------------------------------------- /doc/site/images/ace-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/ace-tab.png -------------------------------------------------------------------------------- /doc/site/images/codiad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/codiad.png -------------------------------------------------------------------------------- /doc/site/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/favicon.ico -------------------------------------------------------------------------------- /doc/site/images/plunker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/plunker.png -------------------------------------------------------------------------------- /doc/site/images/sx-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/sx-logo.png -------------------------------------------------------------------------------- /doc/site/images/ace-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/ace-logo.png -------------------------------------------------------------------------------- /doc/site/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/background.png -------------------------------------------------------------------------------- /doc/site/images/bottombar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/bottombar.png -------------------------------------------------------------------------------- /doc/site/images/empty-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/empty-logo.png -------------------------------------------------------------------------------- /doc/site/images/header-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/header-bg.png -------------------------------------------------------------------------------- /doc/site/images/khan-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/khan-logo.png -------------------------------------------------------------------------------- /doc/site/images/logo_half.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/logo_half.png -------------------------------------------------------------------------------- /doc/site/images/pixie-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/pixie-logo.png -------------------------------------------------------------------------------- /doc/site/images/stypi-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/stypi-logo.png -------------------------------------------------------------------------------- /doc/site/images/textimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/textimage.png -------------------------------------------------------------------------------- /doc/site/images/zorba-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/zorba-logo.png -------------------------------------------------------------------------------- /lib/ace/css/expand-marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/lib/ace/css/expand-marker.png -------------------------------------------------------------------------------- /lib/ace/snippets/makefile.snippets: -------------------------------------------------------------------------------- 1 | snippet ifeq 2 | ifeq (${1:cond0},${2:cond1}) 3 | ${3:code} 4 | endif 5 | -------------------------------------------------------------------------------- /api/resources/images/Ace_ERD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/Ace_ERD.png -------------------------------------------------------------------------------- /api/resources/images/main_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/main_bg.png -------------------------------------------------------------------------------- /doc/site/images/cloud9-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/cloud9-logo.png -------------------------------------------------------------------------------- /doc/site/images/firefox-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/firefox-logo.png -------------------------------------------------------------------------------- /doc/site/images/github-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/github-logo.png -------------------------------------------------------------------------------- /doc/site/images/ideone-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/ideone-logo.png -------------------------------------------------------------------------------- /doc/site/images/modx-logo-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/modx-logo-4.png -------------------------------------------------------------------------------- /doc/site/images/repl.it-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/repl.it-logo.png -------------------------------------------------------------------------------- /doc/site/images/weecod-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/weecod-logo.png -------------------------------------------------------------------------------- /api/resources/images/ace_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/ace_logo.png -------------------------------------------------------------------------------- /api/resources/images/c9-sponsor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/c9-sponsor.png -------------------------------------------------------------------------------- /api/resources/images/content_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/content_bg.png -------------------------------------------------------------------------------- /api/resources/images/footer-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/footer-bg.png -------------------------------------------------------------------------------- /api/resources/images/menu_disc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/menu_disc.png -------------------------------------------------------------------------------- /api/resources/images/method_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/method_bg.png -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/ini.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | IconResource=..\logo.png 3 | [ViewState] 4 | FolderType=Generic 5 | -------------------------------------------------------------------------------- /doc/site/images/body_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/body_background.png -------------------------------------------------------------------------------- /doc/site/images/codecademy-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/codecademy-logo.png -------------------------------------------------------------------------------- /doc/site/images/crunchapp-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/crunchapp-logo.png -------------------------------------------------------------------------------- /doc/site/images/fork_on_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/fork_on_github.png -------------------------------------------------------------------------------- /doc/site/images/rstudio_logo_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/rstudio_logo_64.png -------------------------------------------------------------------------------- /doc/site/images/shiftedit-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/shiftedit-logo.png -------------------------------------------------------------------------------- /doc/site/images/spandexio-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/spandexio-logo.png -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_livescript.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["comment","# comment"] 4 | ],[ 5 | "start" 6 | ]] -------------------------------------------------------------------------------- /api/resources/images/cloud9-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/cloud9-logo.png -------------------------------------------------------------------------------- /api/resources/images/content-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/content-top.png -------------------------------------------------------------------------------- /api/resources/images/dashed_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/dashed_back.png -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/csharp.cs: -------------------------------------------------------------------------------- 1 | public void HelloWorld() { 2 | //Say Hello! 3 | Console.WriteLine("Hello World"); 4 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/razor.cshtml: -------------------------------------------------------------------------------- 1 | @* razor mode *@ 2 | @{ 3 | Layout = "~/layout" 4 | @: 5 | @Layout 6 | @: 7 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/icons/error_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/demo/kitchen-sink/icons/error_obj.gif -------------------------------------------------------------------------------- /doc/site/images/sassmeister-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/sassmeister-logo.png -------------------------------------------------------------------------------- /api/resources/images/ace_logo_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/ace_logo_menu.png -------------------------------------------------------------------------------- /api/resources/images/c9-log-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/c9-log-footer.png -------------------------------------------------------------------------------- /api/resources/images/content_top_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/content_top_bg.png -------------------------------------------------------------------------------- /api/resources/images/member-sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/member-sprites.png -------------------------------------------------------------------------------- /api/resources/images/sidebar-top-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/sidebar-top-bg.png -------------------------------------------------------------------------------- /api/resources/images/sidebar_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/sidebar_border.png -------------------------------------------------------------------------------- /api/resources/images/swirl_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/swirl_divider.png -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/asciidoc.asciidoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/demo/kitchen-sink/docs/asciidoc.asciidoc -------------------------------------------------------------------------------- /demo/kitchen-sink/icons/warning_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/demo/kitchen-sink/icons/warning_obj.gif -------------------------------------------------------------------------------- /doc/site/images/wolf_3d_logo_trans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/site/images/wolf_3d_logo_trans.png -------------------------------------------------------------------------------- /api/resources/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /api/resources/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /doc/template/resources/images/Ace_ERD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/Ace_ERD.png -------------------------------------------------------------------------------- /doc/template/resources/images/ace_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/ace_logo.png -------------------------------------------------------------------------------- /doc/template/resources/images/main_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/main_bg.png -------------------------------------------------------------------------------- /lib/ace/mode/xquery/Readme.md: -------------------------------------------------------------------------------- 1 | This files are build from [xqlint](https://github.com/wcandillon/xqlint) (using the `grunt ace_build`) 2 | -------------------------------------------------------------------------------- /api/resources/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/coldfusion.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | #welcome# -------------------------------------------------------------------------------- /doc/template/resources/images/c9-sponsor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/c9-sponsor.png -------------------------------------------------------------------------------- /doc/template/resources/images/cloud9-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/cloud9-logo.png -------------------------------------------------------------------------------- /doc/template/resources/images/content-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/content-top.png -------------------------------------------------------------------------------- /doc/template/resources/images/content_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/content_bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/dashed_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/dashed_back.png -------------------------------------------------------------------------------- /doc/template/resources/images/footer-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/footer-bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/menu_disc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/menu_disc.png -------------------------------------------------------------------------------- /doc/template/resources/images/method_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/method_bg.png -------------------------------------------------------------------------------- /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; -------------------------------------------------------------------------------- /doc/template/resources/images/ace_logo_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/ace_logo_menu.png -------------------------------------------------------------------------------- /doc/template/resources/images/c9-log-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/c9-log-footer.png -------------------------------------------------------------------------------- /doc/template/resources/images/swirl_divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/swirl_divider.png -------------------------------------------------------------------------------- /lib/ace/css/codefolding-fold-button-states.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/lib/ace/css/codefolding-fold-button-states.png -------------------------------------------------------------------------------- /api/resources/images/scrolled-heading-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/api/resources/images/scrolled-heading-shadow.png -------------------------------------------------------------------------------- /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). -------------------------------------------------------------------------------- /doc/template/resources/images/content_top_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/content_top_bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/member-sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/member-sprites.png -------------------------------------------------------------------------------- /doc/template/resources/images/sidebar-top-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/sidebar-top-bg.png -------------------------------------------------------------------------------- /doc/template/resources/images/sidebar_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/sidebar_border.png -------------------------------------------------------------------------------- /doc/template/resources/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /doc/template/resources/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /doc/template/resources/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /doc/template/resources/images/scrolled-heading-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postmanlabs/ace/master/doc/template/resources/images/scrolled-heading-shadow.png -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/xquery.xq: -------------------------------------------------------------------------------- 1 | xquery version "1.0"; 2 | 3 | let $message := "Hello World!" 4 | return 5 | {$message} 6 | 7 | -------------------------------------------------------------------------------- /lib/ace/snippets/protobuf.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = ""; 5 | exports.scope = "protobuf"; 6 | 7 | }); -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/javascript.js: -------------------------------------------------------------------------------- 1 | function foo(items, nada) { 2 | for (var i=0; i '2011-05-21' 5 | GROUP BY 1 6 | ORDER BY 2 DESC -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/io.io: -------------------------------------------------------------------------------- 1 | // computes factorial of a number 2 | factorial := method(n, 3 | if(n == 0, return 1) 4 | res := 1 5 | Range 1 to(n) foreach(i, res = res * i) 6 | ) -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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/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/mode/_test/text_html.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | '123' 4 | 5 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /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/dummy.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./.snippets"); 5 | exports.scope = ""; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/elixir.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./.snippets"); 5 | exports.scope = ""; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/nsis.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./.snippets"); 5 | exports.scope = ""; 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/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/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 | }); -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "doc/wiki"] 2 | path = doc/wiki 3 | url = https://github.com/ajaxorg/ace.wiki.git 4 | [submodule "build"] 5 | path = build 6 | url = https://github.com/ajaxorg/ace-builds.git 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/abc.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./abc.snippets"); 5 | exports.scope = "abc"; 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/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/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/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/dummy_syntax.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./.snippets"); 5 | exports.scope = ""; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/elm.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./elm.snippets"); 5 | exports.scope = "elm"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/jack.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./jack.snippets"); 5 | exports.scope = "jack"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/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/lean.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./lean.snippets"); 5 | exports.scope = "lean"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/maze.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./maze.snippets"); 5 | exports.scope = "maze"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/mel.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./mel.snippets"); 5 | exports.scope = "mel"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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/cirru.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./cirru.snippets"); 5 | exports.scope = "cirru"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/gcode.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./gcode.snippets"); 5 | exports.scope = "gcode"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/maze.snippets: -------------------------------------------------------------------------------- 1 | snippet > 2 | description assignment 3 | scope maze 4 | -> ${1}= ${2} 5 | 6 | snippet > 7 | description if 8 | scope maze 9 | -> IF ${2:**} THEN %${3:L} ELSE %${4:R} 10 | -------------------------------------------------------------------------------- /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/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/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/praat.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./praat.snippets"); 5 | exports.scope = "praat"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/razor.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./razor.snippets"); 5 | exports.scope = "razor"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/space.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./space.snippets"); 5 | exports.scope = "space"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/.gitignore: -------------------------------------------------------------------------------- 1 | # A sample .gitignore file. 2 | 3 | .buildlog 4 | .DS_Store 5 | .svn 6 | 7 | # Negated patterns: 8 | !foo.bar 9 | 10 | # Also ignore user settings... 11 | /.settings 12 | -------------------------------------------------------------------------------- /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/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/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/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/drools.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./drools.snippets"); 5 | exports.scope = "drools"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/eiffel.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./eiffel.snippets"); 5 | exports.scope = "eiffel"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/gherkin.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./gherkin.snippets"); 5 | exports.scope = "gherkin"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/smarty.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./smarty.snippets"); 5 | exports.scope = "smarty"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/wollok.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./wollok.snippets"); 5 | exports.scope = "wollok"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/mode/_test/text_xml.txt: -------------------------------------------------------------------------------- 1 | //Juhu Kinners 2 | test: two tags in the same lines should be in separate tokens" 3 | 4 | test: multiline attributes" 5 | -------------------------------------------------------------------------------- /lib/ace/snippets/all_modes.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./all_modes.snippets"); 5 | exports.scope = "all_modes"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/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/gitignore.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./gitignore.snippets"); 5 | exports.scope = "gitignore"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /lib/ace/snippets/gobstones.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./gobstones.snippets"); 5 | exports.scope = "gobstones"; 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/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/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/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/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/sqlserver.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./sqlserver.snippets"); 5 | exports.scope = "sqlserver"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tool/templates/snippets.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 | -------------------------------------------------------------------------------- /lib/ace/snippets/_all_modes.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./_all_modes.snippets"); 5 | exports.scope = "_all_modes"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/dockerfile.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./dockerfile.snippets"); 5 | exports.scope = "dockerfile"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/javascript.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./javascript.snippets"); 5 | exports.scope = "javascript"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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/plain_text.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./plain_text.snippets"); 5 | exports.scope = "plain_text"; 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/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/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/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/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/applescript.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./applescript.snippets"); 5 | exports.scope = "applescript"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/html_elixir.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | "use strict"; 3 | 4 | exports.snippetText = require("../requirejs/text!./html_elixir.snippets"); 5 | exports.scope = "html_elixir"; 6 | 7 | }); 8 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/handlebars.hbs: -------------------------------------------------------------------------------- 1 | {{!-- Ace + :-}} --}} 2 | 3 |
4 | {{#each comments}} 5 |

{{title}}

6 |
{{{body}}}
7 | {{/each}} 8 |
9 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/smarty.smarty: -------------------------------------------------------------------------------- 1 | {foreach $foo as $bar} 2 | {$bar.zag} 3 | {$bar.zag2} 4 | {$bar.zag3} 5 | {foreachelse} 6 | There were no rows found. 7 | {/foreach} -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_coldfusion.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | z ---> welcome="Hello World!"> 4 | z --> 5 | #welcome# 6 | 7 | Dateformat(now()) 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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") -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/lean.lean: -------------------------------------------------------------------------------- 1 | import logic 2 | section 3 | variables (A : Type) (p q : A → Prop) 4 | 5 | example : (∀x : A, p x ∧ q x) → ∀y : A, p y := 6 | assume H : ∀x : A, p x ∧ q x, 7 | take y : A, 8 | show p y, from and.elim_left (H y) 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/julia.jl: -------------------------------------------------------------------------------- 1 | for op = (:+, :*, :&, :|, :$) 2 | @eval ($op)(a,b,c) = ($op)(($op)(a,b),c) 3 | end 4 | 5 | v = α'; 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/matlab.matlab: -------------------------------------------------------------------------------- 1 | %{ 2 | %{ 3 | Ace Matlab demo 4 | %} 5 | %} 6 | 7 | classdef hello 8 | methods 9 | function greet(this) 10 | disp('Hello!') % say hi 11 | end 12 | end 13 | end 14 | 15 | % transpose 16 | a = [ 'x''y', "x\n\ 17 | y", 1' ]' + 2' -------------------------------------------------------------------------------- /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/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/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/theme/gruvbox.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 3 | exports.isDark = true; 4 | exports.cssClass = "ace-gruvbox"; 5 | exports.cssText = require("../requirejs/text!./gruvbox.css"); 6 | 7 | var dom = require("../lib/dom"); 8 | dom.importCssString(exports.cssText, exports.cssClass); 9 | }); 10 | -------------------------------------------------------------------------------- /lib/ace/snippets/drools.snippets: -------------------------------------------------------------------------------- 1 | 2 | snippet rule 3 | rule "${1?:rule_name}" 4 | when 5 | ${2:// when...} 6 | then 7 | ${3:// then...} 8 | end 9 | 10 | snippet query 11 | query ${1?:query_name} 12 | ${2:// find} 13 | end 14 | 15 | snippet declare 16 | declare ${1?:type_name} 17 | ${2:// attributes} 18 | end 19 | 20 | -------------------------------------------------------------------------------- /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]; -------------------------------------------------------------------------------- /tool/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-tools", 3 | "version": "0.1.0", 4 | "dependencies": { 5 | "browser-pack": "^5.0.1", 6 | "browserify": "^10.2.4", 7 | "cson": "^3.0.1", 8 | "css-parse": "1.0.3", 9 | "css-stringify": "1.0.3", 10 | "deps-sort": "^1.3.9", 11 | "derequire": "^2.0.0", 12 | "plist": "" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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/css.css: -------------------------------------------------------------------------------- 1 | .text-layer { 2 | font: 12px Monaco, "Courier New", monospace; 3 | cursor: text; 4 | } 5 | 6 | .blinker { 7 | animation: blink 1s linear infinite alternate; 8 | } 9 | 10 | @keyframes blink { 11 | 0%, 40% { 12 | opacity: 0; 13 | } 14 | 15 | 40.5%, 100% { 16 | opacity: 1 17 | } 18 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | # use default node version 4 | # node_js: 5 | # - "0.10" 6 | 7 | script: 8 | - npm i eslint 9 | - node node_modules/eslint/bin/eslint "lib/ace/**/*.js" 10 | - npm test 11 | 12 | matrix: 13 | fast_finish: false 14 | 15 | cache: 16 | directories: 17 | - node_modules 18 | 19 | sudo: false 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Junk that could exist anywhere: 2 | .DS_Store 3 | *.swp 4 | *.tmp 5 | *~ 6 | 7 | # Project files that should not be in the repo 8 | .* 9 | \#* 10 | !/.gitignore 11 | .*.gz 12 | *.tmTheme.js 13 | 14 | # A handy place to put stuff that git should ignore: 15 | /ignore/ 16 | node_modules/ 17 | jam/ 18 | * * 19 | 20 | .git-ref 21 | npm-debug.log 22 | deps/ 23 | -------------------------------------------------------------------------------- /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/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/html.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 |

Juhu Kinners

16 | 17 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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/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/mode/_test/tokens_razor.json: -------------------------------------------------------------------------------- 1 | [[ 2 | ["razor-block-start","@{"], 3 | ["punctuation.block.razor","@{"] 4 | ],[ 5 | ["razor-block-start","@{"], 6 | ["text","\t"], 7 | ["identifier","Layout"], 8 | ["text"," "], 9 | ["keyword.operator","="], 10 | ["text"," "], 11 | ["string.start","\""], 12 | ["string","~/layout"], 13 | ["string.end","\""] 14 | ],[ 15 | "start", 16 | ["punctuation.block.razor","}"] 17 | ]] -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | lib/ace/mode/css/* 2 | lib/ace/mode/coffee/* 3 | lib/ace/mode/html/* 4 | lib/ace/mode/javascript/* 5 | lib/ace/mode/json/* 6 | lib/ace/mode/lua/* 7 | lib/ace/mode/php/* 8 | lib/ace/mode/xml/* 9 | lib/ace/mode/xquery/* 10 | lib/ace/mode/xquery.js 11 | lib/ace/test/asyncjs/ 12 | lib/ace/lib/es5-shim.js 13 | lib/ace/keyboard/vim*.js 14 | experiments/ 15 | tool/ 16 | doc/ 17 | build/ 18 | demo/ 19 | api/ 20 | **/* * 21 | **/node_modules 22 | 0* -------------------------------------------------------------------------------- /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/php.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/r.js/build.js: -------------------------------------------------------------------------------- 1 | ({ 2 | optimize: "none", 3 | preserveLicenseComments: false, 4 | name: "node_modules/almond/almond", 5 | baseUrl: "../../", 6 | paths: { 7 | ace : "lib/ace", 8 | demo: "demo/kitchen-sink" 9 | }, 10 | packages: [ 11 | ], 12 | include: [ 13 | "ace/ace" 14 | ], 15 | exclude: [ 16 | ], 17 | out: "./packed.js", 18 | useStrict: true, 19 | wrap: false 20 | }) -------------------------------------------------------------------------------- /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/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). -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules; 7 | 8 | var Mode = function() { 9 | this.HighlightRules = LuceneHighlightRules; 10 | }; 11 | 12 | oop.inherits(Mode, TextMode); 13 | 14 | (function() { 15 | this.$id = "ace/mode/lucene"; 16 | }).call(Mode.prototype); 17 | 18 | exports.Mode = Mode; 19 | }); -------------------------------------------------------------------------------- /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/gobstones.gbs: -------------------------------------------------------------------------------- 1 | program { 2 | /* 3 | * A gobstons multiline comment 4 | * Taken from: 5 | * http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/" 6 | */ 7 | sumar(2, 3) 8 | } 9 | function sumar(a, b) { 10 | r := a + b 11 | } 12 | // unreachable code 13 | -- unreachable code 14 | # unreachable code 15 | procedure hacerAlgo() { 16 | Mover(Este) 17 | Poner(Rojo) 18 | Sacar(Azul) 19 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/maze.mz: -------------------------------------------------------------------------------- 1 | ## ## () ## ^^ ## ## ## ## 2 | ## H1 C2 S1 <> S2 H2 DN ## 3 | ## %U <> %D *2 %L IZ .. ## 4 | ## ## ## .. ## DN *3 ## ## 5 | ## ## ## %R C1 IZ () ## ## 6 | ## ## ## ## >/ *1 7 | ## () *3 *1 %L () 8 | 9 | 10 | // Set divisor and dividend 11 | S1-> = 9 12 | S2-> = 24 13 | 14 | // Holding cells 15 | H1-> IF *1 THEN %R ELSE %N 16 | H2-> IF *2 THEN %R ELSE %N 17 | 18 | // Arithmetic 19 | DN-> -= 1 20 | IZ-> IF <= 0 THEN %D ELSE %U 21 | 22 | C1-> IF *3 THEN %D ELSE %R 23 | C2-> IF *3 THEN %U ELSE %D 24 | -------------------------------------------------------------------------------- /demo/svg.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 |
Hi!
10 |
11 |
-------------------------------------------------------------------------------- /demo/kitchen-sink/docs/eiffel.e: -------------------------------------------------------------------------------- 1 | note 2 | description: "Represents a person." 3 | 4 | class 5 | PERSON 6 | 7 | create 8 | make, make_unknown 9 | 10 | feature {NONE} -- Creation 11 | 12 | make (a_name: like name) 13 | -- Create a person with `a_name' as `name'. 14 | do 15 | name := a_name 16 | ensure 17 | name = a_name 18 | end 19 | 20 | make_unknown 21 | do ensure 22 | name = Void 23 | end 24 | 25 | feature -- Access 26 | 27 | name: detachable STRING 28 | -- Full name or Void if unknown. 29 | 30 | end -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_gobstones.txt: -------------------------------------------------------------------------------- 1 | program { 2 | /* 3 | * A gobstons multiline comment 4 | * Taken from: 5 | * http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/" 6 | */ 7 | sumar(2, 3) 8 | } 9 | function sumar(a, b) { 10 | r := a + b 11 | } 12 | // unreachable code 13 | -- unreachable code 14 | # unreachable code 15 | procedure hacerAlgo() { 16 | Mover(Este) 17 | Poner(Rojo) 18 | Sacar(Azul) 19 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/Haxe.hx: -------------------------------------------------------------------------------- 1 | class Haxe 2 | { 3 | public static function main() 4 | { 5 | // Say Hello! 6 | var greeting:String = "Hello World"; 7 | trace(greeting); 8 | 9 | var targets:Array = ["Flash","Javascript","PHP","Neko","C++","iOS","Android","webOS"]; 10 | trace("Haxe is a great language that can target:"); 11 | for (target in targets) 12 | { 13 | trace (" - " + target); 14 | } 15 | trace("And many more!"); 16 | } 17 | } -------------------------------------------------------------------------------- /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..! -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/elm.elm: -------------------------------------------------------------------------------- 1 | {- Ace {- 4 -} Elm -} 2 | main = lift clock (every second) 3 | 4 | clock t = collage 400 400 [ filled lightGrey (ngon 12 110) 5 | , outlined (solid grey) (ngon 12 110) 6 | , hand orange 100 t 7 | , hand charcoal 100 (t/60) 8 | , hand charcoal 60 (t/720) ] 9 | 10 | hand clr len time = 11 | let angle = degrees (90 - 6 * inSeconds time) 12 | in traced (solid clr) <| segment (0,0) (len * cos angle, len * sin angle) -------------------------------------------------------------------------------- /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/swift.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | class DetailsViewController: UIViewController { 4 | var album: Album? 5 | @IBOutlet weak var albumCover: UIImageView! 6 | 7 | required init(coder aDecoder: NSCoder) { 8 | super.init(coder: aDecoder) 9 | } 10 | 11 | override func viewDidLoad() { 12 | super.viewDidLoad() 13 | mLabel.text = self.album?.title && "Juhu \( "kinners" )! " 14 | albumCover.image = UIImage(data: NSData(contentsOfURL: NSURL(string: self.album!.largeImageURL)!)!) 15 | } 16 | } -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/wollok.wlk: -------------------------------------------------------------------------------- 1 | class Actividad { 2 | method calcularMejora() 3 | } 4 | 5 | class EstudiarMateria inherits Actividad { 6 | var materia 7 | var puntos = 0 8 | 9 | new(m, p) { 10 | materia = m 11 | puntos = p 12 | } 13 | 14 | override method calcularMejora() = puntos 15 | } 16 | 17 | class EjercitarEnSimulador inherits Actividad { 18 | var horas = 0 19 | new(h) { horas = h } 20 | override method calcularMejora() = 10 * horas 21 | } 22 | 23 | object pepita { 24 | var energia = 100 25 | method volar(m) { 26 | energia -= m 27 | } 28 | } -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_php.txt: -------------------------------------------------------------------------------- 1 | not &js; 25 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/text_wollok.txt: -------------------------------------------------------------------------------- 1 | class Actividad { 2 | method calcularMejora() 3 | } 4 | 5 | class EstudiarMateria inherits Actividad { 6 | var materia 7 | var puntos = 0 8 | 9 | new(m, p) { 10 | materia = m 11 | puntos = p 12 | } 13 | 14 | override method calcularMejora() = puntos 15 | } 16 | 17 | class EjercitarEnSimulador inherits Actividad { 18 | var horas = 0 19 | new(h) { horas = h } 20 | override method calcularMejora() = 10 * horas 21 | } 22 | 23 | object pepita { 24 | var energia = 100 25 | method volar(m) { 26 | energia -= m 27 | } 28 | } -------------------------------------------------------------------------------- /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/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} -------------------------------------------------------------------------------- /lib/ace/mode/gitignore.js: -------------------------------------------------------------------------------- 1 | 2 | define(function(require, exports, module) { 3 | "use strict"; 4 | 5 | var oop = require("../lib/oop"); 6 | var TextMode = require("./text").Mode; 7 | var GitignoreHighlightRules = require("./gitignore_highlight_rules").GitignoreHighlightRules; 8 | 9 | var Mode = function() { 10 | this.HighlightRules = GitignoreHighlightRules; 11 | }; 12 | oop.inherits(Mode, TextMode); 13 | 14 | (function() { 15 | this.lineCommentStart = "#"; 16 | this.$id = "ace/mode/gitignore"; 17 | }).call(Mode.prototype); 18 | 19 | exports.Mode = Mode; 20 | }); 21 | -------------------------------------------------------------------------------- /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/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/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/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/vala.vala: -------------------------------------------------------------------------------- 1 | using Gtk; 2 | 3 | int main (string[] args) { 4 | Gtk.init (ref args); 5 | var foo = new MyFoo>(); 6 | 7 | var window = new Window(); 8 | window.title = "Hello, World!"; 9 | window.border_width = 10; 10 | window.window_position = WindowPosition.CENTER; 11 | window.set_default_size(350, 70); 12 | window.destroy.connect(Gtk.main_quit); 13 | 14 | var label = new Label("Hello, World!"); 15 | 16 | window.add(label); 17 | window.show_all(); 18 | 19 | Gtk.main(); 20 | return 0; 21 | } -------------------------------------------------------------------------------- /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/test/mockdom.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var dom = require('node-jsdom/lib/jsdom/living'); 4 | var browser = require('node-jsdom/lib/jsdom/browser/index').browserAugmentation(dom); 5 | var doc = new browser.HTMLDocument({parsingMode: 'html'}); 6 | doc.write(""); 7 | browser.document = doc; 8 | browser.window = doc.defaultView; 9 | 10 | global.document = browser.document; 11 | global.window = browser.window; 12 | global.self = browser.self; 13 | global.navigator = browser.navigator; 14 | global.location = browser.location; 15 | -------------------------------------------------------------------------------- /demo/kitchen-sink/docs/rhtml.Rhtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 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/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 map(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 | -------------------------------------------------------------------------------- /lib/ace/mode/_test/tokens_gitignore.json: -------------------------------------------------------------------------------- 1 | [[ 2 | "start", 3 | ["comment","# A sample .gitignore file."] 4 | ],[ 5 | "start" 6 | ],[ 7 | "start", 8 | ["text",".buildlog"] 9 | ],[ 10 | "start", 11 | ["text",".DS_Store"] 12 | ],[ 13 | "start", 14 | ["text",".svn"] 15 | ],[ 16 | "start" 17 | ],[ 18 | "start", 19 | ["comment","# Negated patterns:"] 20 | ],[ 21 | "start", 22 | ["keyword","!foo.bar"] 23 | ],[ 24 | "start" 25 | ],[ 26 | "start", 27 | ["comment","# Also ignore user settings..."] 28 | ],[ 29 | "start", 30 | ["text","/.settings"] 31 | ],[ 32 | "start" 33 | ]] -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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) -------------------------------------------------------------------------------- /lib/ace/snippets/gobstones.snippets: -------------------------------------------------------------------------------- 1 | # Procedure 2 | snippet proc 3 | procedure ${1?:name}(${2:argument}) { 4 | ${3:// body...} 5 | } 6 | 7 | # Function 8 | snippet fun 9 | function ${1?:name}(${2:argument}) { 10 | return ${3:// body...} 11 | } 12 | 13 | # Repeat 14 | snippet rep 15 | repeat ${1?:times} { 16 | ${2:// body...} 17 | } 18 | 19 | # For 20 | snippet for 21 | foreach ${1?:e} in ${2?:list} { 22 | ${3:// body...} 23 | } 24 | 25 | # If 26 | snippet if 27 | if (${1?:condition}) { 28 | ${3:// body...} 29 | } 30 | 31 | # While 32 | while (${1?:condition}) { 33 | ${2:// body...} 34 | } 35 | -------------------------------------------------------------------------------- /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/nsis.nsi: -------------------------------------------------------------------------------- 1 | /* 2 | NSIS Mode 3 | for Ace 4 | */ 5 | 6 | ; Includes 7 | !include MUI2.nsh 8 | 9 | ; Settings 10 | Name "installer_name" 11 | OutFile "installer_name.exe" 12 | RequestExecutionLevel user 13 | CRCCheck on 14 | !ifdef x64 15 | InstallDir "$PROGRAMFILES64\installer_name" 16 | !else 17 | InstallDir "$PROGRAMFILES\installer_name" 18 | !endif 19 | 20 | ; Pages 21 | !insertmacro MUI_PAGE_INSTFILES 22 | 23 | ; Sections 24 | Section "section_name" section_index 25 | # your code here 26 | SectionEnd 27 | 28 | ; Functions 29 | Function .onInit 30 | MessageBox MB_OK "Here comes a$\n$\rline-break!" 31 | FunctionEnd -------------------------------------------------------------------------------- /demo/show_own_source.js: -------------------------------------------------------------------------------- 1 | if (typeof ace == "undefined" && typeof require == "undefined") { 2 | document.body.innerHTML = "

couldn't find ace.js file,
" 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 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | <% @books.each do |book| %> 13 | 14 | <%# comment %> 15 | 16 | 17 | 18 | 19 | 20 | 21 | <% end %> 22 |
TitleSummary
<%= book.title %><%= book.content %><%= link_to 'Show', book %><%= link_to 'Edit', edit_book_path(book) %><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %>
23 | 24 |
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 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | <%= for book <- @books do %> 13 | 14 | <%# comment %> 15 | 16 | 17 | 18 | 19 | 20 | 21 | <% end %> 22 |
TitleSummary
<%= book.title %><%= book.content %><%= link "Show", to: book_path(@conn, :show, book) %><%= link "Edit", to: book_path(@conn, :edit, book) %><%= link "Delete", to: book_path(@conn, :delete, book), method: :delete, data: [confirm: "Are you sure?"] %>
23 | 24 |
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  cucumbers
 9 |     When I eat  cucumbers
10 |     Then I should have  cucumbers
11 | 
12 |     Examples:
13 |       | start | eat | left |
14 |       |  12   |  5  |  7   |
15 |       |  @20  |  5  |  15  |    
16 | 
17 |   Scenario: Buy last coffee
18 |     Given there are 1 coffees left in the machine
19 |     And I have deposited 1$ 
20 |     When I press the coffee button
21 |     Then I should be served a "coffee"
22 |     
23 |   # this a comment
24 |   
25 |   """
26 |   this is a 
27 |   pystring
28 |   """


--------------------------------------------------------------------------------
/experiments/worker.html:
--------------------------------------------------------------------------------
 1 | 
 3 | 
 4 | 
 5 | 
 6 | 	
 7 | 	worker
 8 | 	
 9 | 	
10 | 	
11 | 
12 | 
13 | 
14 | 
31 | 
32 | 
33 | 
34 | 


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/mask.mask:
--------------------------------------------------------------------------------
 1 | /* Mask Syntax Demo */
 2 | 
 3 | div > ' Test ~[name]';
 4 | 
 5 | define :userProfile {
 6 | 	header {
 7 | 		h4 > @title;
 8 | 		button.close;
 9 | 	}
10 | }
11 | 
12 | :userProfile {
13 | 	@title > ' Hello ~[: username.toUpperCase()]'
14 | }
15 | 
16 | style {
17 |     html, body {
18 |         background: url('name.png') 0 0 no-repeat;
19 |     }
20 | }
21 | 
22 | button {
23 | 	event click (e) {
24 | 	    this.textContent = `name ${e.clientX} !`;
25 | 	}
26 | }
27 | 
28 | md > """
29 | 
30 | - div
31 | - span
32 |  
33 | Hello
34 | 
35 | [one](http://google.com)
36 | 
37 | """;
38 | 
39 | 
40 | header .foo > 'Heading'
41 | 
42 | button .baz x-signal='click: test' disabled > "
43 | 	Hello,
44 | 	world 
45 | 	\"Buddy\"
46 | "
47 | 
48 | var a = {
49 |     name: `name ${window.innerWidth}`
50 | };
51 | 
52 | span .foo > "~[bind: a.name]"


--------------------------------------------------------------------------------
/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 | 


--------------------------------------------------------------------------------
/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/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 | 


--------------------------------------------------------------------------------
/demo/kitchen-sink/docs/fortran.f90:
--------------------------------------------------------------------------------
 1 | #include "globalDefines.h"
 2 | 
 3 | !=========================================================
 4 | program main
 5 | !========================================================= 
 6 |     use params_module, only : nx, ny, nz
 7 | 
 8 |     implicit none
 9 | 
10 |     integer, parameter :: g = 9.81
11 |     real, allocatable, dimension(:,:,:) :: array
12 |     integer :: a, b, c
13 |     real*8 :: x, y, z
14 |       
15 |     b = 5
16 |     c = 7
17 | 
18 | #ifdef ARRAY_COMP
19 |     allocate(array(10,10,10), status=a)
20 | 
21 |     write(c,'(i5.5)') b
22 | #endif
23 | 
24 |     if(x.lt.5.0) then
25 |         array(:,:,:) = g
26 |     else
27 |         array(:,:,:) = x - y
28 |     endif
29 | 
30 |     return
31 | !========================================================    
32 | end program main
33 | !========================================================
34 | 


--------------------------------------------------------------------------------
/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 => ?", :key => "value", anotherKey: [x, y?]}
17 | 
18 | =begin
19 | =end
20 | 
21 | =begin x
22 | =end-
23 | =end   x
24 | 
25 |     herDocs = [<<'FOO', < 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


--------------------------------------------------------------------------------
/lib/ace/mode/gitignore_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 GitignoreHighlightRules = function() {
 8 |     this.$rules = {
 9 |         "start" : [
10 |             {
11 |                 token : "comment",
12 |                 regex : /^\s*#.*$/
13 |             }, {
14 |                 token : "keyword", // negated patterns
15 |                 regex : /^\s*!.*$/
16 |             }
17 |         ]
18 |     };
19 |     
20 |     this.normalizeRules();
21 | };
22 | 
23 | GitignoreHighlightRules.metaData = {
24 |     fileTypes: ['gitignore'],
25 |     name: 'Gitignore'
26 | };
27 | 
28 | oop.inherits(GitignoreHighlightRules, TextHighlightRules);
29 | 
30 | exports.GitignoreHighlightRules = GitignoreHighlightRules;
31 | });
32 | 


--------------------------------------------------------------------------------
/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/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/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 | 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/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 | triple_click 8 | 9 | 10 | 11 | 12 | 13 |
14 | Juhu Kinners 15 |
16 | 17 | 18 | 19 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /lib/ace/snippets/abc.snippets: -------------------------------------------------------------------------------- 1 | 2 | snippet zupfnoter.print 3 | %%%%hn.print {"startpos": ${1:pos_y}, "t":"${2:title}", "v":[${3:voices}], "s":[[${4:syncvoices}1,2]], "f":[${5:flowlines}], "sf":[${6:subflowlines}], "j":[${7:jumplines}]} 4 | 5 | snippet zupfnoter.note 6 | %%%%hn.note {"pos": [${1:pos_x},${2:pos_y}], "text": "${3:text}", "style": "${4:style}"} 7 | 8 | snippet zupfnoter.annotation 9 | %%%%hn.annotation {"id": "${1:id}", "pos": [${2:pos}], "text": "${3:text}"} 10 | 11 | snippet zupfnoter.lyrics 12 | %%%%hn.lyrics {"pos": [${1:x_pos},${2:y_pos}]} 13 | 14 | snippet zupfnoter.legend 15 | %%%%hn.legend {"pos": [${1:x_pos},${2:y_pos}]} 16 | 17 | 18 | 19 | snippet zupfnoter.target 20 | "^:${1:target}" 21 | 22 | snippet zupfnoter.goto 23 | "^@${1:target}@${2:distance}" 24 | 25 | snippet zupfnoter.annotationref 26 | "^#${1:target}" 27 | 28 | snippet zupfnoter.annotation 29 | "^!${1:text}@${2:x_offset},${3:y_offset}" 30 | 31 | 32 | -------------------------------------------------------------------------------- /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/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 -------------------------------------------------------------------------------- /api/index.html: -------------------------------------------------------------------------------- 1 | 2 |
-------------------------------------------------------------------------------- /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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | // 28 | int main () 29 | { 30 | int a, b=3; /* foobar */ 31 | a = b; // single line comment\ 32 | continued 33 | a+=2; // equivalent to a=a+2 34 | cout << a; 35 | #if VERBOSE >= 2 36 | prints("trace message\n"); 37 | #endif 38 | return 0; 39 | } 40 | 41 | /* Print an error message and get out */ 42 | #define ABORT \ 43 | do { \ 44 | print( "Abort\n" ); \ 45 | exit(8); \ 46 | } while (0) /* Note: No semicolon */ -------------------------------------------------------------------------------- /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 | white-space: pre-wrap 5 | } 6 | 7 | .ace_static_highlight .ace_gutter { 8 | width: 2em; 9 | text-align: right; 10 | padding: 0 3px 0 0; 11 | margin-right: 3px; 12 | } 13 | 14 | .ace_static_highlight.ace_show_gutter .ace_line { 15 | padding-left: 2.6em; 16 | } 17 | 18 | .ace_static_highlight .ace_line { position: relative; } 19 | 20 | .ace_static_highlight .ace_gutter-cell { 21 | -moz-user-select: -moz-none; 22 | -khtml-user-select: none; 23 | -webkit-user-select: none; 24 | user-select: none; 25 | top: 0; 26 | bottom: 0; 27 | left: 0; 28 | position: absolute; 29 | } 30 | 31 | 32 | .ace_static_highlight .ace_gutter-cell:before { 33 | content: counter(ace_line, decimal); 34 | counter-increment: ace_line; 35 | } 36 | .ace_static_highlight { 37 | counter-reset: ace_line; 38 | } 39 | -------------------------------------------------------------------------------- /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 | ]] -------------------------------------------------------------------------------- /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/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/haml.haml: -------------------------------------------------------------------------------- 1 | !!!5 2 | 3 | # 4 | # 5 | # 6 | # 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/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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /experiments/capture.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 17 | 18 | 19 | 20 |
    21 | 22 |
    23 | 24 | 25 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /demo/emmet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ACE Emmet demo 6 | 20 | 21 | 22 | 23 |
    
    24 | 
    25 | 
    26 | 
    27 | 
    28 | 
    29 | 
    40 | 
    41 | 
    42 | 
    43 | 
    44 | 
    
    
    --------------------------------------------------------------------------------
    /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 ]])
    
    
    --------------------------------------------------------------------------------
    /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 | ]]
    
    
    --------------------------------------------------------------------------------
    /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/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 | 
    
    
    --------------------------------------------------------------------------------
    /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.2.3",
     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 |         "node-jsdom": "3.1.5",
    19 |         "amd-loader": "~0.0.4",
    20 |         "dryice": "0.4.11",
    21 |         "architect-build": "https://github.com/c9/architect-build/tarball/17268dce65"
    22 |     },
    23 |     "mappings": {
    24 |         "ace": "."
    25 |     },
    26 |     "licenses": [{
    27 |         "type": "BSD New",
    28 |         "url": "http://opensource.org/licenses/BSD-3-Clause"
    29 |     }],
    30 |     "directories": {
    31 |         "lib": "lib/ace"
    32 |     },
    33 |     "scripts": {
    34 |         "start": "node static.js",
    35 |         "test": "node lib/ace/test/all.js"
    36 |     }
    37 | }
    38 | 
    
    
    --------------------------------------------------------------------------------
    /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 | }
    50 | 
    51 | /* .ace_text-input {
    52 |     z-index: 10!important;
    53 |     opacity: 1!important;
    54 |     background: rgb(84, 0, 255)!important;
    55 |     color: rgb(255, 255, 255)!important;
    56 |     width: 10em!important;
    57 | }*/
    58 | 
    
    
    --------------------------------------------------------------------------------
    /lib/ace/mode/razor.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 RazorHighlightRules = require("./razor_highlight_rules").RazorHighlightRules;
     7 | var RazorCompletions = require("./razor_completions").RazorCompletions;
     8 | var HtmlCompletions = require("./html_completions").HtmlCompletions;
     9 | 
    10 | var Mode = function() {
    11 |     HtmlMode.call(this);
    12 |     this.$highlightRules = new RazorHighlightRules();
    13 |     this.$completer = new RazorCompletions();
    14 |     this.$htmlCompleter = new HtmlCompletions();
    15 | };
    16 | oop.inherits(Mode, HtmlMode);
    17 | 
    18 | (function() {
    19 |     this.getCompletions = function(state, session, pos, prefix) {
    20 |         var razorToken = this.$completer.getCompletions(state, session, pos, prefix);
    21 |         var htmlToken = this.$htmlCompleter.getCompletions(state, session, pos, prefix);
    22 |         return razorToken.concat(htmlToken);
    23 |     };
    24 |     
    25 |     this.createWorker = function(session) {
    26 |         return null;
    27 |     };
    28 | 
    29 |     this.$id = "ace/mode/razor";
    30 | }).call(Mode.prototype);
    31 | 
    32 | exports.Mode = Mode;
    33 | });
    34 | 
    
    
    --------------------------------------------------------------------------------
    /demo/xml.xml:
    --------------------------------------------------------------------------------
     1 | 
     2 | 
     3 | 
     4 | 
     5 |     
     6 |     ACE Autocompletion demo
     7 |     
    14 | 
    15 | 
    16 |     
    
    17 | 
    18 |     
    19 |     
    30 | 
    31 |     
    32 | 
    33 | 
    34 | 
    
    
    --------------------------------------------------------------------------------
    /demo/autocompletion.html:
    --------------------------------------------------------------------------------
     1 | 
     2 | 
     3 | 
     4 |   
     5 |   ACE Autocompletion demo
     6 |   
    20 | 
    21 | 
    22 | 
    23 | 
    
    24 | 
    25 | 
    26 | 
    27 | 
    28 | 
    29 | 
    42 | 
    43 | 
    44 | 
    45 | 
    46 | 
    
    
    --------------------------------------------------------------------------------