[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_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. -
Thanks,
I will investigate and implement it. -
Hi,
Sort out with file listeners.
Thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login