You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/classes/CodeEdit.xml
+52
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,15 @@
137
137
Values of [code]-1[/code] convert the entire text.
138
138
</description>
139
139
</method>
140
+
<methodname="create_code_region">
141
+
<returntype="void" />
142
+
<description>
143
+
Creates a new code region with the selection. At least one single line comment delimiter have to be defined (see [method add_comment_delimiter]).
144
+
A code region is a part of code that is highlighted when folded and can help organize your script.
145
+
Code region start and end tags can be customized (see [method set_code_region_tags]).
146
+
Code regions are delimited using start and end tags (respectively [code]region[/code] and [code]endregion[/code] by default) preceded by one line comment delimiter. (eg. [code]#region[/code] and [code]#endregion[/code])
147
+
</description>
148
+
</method>
140
149
<methodname="do_indent">
141
150
<returntype="void" />
142
151
<description>
@@ -200,6 +209,18 @@
200
209
Gets the index of the current selected completion option.
[b]Note:[/b] When using the GDScript syntax highlighter, this is replaced by the function definition color configured in the syntax theme for function definitions (e.g. [code]func _ready():[/code]).
0 commit comments