Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

EditorSyntaxHighlighter

Inherits: SyntaxHighlighter < Resource < RefCounted < Object

Base class for SyntaxHighlighter used by the ScriptEditor.

Description

Base class that all SyntaxHighlighters used by the ScriptEditor extend from.

Add a syntax highlighter to an individual script by calling ScriptEditorBase.add_syntax_highlighter. To apply to all scripts on open, call ScriptEditor.register_syntax_highlighter.

Methods

String

_get_name() virtual const

PackedStringArray

_get_supported_languages() virtual const


Method Descriptions

String _get_name() virtual const 🔗

Virtual method which can be overridden to return the syntax highlighter name.


PackedStringArray _get_supported_languages() virtual const 🔗

Virtual method which can be overridden to return the supported language names.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.