From e5dd49b0cc1fc253ce60cc5ff76e7c0675903369 Mon Sep 17 00:00:00 2001 From: Harutyun Amirjanyan Date: Thu, 6 Apr 2023 14:08:01 +0000 Subject: [PATCH] add playground and fix documentation --- index.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 30dbdbeba23..28f80e842c6 100644 --- a/index.html +++ b/index.html @@ -53,7 +53,7 @@

The high performance code ed
                             <a href=Real World Users
  • - Support + Try
  • @@ -137,6 +137,11 @@

    Related Projects

  • Ace wrapper for ExtJS
  • Ace wrapper for GWT
  • +

    Getting Help

    +

    Embedding Ace in Your Site

    @@ -220,7 +225,9 @@

    Changing the size of the editor

    Setting Themes

    Themes are loaded on demand; all you have to do is pass the string name:

    editor.setTheme("ace/theme/twilight");
    -

    > See all themes

    +

    > See all themes. + Or use themelist extension to get the list of available themes at runtime. +

    Setting the Programming Language Mode

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

    Configure dynamic loading of modes and themes

    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

    @@ -1143,15 +1152,6 @@

    Projects Using Ace

    -
    -

    Support and User Resources

    -

    Aside from our GitHub page, here's a list of places you can find help for Ace:

    - -