• Login
Community
  • Login

[new plugin] How to get the changed text by the user

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
4 Posts 2 Posters 3.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    João Rosa
    last edited by Oct 20, 2015, 1:32 PM

    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,

    1 Reply Last reply Reply Quote 0
    • D
      dail
      last edited by Oct 20, 2015, 1:52 PM

      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_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.

      1 Reply Last reply Reply Quote 0
      • J
        João Rosa
        last edited by Oct 22, 2015, 11:44 AM

        Thanks,
        I will investigate and implement it.

        1 Reply Last reply Reply Quote 0
        • J
          João Rosa
          last edited by Oct 31, 2015, 1:02 PM

          Hi,
          Sort out with file listeners.
          Thanks

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors