Class reference

EditorSyntaxHighlighter

Inherits SyntaxHighlighter

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

EditorSyntaxHighlighter _create() virtual const

Virtual method which creates a new instance of the syntax highlighter.

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.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.