Godot Version
Godot 4.8.dev4
Question
I have a RichTextLabel with a text that’s built using append_text() with BBCode.
I want to replace a specific line of the existing content, for example:
Line 1
Line 2
Line 3
I want to replace Line 2 with something else, while keeping all the BBCode formatting of the rest of the RichTextLabel intact.
The problem is that get_parsed_text() only gives me the plain text, and text doesn’t contain the content added through append_text().
Is there a proper way to replace a specific line in a RichTextLabel without having to maintain a separate copy of the entire BBCode text?
I’m currently trying to make something like:
replace_line(2, "New line")
while preserving the existing formatting/content of every other line.