<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>pnotepad.org forums Tag: extension - Recent Topics</title>
		<link>http://pnotepad.org/forums/tags/extension</link>
		<description>Programmer&#039;s Notepad Forums</description>
		<language>en-US</language>
		<pubDate>Fri, 30 Jul 2010 01:16:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://pnotepad.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://pnotepad.org/forums/rss/tags/extension/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>Why I can&#039;t add the compiled demo extension to PN2.1.4.2191? (baston)</title>
			<link>http://pnotepad.org/forums/topic/4899#post-7065</link>
			<pubDate>Sat, 12 Jun 2010 08:28:32 +0000</pubDate>
			<dc:creator>baston</dc:creator>
			<guid isPermaLink="false">7065@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I want to develop extension for PN. So first I install PN2.1.4 ,the sdk-2.0.9.921 and boost_1_43_0.zip. I compile the demo project packed in the sdk zip file successfully with vs2005 Team Suite, and copy the demo.dll file to PN directory.&#60;/p&#62;
&#60;p&#62;Under the command shell, I run &#34;pn --findexts&#34; command, later start PN, but unfortunately the PN can't install the demo extension. I have tried many times,can somebody help me?&#60;/p&#62;
&#60;p&#62;My OS is XP with sp3, and the PN has installed the pypn extension successfully.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Adding a keyboard shortcut for a extension method, and SDK out-of-date (DewVinci)</title>
			<link>http://pnotepad.org/forums/topic/649#post-2351</link>
			<pubDate>Tue, 18 Aug 2009 22:02:28 +0000</pubDate>
			<dc:creator>DewVinci</dc:creator>
			<guid isPermaLink="false">2351@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I'm looking into creating an extension, but I need my functionality to be keyboard accessible. Is there a way to do this? Currently, I just create a menu item, but this new menu doesn't appear in the command list in the Keyboard Shortcuts option page.&#60;/p&#62;
&#60;p&#62;Also, the SDK download is out-of-date. It contains headers with PN_EXT_IFACE_VERSION = 8, but the current app is at version 9. I worked around this by directly downloading the headers from the source.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Building demo Extension (NickDMax)</title>
			<link>http://pnotepad.org/forums/topic/592#post-2083</link>
			<pubDate>Tue, 19 May 2009 03:38:33 +0000</pubDate>
			<dc:creator>NickDMax</dc:creator>
			<guid isPermaLink="false">2083@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;So I have been trying to get the demo extension built and so far have had no success. I followed the instructions on the wiki and indeed the dll seems to be picked up (I can't update it when pn.exe is running), but it does not show up on the extensions page. &#60;/p&#62;
&#60;p&#62;I also tried just a blank version of the template with the same results.&#60;/p&#62;
&#60;p&#62;Are there any debugging features? anyway to tell if the extension was not successfully initialized?&#60;/p&#62;
&#60;p&#62;I am using VC++ Express 2008 (Win32) in release mode.&#60;/p&#62;
&#60;p&#62;My current debugging code (since it was not working):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;bool __stdcall pn_init_extension(int iface_version, extensions::IPN* pn)
{
	::MessageBox(NULL, _T(&#38;quot;Made it here...&#38;quot;), _T(&#38;quot;Demo Plugin&#38;quot;), MB_OK);
	if(iface_version != PN_EXT_IFACE_VERSION) {
		::MessageBox(NULL, _T(&#38;quot;Didn&#38;#39;t Work!&#38;quot;), _T(&#38;quot;Demo Plugin&#38;quot;), MB_ICONERROR &#124; MB_OK);
		return false;
	}

	//g_pn = pn;

	// Do your initialisation stuff here...
	//pn-&#38;gt;GetGlobalOutputWindow()-&#38;gt;AddToolOutput(&#38;quot;Hello from the demo extension!&#38;quot;);

	//extensions::IAppEventSinkPtr appSink(new AppEventSink());
	//pn-&#38;gt;AddEventSink(appSink);

	//Menu menu;
	//pn-&#38;gt;AddPluginMenuItems(&#38;amp;menu);
	::MessageBox(NULL, _T(&#38;quot;It Worked!&#38;quot;), _T(&#38;quot;Demo Plugin&#38;quot;), MB_ICONERROR &#124; MB_OK);
	return true;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I built (release), I ran &#38;quot;pn.exe --findexts&#38;quot;, I ran pn -- no message boxes, no line item in the extensions list.&#60;/p&#62;
&#60;p&#62;any thoughts?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Java Extension (oh)</title>
			<link>http://pnotepad.org/forums/topic/487#post-1716</link>
			<pubDate>Tue, 18 Nov 2008 10:33:41 +0000</pubDate>
			<dc:creator>oh</dc:creator>
			<guid isPermaLink="false">1716@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Dear PN Team -&#60;/p&#62;
&#60;p&#62;Thank you for a wonderful tool.&#60;/p&#62;
&#60;p&#62;Are there any plans for a Java extension to Programmers Notepad, like PyPN?&#60;/p&#62;
&#60;p&#62;For the moment I use Project Tools and Global Tools to integrate my Java programs into Programmers Notepad (I send the selected text to Java using Standard Input, and I capture the output, replacing the original selection).&#60;/p&#62;
&#60;p&#62;But this method results in frequent crashes of PN.&#60;/p&#62;
&#60;p&#62;I am not very good with Python, and know nothing about C (or what language PN is programmed in). A java extension would mean a way for me to contribute useful scripts (spell checking, regex search &#38;#38; replace in folders, replacement expressions etc.). &#60;/p&#62;
&#60;p&#62;Thanks again for the tool.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Writing a docking extension\toolbar extension (pn2user)</title>
			<link>http://pnotepad.org/forums/topic/449#post-1578</link>
			<pubDate>Thu, 24 Jul 2008 14:40:16 +0000</pubDate>
			<dc:creator>pn2user</dc:creator>
			<guid isPermaLink="false">1578@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I want to write 2 extensions:&#60;br /&#62;
1) One extension which behaves like a docking window -&#60;br /&#62;
another tab in the &#34;Projects\File Browser\Tags&#34;&#60;br /&#62;
2) 2nd extension which is a toolbar.&#60;/p&#62;
&#60;p&#62;From looking the code, and the extensions interface,&#60;br /&#62;
I see that it is only possible using HWND from IPN::GetMainWindow,&#60;br /&#62;
and then some hacking, which I dont want to do.&#60;/p&#62;
&#60;p&#62;Is it planned to add this kind of capability as built (using proper interfaces)&#60;br /&#62;
in the future ?&#60;br /&#62;
If not, what is the process if I want to suggest this capability,&#60;br /&#62;
and implement it by myself ?&#60;/p&#62;
&#60;p&#62;10x
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Remove trailing whitespace on save (colorplane)</title>
			<link>http://pnotepad.org/forums/topic/330#post-1177</link>
			<pubDate>Fri, 08 Feb 2008 14:01:32 +0000</pubDate>
			<dc:creator>colorplane</dc:creator>
			<guid isPermaLink="false">1177@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I love Programmer's Notepad and have been using it for quite some time, but it has always bugged me that there is no option to remove trailing whitespace when saving documents.  After browsing the forums and checking out the extension documentation I installed PyPN and wrote a very simple script to remove trailing whitespace when the document is saved.  I have mapped this to Ctrl+S and the original save function to Ctrl+Shift+S.&#60;/p&#62;
&#60;p&#62;If anyone else wants this functionality, you can follow the on-site instructions to install Python and PyPN and then place this script in the scripts directory as a .py file.  Many thanks for making PN so extensible!&#60;/p&#62;
&#60;p&#62;import pn&#60;br /&#62;
import scintilla&#60;br /&#62;
from pypn.decorators import script&#60;/p&#62;
&#60;p&#62;@script(&#34;Remove Trailing Whitespace&#34;)&#60;br /&#62;
def RemoveTrailingWhitespace():&#60;br /&#62;
	editor = scintilla.Scintilla(pn.CurrentDoc())&#60;br /&#62;
	editor.BeginUndoAction()&#60;/p&#62;
&#60;p&#62;	options = pn.GetUserSearchOptions()&#60;br /&#62;
	options.FindText = &#34;\\s+$&#34;&#60;br /&#62;
	options.ReplaceText = &#34;&#34;&#60;br /&#62;
	options.UseSlashes = True&#60;br /&#62;
	options.UseRegExp = True&#60;/p&#62;
&#60;p&#62;	pn.CurrentDoc().ReplaceAll(options)&#60;/p&#62;
&#60;p&#62;	pn.CurrentDoc().Save(pn.CurrentDoc().FileName, 1)&#60;/p&#62;
&#60;p&#62;	editor.EndUndoAction()
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Awkward file type recognition (KClaisse)</title>
			<link>http://pnotepad.org/forums/topic/234#post-852</link>
			<pubDate>Tue, 29 May 2007 15:47:23 +0000</pubDate>
			<dc:creator>KClaisse</dc:creator>
			<guid isPermaLink="false">852@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I script for a gaming engine and the files associated with the language are defined by a prefix, rather than the traditional suffix extension. All of the scripts start with es_ , how would I associate PN2 with these files?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Where to download an extension header files, (sydorgeck)</title>
			<link>http://pnotepad.org/forums/topic/143#post-531</link>
			<pubDate>Sun, 26 Nov 2006 22:10:49 +0000</pubDate>
			<dc:creator>sydorgeck</dc:creator>
			<guid isPermaLink="false">531@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I wont to try to develop a kind of Programmer's notepad extension (a support for WinAVR crosscompiler) and do'nt know where to find extension header files extiface.h and IOptions.h
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
