If you want to highlight part of the text in a TextBox rather than selecting it, you need a specialized textbox control.
You also might try this one:
Fast Colored TextBox for Syntax Highlighting[
^]
It is not easy to make your own textbox implementation, since it relays on low level api tools - but you can start from it's original code.