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