The author use an RTF tag called /highlight# to implementing highlighting in RichTextBox: RichTextBox with background highlighting in VB.NET
Adds support for setting the background color in the RichTextBox: Background Highlighting with the RichTextBox the System way.