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

Hereda: EditorSyntaxHighlighter < SyntaxHighlighter < Resource < RefCounted < Object

Un resaltador de sintaxis de GDScript que se puede usar con nodos TextEdit y CodeEdit.

Descripción

Note: This class can only be used for editor plugins because it relies on editor settings.

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