You could create multiple arrays for different keywords which can be displayed in different colors. In order to do this you'll need to write some code, everything you need is present in that example, just extend it.
The color used for each string is set here;
If you want more elaborate highlighting, like tags in HTML, then you will need to use regular expressions.Code:For Each strKW In arrKeyWords MyRow = Words.NewRow() MyRow("Word") = strKW MyRow("Color") = Color.LightCoral.Name Words.Rows.Add(MyRow) Next




Reply With Quote