Using ACE with WT
问题 UPDATE 3 Final working code below. YOU NEED THE ace.js FROM THE src FOLDER! It will not work from the libs, you need the pre-packaged version from their site. WText *editor = new WText(root()); editor->setText("function(){\n hello.abc();\n}\n"); editor->setInline(false); The above code can set the contents of the ACE window. MyClass::MyClass(const WEnvironment& env) : WApplication(env) { wApp->require("ace-builds/src/ace.js"); // A WContainerWidget is rendered as a div WContainerWidget