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 (currently not working). To apply to all scripts on open, call ScriptEditor.register_syntax_highlighter

Methods

String

_get_name ( ) virtual const

Array

_get_supported_languages ( ) virtual const

Method Descriptions

  • String _get_name ( ) virtual const

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


  • Array _get_supported_languages ( ) virtual const

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