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
EditorSyntaxHighlighter _create() virtual constVirtual method which creates a new instance of the syntax highlighter.
String _get_name() virtual const
String _get_name() virtual constVirtual method which can be overridden to return the syntax highlighter name.
PackedStringArray _get_supported_languages() virtual const
PackedStringArray _get_supported_languages() virtual constVirtual method which can be overridden to return the supported language names.