diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml
index 957a9689c6c..c0db8e15c22 100644
--- a/doc/classes/TextEdit.xml
+++ b/doc/classes/TextEdit.xml
@@ -262,6 +262,33 @@
Returns whether the line at the specified index is hidden or not.
+
+
+
+
+
+
+ Returns [code]true[/code] when the specified [code]line[/code] is bookmarked.
+
+
+
+
+
+
+
+
+ Returns [code]true[/code] when the specified [code]line[/code] has a breakpoint.
+
+
+
+
+
+
+
+
+ Returns [code]true[/code] when the specified [code]line[/code] is marked as safe.
+
+
@@ -357,6 +384,29 @@
Sets the text for a specific line.
+
+
+
+
+
+
+
+
+ Bookmarks the [code]line[/code] if [code]bookmark[/code] is true. Deletes the bookmark if [code]bookmark[/code] is false.
+ Bookmarks are shown in the [member breakpoint_gutter].
+
+
+
+
+
+
+
+
+
+
+ Adds or removes the breakpoint in [code]line[/code]. Breakpoints are shown in the [member breakpoint_gutter].
+
+
@@ -368,6 +418,18 @@
If [code]true[/code], hides the line of the specified index.
+
+
+
+
+
+
+
+
+ If [code]true[/code], marks the [code]line[/code] as safe.
+ This will show the line number with the color provided in the [code]safe_line_number_color[/code] theme property.
+
+
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index afff8851688..381f905a0a5 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -7085,6 +7085,12 @@ void TextEdit::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_virtual_keyboard_enabled"), &TextEdit::is_virtual_keyboard_enabled);
ClassDB::bind_method(D_METHOD("set_selecting_enabled", "enable"), &TextEdit::set_selecting_enabled);
ClassDB::bind_method(D_METHOD("is_selecting_enabled"), &TextEdit::is_selecting_enabled);
+ ClassDB::bind_method(D_METHOD("is_line_set_as_safe", "line"), &TextEdit::is_line_set_as_safe);
+ ClassDB::bind_method(D_METHOD("set_line_as_safe", "line", "safe"), &TextEdit::set_line_as_safe);
+ ClassDB::bind_method(D_METHOD("is_line_set_as_bookmark", "line"), &TextEdit::is_line_set_as_bookmark);
+ ClassDB::bind_method(D_METHOD("set_line_as_bookmark", "line", "bookmark"), &TextEdit::set_line_as_bookmark);
+ ClassDB::bind_method(D_METHOD("set_line_as_breakpoint", "line", "breakpoint"), &TextEdit::set_line_as_breakpoint);
+ ClassDB::bind_method(D_METHOD("is_line_set_as_breakpoint", "line"), &TextEdit::is_line_set_as_breakpoint);
ClassDB::bind_method(D_METHOD("cut"), &TextEdit::cut);
ClassDB::bind_method(D_METHOD("copy"), &TextEdit::copy);