Highlighting text in RichTextLabel

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

Hi all,

Lately I have been using RichTextLabels a lot and I like the functionality that comes with it. Something I haven’t been able to do, however, is to highlight certain text. I don’t think this formatting option exists in RichTextLabels, but I was wondering if anyone has ideas for workarounds.

This is what I’m trying to do:

If I were able to get the exact position of a word, I could possibly use a ColorRect, but I don’t know how to accomplish that.

:bust_in_silhouette: Reply From: Calinou

Highlighting text in RichTextLabel isn’t implemented yet, but there’s an open pull request which implements precisely the feature you need.

Good to know! I don’t really know how to compile a custom version of Godot (I’m using the standard version), but I’ll try to find out how that works.

Erik95 | 2020-10-13 16:20