Python has a difflib module but I haven't checked whether it is part of the ST Python-version
modified happens constantly within a view so you would need to keep an eye on how much processing you do on each occasion
Handling Undo and Redo correctly is likely to be a challenge.
From what i've seen, on_modified events are also sent when an undo or a redo are done.
adzenith wrote:Undo/redo are a concern if an on_modified callback changes the buffer. If you change the buffer after an undo, it breaks the redo stack (and can also make undoing impossible, because the next undo undoes the callback modifications).
Users browsing this forum: Yahoo [Bot] and 6 guests