diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2021-10-11 18:13:31 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2021-10-11 18:13:31 +0100 |
commit | 3010bca41ba31fdb5c3c4b7181fd92f8e8f116aa (patch) | |
tree | 8de8311e06aeab3e12551750b50a71c5c82e385f /doc | |
parent | 94ce83beff04b35aa3d5812a210ea4f34028e054 (diff) |
Move add_syntax_highlighter bind to ScriptEditorBase
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/EditorSyntaxHighlighter.xml | 2 | ||||
-rw-r--r-- | doc/classes/ScriptEditorBase.xml | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/classes/EditorSyntaxHighlighter.xml b/doc/classes/EditorSyntaxHighlighter.xml index 8880ce4d44..462323a067 100644 --- a/doc/classes/EditorSyntaxHighlighter.xml +++ b/doc/classes/EditorSyntaxHighlighter.xml @@ -5,7 +5,7 @@ </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 ScriptEditorBase._add_syntax_highlighter (currently not working). To apply to all scripts on open, call [method ScriptEditor.register_syntax_highlighter] + 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> diff --git a/doc/classes/ScriptEditorBase.xml b/doc/classes/ScriptEditorBase.xml index 1e72fe9090..88adeaf12f 100644 --- a/doc/classes/ScriptEditorBase.xml +++ b/doc/classes/ScriptEditorBase.xml @@ -9,6 +9,13 @@ <tutorials> </tutorials> <methods> + <method name="add_syntax_highlighter"> + <return type="void" /> + <argument index="0" name="highlighter" type="EditorSyntaxHighlighter" /> + <description> + Adds a [EditorSyntaxHighlighter] to the open script. + </description> + </method> <method name="get_base_editor" qualifiers="const"> <return type="Control" /> <description> |