EditorSyntaxHighlighter
Inherits: SyntaxHighlighter < Resource < RefCounted < Object
Description
Section titled “Description”Base class for SyntaxHighlighter used by the ScriptEditor.
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
Section titled “Methods”| Returns | Method |
|---|---|
| EditorSyntaxHighlighter | _create() virtual const |
| String | _get_name() virtual const |
| PackedStringArray | _get_supported_languages() virtual const |
Method descriptions
Section titled “Method descriptions”_create
EditorSyntaxHighlighter _create() virtual const
Virtual method which creates a new instance of the syntax highlighter.
_get_name
String _get_name() virtual const
Virtual method which can be overridden to return the syntax highlighter name.
_get_supported_languages
PackedStringArray _get_supported_languages() virtual const
Virtual method which can be overridden to return the supported language names.
