<?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[Plugin development help]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">So i have decided that i want to make a plugin for NP++.</p>
<p dir="auto">I’m using (or trying to!) <a href="http://docs.notepad-plus-plus.org/index.php/Plugin_Central#Npp" rel="nofollow ugc">NP++ Plugin.NET</a>, but i am having trouble understanding which commands to use.</p>
<p dir="auto">What i want to do is make a plugin that brings up call-tips if you type “(” or “{”.<br />
Can someone help?</p>
<p dir="auto">Cheers,<br />
Finn</p>
<p dir="auto">P.S: I don’t really know where to put this, in <a href="https://notepad-plus-plus.org/community/category/5/plugin-development" rel="nofollow ugc">Plugin Development</a> or <a href="https://notepad-plus-plus.org/community/category/4/help-wanted" rel="nofollow ugc">Help wanted</a>, so sorry if it is in the wrong place :)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15802/plugin-development-help</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 00:54:25 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15802.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 May 2018 03:25:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Plugin development help on Thu, 31 May 2018 00:11:16 GMT]]></title><description><![CDATA[<p dir="auto">EDIT: I found a way, yippee!!</p>
<p dir="auto">jN Notepad++ Plugin</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32570</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32570</guid><dc:creator><![CDATA[Finn McCarthy]]></dc:creator><pubDate>Thu, 31 May 2018 00:11:16 GMT</pubDate></item><item><title><![CDATA[Reply to Plugin development help on Tue, 29 May 2018 01:49:47 GMT]]></title><description><![CDATA[<p dir="auto">@Victor-Dronov</p>
<p dir="auto">Hi,</p>
<p dir="auto">I found out the proper name of what i’m trying to do: Call-Tips. (custom Call-Tips).</p>
<p dir="auto">Ok. I have had a look…And i still don’t understand. I probably should mention that have never, ever coded in C, C++,C# or VB (well 3 years ago, anyway and i cannot remember practically anything). So yeah…(This next bit will probably sound lame…sorry)</p>
<p dir="auto">What I am trying to say is: I basically need someone to write the plugin for me, and i can learn from their source code. That’s how i normally learn…</p>
<p dir="auto">Cheers,<br />
Finn</p>
<p dir="auto">P.S: Sorry, (I know i probably sound whiny)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32525</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32525</guid><dc:creator><![CDATA[Finn McCarthy]]></dc:creator><pubDate>Tue, 29 May 2018 01:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to Plugin development help on Thu, 24 May 2018 21:18:10 GMT]]></title><description><![CDATA[<p dir="auto">See scintilla docu: <a href="https://www.scintilla.org/ScintillaDoc.html#SCN_CHARADDED" rel="nofollow ugc">https://www.scintilla.org/ScintillaDoc.html#SCN_CHARADDED</a>. Scintilla is the framework N++ is based on.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32475</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32475</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Thu, 24 May 2018 21:18:10 GMT</pubDate></item><item><title><![CDATA[Reply to Plugin development help on Thu, 24 May 2018 12:50:40 GMT]]></title><description><![CDATA[<p dir="auto">Source file XBrackets\src\XBrackets.cpp,</p>
<pre><code>void XBrackets::nppBeNotified(SCNotification* pscn)
{
  ...
  switch ( pscn-&gt;nmhdr.code )
  {
    case SCN_CHARADDED:
      OnSciCharAdded(pscn-&gt;ch);
      break;
    ...
  }
  ...
}
</code></pre>
<p dir="auto">Basically, what needs to be done now is:</p>
<ol>
<li>implement own method Plugin.nppBeNotified to be called from the standard <code>void beNotified(SCNotification* pscn)</code>;</li>
<li>implement own Plugin.OnSciCharAdded (looking at the one in XBrackets as an example)</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/32463</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32463</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Thu, 24 May 2018 12:50:40 GMT</pubDate></item><item><title><![CDATA[Reply to Plugin development help on Thu, 24 May 2018 11:53:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/finn-mccarthy" aria-label="Profile: Finn-McCarthy">@<bdi>Finn-McCarthy</bdi></a> said:</p>
<blockquote>
<p dir="auto">would i do with SCN_CHARADDED, what i mean is: what is it’s use?</p>
</blockquote>
<p dir="auto">I think the implication here is when you see that, you could check if what was added was <code>(</code> or <code>{</code> (from your spec)…and do whatever actions you want your plugin to do when that occurs.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32461</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32461</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 24 May 2018 11:53:53 GMT</pubDate></item><item><title><![CDATA[Reply to Plugin development help on Thu, 24 May 2018 04:46:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a></p>
<p dir="auto">Hi,</p>
<p dir="auto">Well i found it and i know what i’m looking for (sort of?). I think i need some help. Again :)</p>
<p dir="auto">And your right about C being easy to understand</p>
<p dir="auto">I did what you said and found no trace of SCN_CHARADDED. Thought i did search the plugin template and that had it.<br />
By the way, what would i do with SCN_CHARADDED, what i mean is: what is it’s use?<br />
e.g.</p>
<pre><code>    if NppData.SCN_CHARADDED         /*Would somthing like that work?*/
    {
    };
</code></pre>
<p dir="auto">I think this code is maybe what i’m looking for (it’s from XBrackets.h):</p>
<pre><code>public:
    enum TFileType {
        tftNone = 0,
        tftText,
        tftC_Cpp,
        tftH_Hpp,
        tftPas,
        tftHtmlCompatible
    };
    
    enum TBracketType {
        tbtNone = 0,
        tbtBracket,  //  (
        tbtSquare,   //  [
        tbtBrace,    //  {
        tbtDblQuote, //  "
        tbtSglQuote, //  '
        tbtTag,      //  &lt;
        tbtTag2,

        tbtCount
    };

    enum eConsts {
        MAX_ESCAPED_PREFIX  = 20
    };

    static const TCHAR* PLUGIN_NAME;
    static const char*  strBrackets[tbtCount - 1];

protected:
    // plugin menu
    CXBracketsMenu m_PluginMenu;
    
    // internal vars
    INT_PTR m_nAutoRightBracketPos;
    int     m_nFileType;
    bool    m_bSupportedFileType;

public:
    CXBrackets();
    virtual ~CXBrackets();
	
    // standard n++ plugin functions
    virtual void         nppBeNotified(SCNotification* pscn);
    virtual FuncItem*    nppGetFuncsArray(int* pnbFuncItems);
    virtual const TCHAR* nppGetName();
</code></pre>
<p dir="auto">Is it what i’m looking for?</p>
<p dir="auto">Cheers,<br />
Finn</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32459</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32459</guid><dc:creator><![CDATA[Finn McCarthy]]></dc:creator><pubDate>Thu, 24 May 2018 04:46:05 GMT</pubDate></item><item><title><![CDATA[Reply to Plugin development help on Wed, 23 May 2018 01:04:15 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/32406</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32406</guid><dc:creator><![CDATA[Finn McCarthy]]></dc:creator><pubDate>Wed, 23 May 2018 01:04:15 GMT</pubDate></item><item><title><![CDATA[Reply to Plugin development help on Tue, 22 May 2018 11:23:40 GMT]]></title><description><![CDATA[<p dir="auto">You could look at the sources of<br />
<a href="https://sourceforge.net/projects/npp-plugins/files/XBrackets%20Lite/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/XBrackets Lite/</a><br />
It’s in C++, but I believe it’s enough to catch the idea of what to do in C#.<br />
Search for SCN_CHARADDED in the source code.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32399</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32399</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Tue, 22 May 2018 11:23:40 GMT</pubDate></item></channel></rss>