From 1a0cfc219b732870754046dd45264ca24f901f93 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Tue, 15 Jun 2021 15:05:01 +0100 Subject: Move indent management to CodeEdit --- doc/classes/CodeEdit.xml | 40 +++++++++++++++++++++++++++++++++ doc/classes/TextEdit.xml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/CodeEdit.xml b/doc/classes/CodeEdit.xml index c7dbd86c55..30fd47cdb6 100644 --- a/doc/classes/CodeEdit.xml +++ b/doc/classes/CodeEdit.xml @@ -143,6 +143,20 @@ Inserts the selected entry into the text. If [code]replace[/code] is true, any existing text is replaced rather then merged. + + + + + Perform an indent as if the user activated the "ui_text_indent" action. + + + + + + + Perform an unindent as if the user activated the "ui_text_unindent" action. + + @@ -278,6 +292,13 @@ Returns [code]true[/code] if string [code]start_key[/code] exists. + + + + + Indents selected lines, or in the case of no selection the caret line by one. + + @@ -441,6 +462,13 @@ Unfolds all lines that were previously folded. + + + + + Unindents selected lines, or in the case of no selection the caret line by one. + + @@ -475,6 +503,18 @@ + + Sets whether automatic indent are enabled, this will add an extra indent if a prefix or brace is found. + + + Prefixes to trigger an automatic indent. + + + Size of tabs, if [code]indent_use_spaces[/code] is enabled the amount of spaces to use. + + + Use spaces instead of tabs for indentation. + Sets whether line folding is allowed. diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 03e4556c92..6a3c124c60 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -10,6 +10,12 @@ + + + + + + @@ -18,6 +24,12 @@ + + + + + + @@ -96,6 +108,12 @@ Cut's the current selection. + + + + + + @@ -110,6 +128,14 @@ Gets the caret pixel draw poistion. + + + + + + + + @@ -140,6 +166,14 @@ + + + + + + + + @@ -274,6 +308,12 @@ Returns the selection end line. + + + + + + @@ -354,6 +394,16 @@ Triggers a right-click menu action by the specified index. See [enum MenuItems] for a list of available indexes. + + + + + + + + + + @@ -611,6 +661,14 @@ + + + + + + + + -- cgit v1.2.3