demo showing Ace usage with r.js: install r.js and almond and run `r.js -o demo/r.js/build.js` note that you also need ace/build/src to lazy load modes and themes require("ace/config").set("basePath", "../../build/src"); require("ace/config").set("packaged", true);