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.

GDScriptSyntaxHighlighter

Наследует: EditorSyntaxHighlighter < SyntaxHighlighter < Resource < RefCounted < Object

Подсветка синтаксиса GDScript, которую можно использовать с узлами TextEdit и CodeEdit.

Описание

Примечание: Этот класс можно использовать только для плагинов редактора, поскольку он зависит от настроек редактора.

var code_preview = TextEdit.new()
var highlighter = GDScriptSyntaxHighlighter.new()
code_preview.syntax_highlighter = highlighter