Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0
. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
EditorSyntaxHighlighter¶
Inherits: SyntaxHighlighter < Resource < RefCounted < Object
Base Syntax highlighter resource for the ScriptEditor.
Description¶
Base syntax highlighter resource all editor syntax highlighters extend from, it is used in the ScriptEditor.
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¶
_get_name ( ) virtual const |
|
_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.