Lifecycle of a plugin
-
Hi,
Can someone tell me where to find some info on the lifecycle of a plugin?
Like f.e. the following methods are provided by default:- pluginInit
- pluginCleanUp
- commandMenuInit
- commandMenuCleanUp
But when are these called? During startup of notepad++ or every time the plugin is used?
Sorry if I missed this info somewhere.
Thank you
-
All this is not needed from a plugin.
See here for a description of what a plugin needs to export. -
@Chris-De-Boeck
I think I understand where this is coming from.
The functions you pointed out are the ones used in the C++ demo, which are just handy functions to make it easier to create a plugin.
What needs to be exported from a plugin is defined here.
These are the methods that are called by Npp when a plugin is loaded (once, at startup). -
@Ekopalypse said in Lifecycle of a plugin:
@Chris-De-Boeck
These are the methods that are called by Npp when a plugin is loaded (once, at startup).Thanks, that’s clear now.
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