diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml
index 001cf06db46..bbf86cf84d3 100644
--- a/doc/classes/TextEdit.xml
+++ b/doc/classes/TextEdit.xml
@@ -255,7 +255,7 @@
- Returns the type of the gutter at the given index.
+ Returns the type of the gutter at the given index. Gutters can contain icons, text, or custom visuals. See [enum TextEdit.GutterType] for options.
@@ -329,7 +329,7 @@
- Returns the icon currently in [param gutter] at [param line].
+ Returns the icon currently in [param gutter] at [param line]. This only works when the gutter type is [constant GUTTER_TYPE_ICON] (see [method set_gutter_type]).
@@ -353,7 +353,7 @@
- Returns the text currently in [param gutter] at [param line].
+ Returns the text currently in [param gutter] at [param line]. This only works when the gutter type is [constant GUTTER_TYPE_STRING] (see [method set_gutter_type]).
@@ -897,7 +897,7 @@
- Set a custom draw method for the gutter. The callback method must take the following args: [code]line: int, gutter: int, Area: Rect2[/code].
+ Set a custom draw method for the gutter. The callback method must take the following args: [code]line: int, gutter: int, Area: Rect2[/code]. This only works when the gutter type is [constant GUTTER_TYPE_CUSTOM] (see [method set_gutter_type]).
@@ -929,7 +929,7 @@
- Sets the type of gutter.
+ Sets the type of gutter. Gutters can contain icons, text, or custom visuals. See [enum TextEdit.GutterType] for options.
@@ -995,7 +995,7 @@
- Sets the icon for [param gutter] on [param line] to [param icon].
+ Sets the icon for [param gutter] on [param line] to [param icon]. This only works when the gutter type is [constant GUTTER_TYPE_ICON] (see [method set_gutter_type]).
@@ -1022,7 +1022,7 @@
- Sets the text for [param gutter] on [param line] to [param text].
+ Sets the text for [param gutter] on [param line] to [param text]. This only works when the gutter type is [constant GUTTER_TYPE_STRING] (see [method set_gutter_type]).
@@ -1403,13 +1403,13 @@
Line wrapping occurs at the control boundary, beyond what would normally be visible.
- Draw a string.
+ When a gutter is set to string using [method set_gutter_type], it is used to contain text set via the [method set_line_gutter_text] method.
- Draw an icon.
+ When a gutter is set to icon using [method set_gutter_type], it is used to contain an icon set via the [method set_line_gutter_icon] method.
- Custom draw.
+ When a gutter is set to custom using [method set_gutter_type], it is used to contain custom visuals controlled by a callback method set via the [method set_gutter_custom_draw] method.