Instant Color Coding

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Goh (Goh_at_discussions.microsoft.com)
Date: 09/02/04


Date: Wed, 1 Sep 2004 18:13:04 -0700

May I know how to develop application (Using Visual Basic) as like SQL Query
Analyzer that color code the text as user enter the script without any delay.
Currently I use 2 For loops (The outer one used to color string and comment
while the inner one used to color the keyword) and the drawback was it took 4
seconds to color a stored procedure of approx 2500 lines.

Thank you very much if you could suggest a better solution or is there any
references I can make use of it.


Quantcast