Ello’
I have recently run into an issue where rich text is not being translated properly when I focus on a textbox and when I lost focus on the textbox
https://gyazo.com/b673a42ef7c9a34df3c4f67b4acd3185
Here is my code, CodeBox is the textbox and I am looping through every character
local FirstHalf = string.sub(CodeBox.Text,1, i, i -1)
local SecondHalf = string.sub(CodeBox.Text,i + 2)
CodeBox.Text = FirstHalf.."<b><font color=\"rgb(115, 204, 20)\">if</font></b>"..SecondHalf
Any help is greatly appreciated.