Re: Wishlist IDE

new topic     » goto parent     » topic index » view thread      » older message » newer message

> The way I tried the RichEdit colorization was to color as it is loaded
into
> the richedit and then color line segments as keying takes place. I didn't
do
> this with the IDE editor but with a version I use in my own multiple file
> editor which reads up to 7 entire exw files. What takes so much time is
the
> preload step. But, as has been pointed out to me, any on event with the
> exception of general should be fairly small. So I may throw it into an
> alternate editor module and let the group decide. It sure makes the editor
> easier to work with!

The preload step ? Am i missing something here or isn't the trick to pull
here called on-demand-colorization ?

I mean, when you load a file only the part that you can see has to be
colorized. When a scroll event takes place, colorize the new lines. When an
edit event takes place, re-colorize the active line. Store in a sequence
somewhere which lines are already colorized and which are not yet colorized,
so when you scroll the uncolorized lines get colorized as well. It shouldn't
be that difficult.

Ralf N.
nieuwen at xs4all.nl

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu