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

Eredita: EditorSyntaxHighlighter < SyntaxHighlighter < Resource < RefCounted < Object

Un evidenziatore della sintassi di GDScript che può essere utilizzato con i nodi TextEdit e CodeEdit.

Descrizione

Nota: Questa classe può essere utilizzata solo per le estensioni dell'editor, poiché dipende dalle impostazioni dell'editor.

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