From 12f00535555f8ac94a3da2a561f51357502e7a6d Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Mon, 28 Jun 2021 17:14:44 +0100 Subject: Move auto brace completion to CodeEdit --- doc/classes/CodeEdit.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++ doc/classes/TextEdit.xml | 8 ++++++++ 2 files changed, 53 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/CodeEdit.xml b/doc/classes/CodeEdit.xml index 6a3f38f51e..1a6311c905 100644 --- a/doc/classes/CodeEdit.xml +++ b/doc/classes/CodeEdit.xml @@ -30,6 +30,18 @@ Override this method to define what happens when the user requests code completion. If [code]force[/code] is true, any checks should be bypassed. + + + + + + + + + Adds a brace pair. + Both the start and end keys must be symbols. Only the start key has to be unique. + + @@ -137,6 +149,15 @@ Folds the given line, if possible (see [method can_fold_line]). + + + + + + + Gets the matching auto brace close key for [code]open_key[/code]. + + @@ -219,6 +240,24 @@ Returns the full text with char [code]0xFFFF[/code] at the caret location. + + + + + + + Returns [code]true[/code] if close key [code]close_key[/code] exists. + + + + + + + + + Returns [code]true[/code] if open key [code]open_key[/code] exists. + + @@ -378,6 +417,12 @@ + + Sets whether brace pairs should be autocompleted. + + + Sets the brace pairs to be autocompleted. + Sets whether code completion is allowed. diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 5444721e10..cc5c36bbd3 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -16,6 +16,14 @@ A virtual method that is called whenever backspace is triggered. + + + + + + + + -- cgit v1.2.3