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.