Hi, i want to have syntax highlighting for Java in RichTextBox1.

When the user entres "//" (without quotes), i want the "//" to turn green, while the rest of the text stays black.

i've started with:

If RichTextBox1.Text.ToLower.Contains("//") Then
'do something
End If

I hope i make sense, thanks for your help. (: