0 votes

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:
Example

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.

in Engine by (15 points)

1 Answer

+2 votes
Best answer

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

by (8,543 points)
selected by

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories