@Dared1111
It's for DBPro, but with a bit of modification, I could get it to work for DBC as well.
@hyrichter
Sorry about the colours, but I'm used to those now, and when I did it other colours, it looked odd!
Also, as I haven't done any work on the look yet, (I needed to see if I could do the highlighting first) I used codesurge as a base.
If you want me to change them, I will
@Prince Of Darkness
When the user edits something in the textbox, it finds all of the lines which have been affected by the change. It then loops through the letters. When a recognised command is found, it makes sure that either a newline char, a space, an open bracket, or its the end of the text, then highlights that text. It also makes sure that the char before it is not a letter or number (it could be a variable) and also that it is not between a remstart and remend. (these are checked for seperately, and the locations are stored in an array)
If it hits a ", it loops through until it finds a second one, or an end of line char.
If it hits a ` it loops until an end of line char is found.
I hope that explains it all!
@Everyone else
Thanks for the encouragement!