Anyone knows how to code a Color Syntax?

So i have this empty function that runs 24/7 since it started can anyone make a script that highlights every word that contains "pause" and "test" to the rgb color 0,0,255? im trying to make a code editor

Im using WinForm (i know my mistake but i cant reverse it)
.Net framework 4.7.2

Function:
private void ColorizeText()
{

}
Was this page helpful?