I think that makes things more complicated. My idea was to just insert the text (as-is) and when you are finished run indent() on the whole area. Setting the cursor should be trivial if you have the position.
There is the IAnjutaIndenter interface in master now, implemented by both language-support-cpp-java and language-support-python. Regards, Johannes
Description: This is a digitally signed message part