I need help (or a programming manual) to develop a plugin
-
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. -
-
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
-
-
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. -
@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:
-
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.
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