custom word higlight on textedit or label?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Santiago
:warning: Old Version Published before Godot 3 was released.

Hello, I’m trying to make some sort of code editor to write and edit code on runtime and I want to have highlights on certain keywords.

Now, I know that the textEdit node have built-in syntax highlight and other code related functionalities but, I want to highlight custom keywords, since this code editor would have a fake scripting language with custom keywords.

Now my question is, can I somehow edit the built-in highlighting feature of textEdit or, maybe easier, highlight certain words on textEdit or text labels by code?

Thank you in advance!

:bust_in_silhouette: Reply From: Victor Hernandez Can

add_keyword_color(String keyword, Color color) and
add_color_region(String beginkey, String endkey, Color color, bool line_only=false)