|
-
Mar 26th, 2003, 04:46 PM
#1
Thread Starter
Hyperactive Member
VB Code syntax highlight control and/or library *resolved*
is there a library and/or control, that will colour and properly format vb code thats in a richtextbox?
Last edited by Colonel Klink; Mar 27th, 2003 at 05:46 PM.
-
Mar 26th, 2003, 05:31 PM
#2
PowerPoster
-
Mar 27th, 2003, 04:40 PM
#3
Fanatic Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|