diff --git a/index.html b/index.html index 30dbdbeba23..28f80e842c6 100644 --- a/index.html +++ b/index.html @@ -53,7 +53,7 @@
Themes are loaded on demand; all you have to do is pass the string name:
editor.setTheme("ace/theme/twilight");
-
+ See all themes. + Or use themelist extension to get the list of available themes at runtime. +
By default, the editor supports plain text mode. All other language modes are available as separate modules, loaded on demand like this:
editor.session.setMode("ace/mode/javascript");
@@ -362,8 +369,10 @@ ace.config.set("basePath", "https://url.to.a/folder/that/contains-ace-modes");
Path for one module alone can be configured with:
ace.config.setModuleUrl("ace/theme/textmate", "url for textmate.js");
- When using ace with webpack, it is possible to configure paths for all submodules using
-require("ace-builds/webpack-resolver");
+ When using ace with webpack, it is possible to configure paths for all submodules using
+require("ace-builds/esm-resolver"); // for new bundlers: webpack 5, rollup, vite
+ For webpack 4 use
+ require("ace-builds/webpack-resolver");
which depends on file-loader
Aside from our GitHub page, here's a list of places you can find help for Ace:
- -