W3cubDocs

/Godot 4.2

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 ( EditorSyntaxHighlighter highlighter )

Control

get_base_editor ( ) const

Signals

edited_script_changed ( )

Emitted after script validation.

go_to_help ( String what )

Emitted when the user requests a specific documentation page.

go_to_method ( Object script, String method )

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 ( String text )

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

request_help ( String topic )

Emitted when the user requests contextual help.

request_open_script_at_line ( Object script, int line )

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.

search_in_files_requested ( String text )

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

Method Descriptions

void add_syntax_highlighter ( EditorSyntaxHighlighter highlighter )

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.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_scripteditorbase.html