Code (2D)
Code editor component.
Types
CODE
Type definition for code content.
CodeRange
Code range type representing a selected code area.
DefaultHighlightStyle
Default syntax highlight style.
Functions
insert
function insert(text: string): void;
Inserts text at the current position.
remove
function remove(range: CodeRange): void;
Removes text from the specified range.
lines
function lines(): string[];
Gets all text lines.
word
function word(): string;
Gets the word at the current position.