How to indent in TextEdit node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nugget

im making a text editor in godot and i want to make it so the user can indent automatically after pressing enter in an if statement or function

:bust_in_silhouette: Reply From: Help me please

for this you need to use LineEdit node and connect its text_entered signal to your script. And you might need to use this code

var any_vriable

func _on_LineEdit_textentered(newtext):
any_variable = newtext
print(any_variable)