Python has a difflib module but I haven't checked whether it is part of the ST Python-version
I thought about that, but i'd rather not reprocess the diff every time. Anyway, for the record, 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
Well yes from what i gathered it seems to happen on *every* event. But that's not likely a big problem because i can always aggregate such events and do processing only every X events, or in an helper thread.
Handling Undo and Redo correctly is likely to be a challenge.
Why ? From what i've seen, on_modified events are also sent when an undo or a redo are done. I don't need to track wether they are undos/redos or not, just keep a consistent view of the file on the compiler's part.
Thanks for the input !