is there a library and/or control, that will colour and properly format vb code thats in a richtextbox?
Printable View
is there a library and/or control, that will colour and properly format vb code thats in a richtextbox?
try planetsourcecode
i have done the same for html and here is my advice.
do not colorize all richtextbox text this is stupid.
just colorize the VISIBLE richtextbox this means you have to send a em_getfirstvisible message to the richtextbox to get the number of the first visible line and calculate the last visible line (add some lines).
then execute the coloring part only for this range. it will be very quick !
also use lockwindowupdate so that the richtextbox does not flicker