couldn't you just hilight only the lines that are to be displayed, and then do it as you go?
would that take too long on tall screens?
Then it would have to update the highlighting at every incremental change of the scroll position, and wouldn't update when the text changes (until it gets scrolled).
The editor is fine at updating while you type—I don't notice any lag at all when I'm typing a TI-BASIC program. The lag starts to get noticeable only when you open or paste a program that's somewhat long (more than a few dozen lines). The most reasonable solution is to put the highlighter in a separate thread so it can do its work without interfering in the user's typing, but that would involve restructuring the whole thing and will take a while for me to do.
UpdateNew:- Saving files - pressing Ctrl+S or clicking Save will tokenize the program to an 8XP
- Help - the help icon actually does something now, though it's not terribly useful yet
The name of the program generated goes in the text box between Open and Save, and you can toggle the checkbox at the bottom-right corner to set whether the program should be edit-locked or not (on the calculator).
The download is still in the first post.