summaryrefslogtreecommitdiff
path: root/doc/classes/EditorSyntaxHighlighter.xml
blob: b80e81928f333686d54a53ce50c1b74a9a2564fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8" ?>
<class name="EditorSyntaxHighlighter" inherits="SyntaxHighlighter" version="4.0">
	<brief_description>
		Base Syntax highlighter resource for the [ScriptEditor].
	</brief_description>
	<description>
		Base syntax highlighter resource all editor syntax highlighters extend from, it is used in the [ScriptEditor].
		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]
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="_get_name" qualifiers="virtual">
			<return type="String">
			</return>
			<description>
				Virtual method which can be overridden to return the syntax highlighter name.
			</description>
		</method>
		<method name="_get_supported_extentions" qualifiers="virtual">
			<return type="Array">
			</return>
			<description>
				Virtual method which can be overridden to return the supported file extensions.
			</description>
		</method>
		<method name="_get_supported_languages" qualifiers="virtual">
			<return type="Array">
			</return>
			<description>
				Virtual method which can be overridden to return the supported language names.
			</description>
		</method>
	</methods>
	<constants>
	</constants>
</class>