<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Lifecycle of a plugin]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Can someone tell me where to find some info on the lifecycle of a plugin?<br />
Like f.e. the following methods are provided by default:</p>
<ul>
<li>pluginInit</li>
<li>pluginCleanUp</li>
<li>commandMenuInit</li>
<li>commandMenuCleanUp</li>
</ul>
<p dir="auto">But when are these called? During startup of notepad++ or every time the plugin is used?</p>
<p dir="auto">Sorry if I missed this info somewhere.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23537/lifecycle-of-a-plugin</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 03:27:36 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23537.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Sep 2022 07:21:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Lifecycle of a plugin on Wed, 28 Sep 2022 12:00:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/80147">Lifecycle of a plugin</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-de-boeck" aria-label="Profile: Chris-De-Boeck">@<bdi>Chris-De-Boeck</bdi></a><br />
These are the methods that are called by Npp when a plugin is loaded (once, at startup).</p>
</blockquote>
<p dir="auto">Thanks, that’s clear now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80148</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80148</guid><dc:creator><![CDATA[Chris De Boeck]]></dc:creator><pubDate>Wed, 28 Sep 2022 12:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to Lifecycle of a plugin on Wed, 28 Sep 2022 10:32:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-de-boeck" aria-label="Profile: Chris-De-Boeck">@<bdi>Chris-De-Boeck</bdi></a><br />
I think I understand where this is coming from.<br />
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.<br />
What needs to be exported from a plugin is defined <a href="https://github.com/npp-plugins/plugindemo/blob/master/src/PluginInterface.h" rel="nofollow ugc">here</a>.<br />
These are the methods that are called by Npp when a plugin is loaded (once, at startup).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80147</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80147</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 28 Sep 2022 10:32:50 GMT</pubDate></item><item><title><![CDATA[Reply to Lifecycle of a plugin on Wed, 28 Sep 2022 09:28:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-de-boeck" aria-label="Profile: Chris-De-Boeck">@<bdi>Chris-De-Boeck</bdi></a></p>
<p dir="auto">All this is not needed from a plugin.<br />
See <a href="https://npp-user-manual.org/docs/plugins/#how-to-develop-a-plugin" rel="nofollow ugc">here</a> for a description of what a plugin needs to export.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80143</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80143</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 28 Sep 2022 09:28:46 GMT</pubDate></item></channel></rss>