[new plugin] How to get the changed text by the user
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?
When you develop a plugin, you can receive notifications from Notepad++ (e.g.
NPPN_READY). You also receive Scintilla notifications. One of these is the
SCN_MODIFIEDevent, 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.
I will investigate and implement it.
Sort out with file listeners.