Simon Steele:
I tried to implement something like this outside Scintilla using python scripting to handle events and define templates. I could create some highlighted areas and mirror edits across locations but I found that the undo model didn't quite fit right and I also had to do a lot of work to manage the key-press interactions.
Visual Studio and TextMate appear to mirror differently - VS propagates a field when you leave (creating another undo event) whereas TextMate appears to mirror as you type. Is your undo problem that you want to mirror while typing but don't want an undo action for each key press? In that case, it should be possible for there to be a variant of SCI_BEGINUNDOACTION (SCI_CONTINUEUNDOACTION) that removes the current final startAction so that the next actions are coalesced into the previous. This could be done unconditionally or based on the previous action being of a compatible type such as typing into a particular field. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
