Godot editor's script editor.
Emitted when user changed active script. Argument is a freshly activated Script.
Emitted when editor is about to close the active script. Argument is a Script that is going to be closed.
Returns array of breakpoints.
Returns the ScriptEditorBase object that the user is currently editing.
Returns a Script that is currently active in editor.
Returns an array with all ScriptEditorBase objects which are currently open in editor.
Returns an array with all Script objects which are currently open in editor.
Opens help for the given topic. The topic
is an encoded string that controls which class, method, constant, signal, annotation, property, or theme item should be focused.
The supported topic
formats include class_name:class
, class_method:class:method
, class_constant:class:constant
, class_signal:class:signal
, class_annotation:class:@annotation
, class_property:class:property
, and class_theme_item:class:item
, where class
is the class name, method
is the method name, constant
is the constant name, signal
is the signal name, annotation
is the annotation name, property
is the property name, and item
is the theme item.
Goes to the specified line in the current script.
Opens the script create dialog. The script will extend base_name
. The file extension can be omitted from base_path
. It will be added based on the selected scripting language.
Registers the EditorSyntaxHighlighter to the editor, the EditorSyntaxHighlighter will be available on all open scripts.
Note: Does not apply to scripts that are already opened.
Unregisters the EditorSyntaxHighlighter from the editor.
Note: The EditorSyntaxHighlighter will still be applied to scripts that are already opened.
Updates the documentation for the given script
if the script's documentation is currently open.
Note: This should be called whenever the script is changed to keep the open documentation state up to date.