Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Plugin Development
    2
    4
    3528
    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.
    • João Rosa
      João Rosa last edited by

      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
      • dail
        dail last edited by

        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
        • João Rosa
          João Rosa last edited by

          Thanks,
          I will investigate and implement it.

          1 Reply Last reply Reply Quote 0
          • João Rosa
            João Rosa last edited by

            Hi,
            Sort out with file listeners.
            Thanks

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors