Skip to content
0.2.0-dev Download ZIP
32 lines ·1.3 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="EditorSyntaxHighlighter" inherits="SyntaxHighlighter" api_type="editor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Base class for [SyntaxHighlighter] used by the [ScriptEditor].
5 </brief_description>
6 <description>
7 Base class that all [SyntaxHighlighter]s used by the [ScriptEditor] extend from.
8 Add a syntax highlighter to an individual script by calling [method ScriptEditorBase.add_syntax_highlighter]. To apply to all scripts on open, call [method ScriptEditor.register_syntax_highlighter].
9 </description>
10 <tutorials>
11 </tutorials>
12 <methods>
13 <method name="_create" qualifiers="virtual const">
14 <return type="EditorSyntaxHighlighter" />
15 <description>
16 Virtual method which creates a new instance of the syntax highlighter.
17 </description>
18 </method>
19 <method name="_get_name" qualifiers="virtual const">
20 <return type="String" />
21 <description>
22 Virtual method which can be overridden to return the syntax highlighter name.
23 </description>
24 </method>
25 <method name="_get_supported_languages" qualifiers="virtual const">
26 <return type="PackedStringArray" />
27 <description>
28 Virtual method which can be overridden to return the supported language names.
29 </description>
30 </method>
31 </methods>
32</class>