Community
    • Login

    I need help (or a programming manual) to develop a plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    developingdevhelperplugin
    5 Posts 3 Posters 1.0k Views 2 Watching
    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.
    • Walter Di BiaseW Offline
      Walter Di Biase
      last edited by

      I want to create a plugin that hides lines based on a string (for example all lines that contains “meta”), but I really don’t know how to to that.
      Basically I need to use many functions already included in Npp, but automating certain behaviors.
      Anyone could help me? Thanks in advance.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Walter Di Biase
        last edited by

        @Walter-Di-Biase

        • https://npp-user-manual.org/docs/plugins/ => provides basic outline of a plugin, and links to template(s)

        • https://npp-user-manual.org/docs/plugin-communication/ => describes the messaging and notification systems, which is how a plugin gets access to any of the standard commands that Notepad++ accepts

        Walter Di BiaseW 1 Reply Last reply Reply Quote 1
        • Walter Di BiaseW Offline
          Walter Di Biase @PeterJones
          last edited by

          Thanks @PeterJones, but I cannot found how to hide lines, and that’s one of the npp functions that I want to use in my plugin.
          Basically I try to highlight some words (based on some criteria) and hiding lines. It’s for analizing a particular kind of log.

          Alan KilbornA 2 Replies Last reply Reply Quote 0
          • Alan KilbornA Offline
            Alan Kilborn @Walter Di Biase
            last edited by

            @Walter-Di-Biase said in I need help (or a programming manual) to develop a plugin:

            but I cannot found how to hide lines

            You would use this Scintilla function:

            https://www.scintilla.org/ScintillaDoc.html#SCI_HIDELINES

            1 Reply Last reply Reply Quote 2
            • Alan KilbornA Offline
              Alan Kilborn @Walter Di Biase
              last edited by

              @Walter-Di-Biase

              One thing to be aware of, though, with hiding lines: When you switch the active tab in Notepad++, Notepad++ itself will restore any lines you previously had hidden. So, if you want them to remain hidden (probably), you’ll have to capture the “buffer activated” event and then re-hide based on your saving of what was hidden before. Sounds a bit complicated? Yes, it is.

              1 Reply Last reply Reply Quote 2

              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
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors