Highlight text in a text box?

I have a text box where the user can enter code. My interpreter can give precise line and column errors, which I’d like to draw the players attention to with some kind of highlighting. Is there a way to get the “bounding box” of an area of text in a text box?

If you mean a Hightlight on a gui instance, then you can use UIStroke
UIStroke | Documentation - Roblox Creator Hub

This would work but I need to apply it to a specific range of characters.

you need to use RichText
Enable .RichText property and you can use this plugin for formatting:

Can I change the stroke mode to border with rich text?

Nevermind I see on that page that there is in fact a highlight option.

ye you can
You can change pretty much everything with it
I even think you can change its outline alghoritm (althrough unsure)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.