
Can i please ask the best way to detect line-range changes in the SyntaxEditor.
For example, our application has internal lists of breakpoints and bookmarks that we would need to update if any lines change in the Editor (e.g. lines inserted or removed).
Ideally i would need to know when the following occur, and the line range (start line and end line) that has been affected:
* Lines inserted
* Lines removed
* Lines cut / pasted
* Lines replaced (would need to know line-range removed and the range inserted/replaced)
Im hoping i can capture events in one place to make it easier. I understand there is the DocumentTextChanged() event but im not sure if this is the correct way to do this and how to detect the above from this if so.
Thank you for any help.
James
For example, our application has internal lists of breakpoints and bookmarks that we would need to update if any lines change in the Editor (e.g. lines inserted or removed).
Ideally i would need to know when the following occur, and the line range (start line and end line) that has been affected:
* Lines inserted
* Lines removed
* Lines cut / pasted
* Lines replaced (would need to know line-range removed and the range inserted/replaced)
Im hoping i can capture events in one place to make it easier. I understand there is the DocumentTextChanged() event but im not sure if this is the correct way to do this and how to detect the above from this if so.
Thank you for any help.
James