b68dd2e189
This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="EditorSyntaxHighlighter" inherits="SyntaxHighlighter" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<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 const">
|
|
<return type="String" />
|
|
<description>
|
|
Virtual method which can be overridden to return the syntax highlighter name.
|
|
</description>
|
|
</method>
|
|
<method name="_get_supported_languages" qualifiers="virtual const">
|
|
<return type="Array" />
|
|
<description>
|
|
Virtual method which can be overridden to return the supported language names.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
</class>
|