🧩 MonacoEditor
An extension for MIT App Inventor 2.A non-visible component that provides a powerful code editor using the Monaco Editor library. It allows you to embed a fully-featured code editor in your app, supporting syntax highlighting for multiple programming languages, themes, and read-only mode.
Specifications
Package: com.ahmedislam.monacoeditor
Size: 16.05 KB
Version: 1.0
Minimum API Level: 14
Updated On: 2026-03-05T22:00:00Z
Built & documented using: FAST v5.4.0
Event:
MonacoEditor has total 1 event.
1. EditorReady
Triggered when the editor is fully loaded and ready
Method:
MonacoEditor has total 1 method.
1. Initialize
Initialize the Monaco Editor in the specified arrangement
| Parameter | Type |
|---|---|
| arrangement | component |
Designer:
MonacoEditor has total 3 designer properties.
1. CodeLanguage
- Input type:
choices - Arguments:
javascript,typescript,python,java,cpp,csharp,html,css,json,sql,php,ruby,go,rust,kotlin,swift,xml,markdown,yaml
2. Theme
- Input type:
choices - Default value:
vs - Arguments:
vs,vs-dark,hc-black,hc-light
3. ReadOnly
- Input type:
boolean - Default value:
False
Setters:
MonacoEditor has total 4 setter properties.
1. CodeLanguage
The programming language for syntax highlighting
- Input type:
text
2. Theme
The editor theme
- Input type:
text
3. ReadOnly
Whether the editor is read-only
- Input type:
boolean
4. Text
Gets the current text/content of the editor
- Input type:
text
Getters:
MonacoEditor has total 4 getter properties.
1. CodeLanguage
The programming language for syntax highlighting
- Return type:
text
2. Theme
The editor theme
- Return type:
text
3. ReadOnly
Whether the editor is read-only
- Return type:
boolean
4. Text
Gets the current text/content of the editor
- Return type:
text
Blocks samples:
NOTE: The "
Container1" and "container2" Are Vertical Arrangements.
Screenshot of the editor:
Sample AIA Here
com.ahmedislam.monacoeditor.aix (16.1 KB)
Thank you.

