Is there any way to be notificated when the caret position or current line is changed (when you click somewhere in the code)?
The background is that I would like to do a check if the caret/current line is inside of PHP-Tags (<? and ?>).
I want to have a function of my plugin only activated if the current selected line is inside of PHP-Tags (Indention function).
Or is there any other way? Of course I want to do this check only if necessary = when the user changes the line or caret position.
Thanks a lot in advance!
(Checked whether the line index is different from the one of a previous call with SCI_LINEFROMPOSITION, every time a char is added or enter is pressed).