HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jass Editor 1.0 - Syntax Highlighting and more

10-16-2003, 09:59 PM#61
JonahDean
Quote:

However, I was unable to make a functional undo/redo feature, you'll have to make do without :////


I'm not sure what you tried as far as undo/redo, but a common and effective way to implement it (at least in the examples I've seen) is to use a page-type method where each time a change to the document is made, the previous copy of the document is saved in memory (usually in a linked list). Then when you click the undo button, just switch one of the documents from the list to the active document and update the view. The maximum length of the list, of course, determines the number of levels of Undo you can have.

Of course that's a pretty rudimentary explaination of how it would work, but it's a start.
10-17-2003, 09:30 AM#62
KaTTaNa
The problem is that if you click undo that way it will have to re-color the entire document again.

Anyway, I'm not going to make more improvements to editor for quite a while now...
10-17-2003, 04:48 PM#63
Nozdormu
Why is that? A copy of the document would include the color, font, etc.
10-24-2003, 02:36 PM#64
Vexorian
NExt time you update your program could you add Wildcard support to the browser

like *camera*

will make every function that has camera inside the name appear?