ScriptEditorBase
Inherits: VBoxContainer < BoxContainer < Container < Control < CanvasItem < Entity < Object
Description
Section titled “Description”Base editor for editing scripts in the ScriptEditor.
Base editor for editing scripts in the ScriptEditor. This does not include documentation items.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| void | add_syntax_highlighter(highlighter: EditorSyntaxHighlighter) |
| Control | get_base_editor() const |
Signals
Section titled “Signals”go_to_help
go_to_help(what: String)
Emitted when the user requests a specific documentation page.
go_to_method
go_to_method(script: Object, method: String)
Emitted when the user requests to view a specific method of a script, similar to request_open_script_at_line.
name_changed
name_changed()
Emitted after script validation or when the edited resource has changed.
request_help
request_help(topic: String)
Emitted when the user requests contextual help.
request_open_script_at_line
request_open_script_at_line(script: Object, line: int)
Emitted when the user requests to view a specific line of a script, similar to go_to_method.
Method descriptions
Section titled “Method descriptions”add_syntax_highlighter
void add_syntax_highlighter(highlighter: EditorSyntaxHighlighter)
Adds an EditorSyntaxHighlighter to the open script.
get_base_editor
Control get_base_editor() const
Returns the underlying Control used for editing scripts. For text scripts, this is a CodeEdit.
