Up to date

This page is up to date for Godot 4.3. If you still find outdated information, please open an issue.

ScriptEditorBaseΒΆ

Inherits: VBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object

Base editor for editing scripts in the ScriptEditor.

DescriptionΒΆ

Base editor for editing scripts in the ScriptEditor. This does not include documentation items.

MethodsΒΆ

void

add_syntax_highlighter(highlighter: EditorSyntaxHighlighter)

Control

get_base_editor() const


SignalsΒΆ

edited_script_changed() πŸ”—

Emitted after script validation.


go_to_help(what: String) πŸ”—

Emitted when the user requests a specific documentation page.


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() πŸ”—

Emitted after script validation or when the edited resource has changed.


replace_in_files_requested(text: String) πŸ”—

Emitted when the user request to find and replace text in the file system.


request_help(topic: String) πŸ”—

Emitted when the user requests contextual help.


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.


request_save_history() πŸ”—

Emitted when the user contextual goto and the item is in the same script.


request_save_previous_state(state: Dictionary) πŸ”—

Emitted when the user changes current script or moves caret by 10 or more columns within the same script.


search_in_files_requested(text: String) πŸ”—

Emitted when the user request to search text in the file system.


Method DescriptionsΒΆ

void add_syntax_highlighter(highlighter: EditorSyntaxHighlighter) πŸ”—

Adds a EditorSyntaxHighlighter to the open script.


Control get_base_editor() const πŸ”—

Returns the underlying Control used for editing scripts. For text scripts, this is a CodeEdit.