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.