[new plugin] How to get the changed text by the user
-
Hi,
I’m developing a plugin that need to do some verification when the user type text (or delete). However in Scintilla Documentation I cannot find the method to add a listener to it. I was expecting some event that I can listen and get the changed text.Can someone point me the way, or it is not possible?
Best regards,
-
When you develop a plugin, you can receive notifications from Notepad++ (e.g.
NPPN_READY
). You also receive Scintilla notifications. One of these is theSCN_MODIFIED
event, which tells you if text is being insert/deleted, etc and some information about it such as the position, and the actual text. That link to the Scintilla documentation should be enough to get you a good start. -
Thanks,
I will investigate and implement it. -
Hi,
Sort out with file listeners.
Thanks