I am building a text editor kind of like Notepad++ and I would like to set up the color coder for key words such as And. I will be doing this for VBScript and Java.
I would like the keywords to change when the file is saved for example, when the user loads a blank document nothing will be color coded but if the document is saved as .vbs the keywords for vbs will be blue and comments ' will be green.
You'll need to use a RichTextBox as the TextBox doesn't support multiple formats. Visit the VB.NET CodeBank forum and check out Icyculur's thread on syntax highlighting.