There are 2 good options -
1. Replace, for example, every "Dim" with "<font color=red>Dim</font>"
2. A better solution, which will prevent coloring words that are not related to the code (for instance, "dim" in a comment...), will be to use tags.
Here is an example -
In your DB the code will look like this:
[red]Dim a[/red] [silver]' Declaration [/silver]
On your code you will replace [red] with <font color="red">. and [/red] with </font>
And so on...
Shay
---------------
"We'll never give up, it's no use" (Blink 182)