Path: blob/master/modules/gdscript/doc_classes/GDScriptSyntaxHighlighter.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="GDScriptSyntaxHighlighter" inherits="EditorSyntaxHighlighter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3A GDScript syntax highlighter that can be used with [TextEdit] and [CodeEdit] nodes.4</brief_description>5<description>6[b]Note:[/b] This class can only be used for editor plugins because it relies on editor settings.7[codeblocks]8[gdscript]9var code_preview = TextEdit.new()10var highlighter = GDScriptSyntaxHighlighter.new()11code_preview.syntax_highlighter = highlighter12[/gdscript]13[csharp]14var codePreview = new TextEdit();15var highlighter = new GDScriptSyntaxHighlighter();16codePreview.SyntaxHighlighter = highlighter;17[/csharp]18[/codeblocks]19</description>20<tutorials>21</tutorials>22</class>232425