Ace Code Editor

Demo to preview the plugin:

Introduction

This is a high-performance code editor plugin for the web. You can use this element to write code in a specific language with useful syntax highlighting. The plugin has the ability to change the language, theme, font and reading mode using actions. Also, the written code can be downloaded.
Image without caption

How to setup

  1. Configure the Plugin:
    1. After adding the Code Editor element to your page:
      • Open the element's settings panel.
      • Adjust the following settings to fit your application requirements:
        • Language: Set the programming language for syntax highlighting (e.g., JavaScript, Python, HTML).
        • Theme: Choose the editor's theme, such as "monokai" (dark) or "github" (light).
        • Read-Only Mode: Enable or disable the user's ability to edit the content.
        • Font Size: Adjust the font size to improve readability for your users.
          • Element β†’ Code Editor.
            Element β†’ Code Editor.
  1. Adjust Settings:
      • Adjust the Code Editor’s layout, size, and other appearance-related properties to match your app’s design.
      • Add workflows to leverage dynamic features, such as changing themes, resetting content, or downloading files.

Plugin Element Properties

Code Editor

Element properties.
Element properties.
Fields:
Title
Description
Type
Language
Available options: C/C++, C#, CSS, Django, Gitignore, Golang, HTML, Java, JavaScript, JSON, Kotlin, LESS, Markdown, Perl, PHP, Python, R, Ruby, SCSS, SQL, TypeScript, XML
Dropdown
Theme
Available options: Ambiance, Chrome, Clouds, Cobalt, Dracula, Eclipse, GitHub, Monokai, One Dark, SQLServer, Terminal, Textmate, Twilight, Tomorrow night, Tomorrow night blue, XCode
Dropdown
Default Value
The default code content to show in the editor when it first loads.
Text (optional)
Font size
The size of the font in pixels, adjusting how large or small the text appears in the editor.
Number
Read Only
Determines whether the editor is in read-only mode, preventing changes to the content.
Checkbox (yes/no)

Element Actions

  1. Reset value - Resets the value in the editor to its initial state or a default value.
    1. Workflow action.
      Workflow action.
  1. Set font size - Sets the font size in the editor.
    1. Workflow action.
      Workflow action.
      Title
      Description
      Type
      Font size
      The font size to be applied.
      Number
  1. Set language - Sets the programming language for the editor to the specified language.
    1. Workflow action.
      Workflow action.
Title
Description
Type
Language
Use one of this: C/C++, C#, CSS, Django, Gitignore, Golang, HTML, Java, JavaScript, JSON, Kotlin, LESS, Markdown, Perl, PHP, Python, R, Ruby, SCSS, SQL, TypeScript, XML Available options: C/C++, CSS, JavaScript, HTML
Text
  1. Set Read Only mode - Enables or disables the read-only mode in the editor.
    1. Workflow action.
      Workflow action.
      Title
      Description
      Type
      Read Only
      Defines whether the editor is in read-only mode.
      Checkbox (yes/no)
  1. Set theme - Changes the visual theme of the editor.
    1. Workflow action.
      Workflow action.
      Title
      Description
      Type
      Theme
      Use one of this: Ambiance, Chrome, Clouds, Cobalt, Dracula, Eclipse, GitHub, Monokai, One Dark, SQLServer, Terminal, Textmate, Twilight, Tomorrow night, Tomorrow night blue, XCode
      Text
  1. Set value - Sets a specific value to the editor's content.
    1. Title
      Description
      Type
      Value
      The value to be applied to the editor.
      Text
  1. Download file - Allows downloading a file from the editor's content.
    1. Workflow action.
      Workflow action.
      Title
      Description
      Type
      File name
      The name of the file to be downloaded.
      Text

Exposed states

Title
Description
Type
Value
The current content of the code editor.
Text
Read Only mode
Indicates whether the editor is in read-only mode.
Checkbox (yes/no)
Cursor row
The current row where the cursor is located in the editor.
Number
Cursor column
The current column where the cursor is located in the editor.
Number
File extension
The file extension associated with the current file.
Text
Available languages
A list of available programming languages for the editor.
Text
Available themes
A list of available themes for the editor.
Text
Image without caption

Changelogs