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
被繼承: GDScriptSyntaxHighlighter
ScriptEditor 所使用的 SyntaxHighlighter 的基底類別。
說明
擴充了 ScriptEditor 的編輯器所使用的所有 SyntaxHighlighter 的基底類別。
請通過呼叫 ScriptEditorBase.add_syntax_highlighter() 為各個腳本新增語法高亮器。要在打開時套用於所有腳本,請呼叫 ScriptEditor.register_syntax_highlighter()。
方法
_create() virtual const |
|
_get_name() virtual const |
|
_get_supported_languages() virtual const |
方法說明
EditorSyntaxHighlighter _create() virtual const 🔗
Virtual method which creates a new instance of the syntax highlighter.
String _get_name() virtual const 🔗
虛函式,可以在重寫後返回語法高亮器的名稱。
PackedStringArray _get_supported_languages() virtual const 🔗
虛函式,可以在重寫後返回所支援的語言名稱。