Hey guys

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.

If anyone can help me out that would be great!