Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EditorSyntaxHighlighter¶
继承: SyntaxHighlighter < Resource < RefCounted < Object
ScriptEditor 所使用的 SyntaxHighlighter 的基类。
描述¶
扩展了 ScriptEditor 的编辑器所使用的所有 SyntaxHighlighter 的基类。
请通过调用 ScriptEditorBase.add_syntax_highlighter 为各个脚本添加语法高亮器。要在打开时应用于所有脚本,请调用 ScriptEditor.register_syntax_highlighter。
方法¶
_get_name ( ) virtual const |
|
_get_supported_languages ( ) virtual const |
方法说明¶
String _get_name ( ) virtual const
虚函数,可以在重写后返回语法高亮器的名称。
PackedStringArray _get_supported_languages ( ) virtual const
虚函数,可以在重写后返回所支持的语言名称。