format specific words within text

I have a text stored within a variable and displayed on a textbox. Is there a way to automatically format (bold, italic, color) certain words=

 

For example: the words "apples" and "bananas" should be formated automatically.

Text in variable: "I like to eat apples and bananas."
Text shown in text-box should look like this: "I like to eat apples and bananas."

2 Replies