<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>indiWiz.com &#187; jedit</title>
	<atom:link href="http://indiwiz.com/tag/jedit/feed/" rel="self" type="application/rss+xml" />
	<link>http://indiwiz.com</link>
	<description>Subhash&#039;s Tech Log</description>
	<lastBuildDate>Wed, 03 Mar 2010 13:24:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JEdit Macro for XML/HTML Special Character Conversion</title>
		<link>http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/</link>
		<comments>http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 08:33:26 +0000</pubDate>
		<dc:creator>Subhash Chandran</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[jedit]]></category>

		<guid isPermaLink="false">http://indiwiz.com/?p=126</guid>
		<description><![CDATA[One of the common requirement I face often when posting text to blog/forum/Wiki etc. is character conversion: &#38; &#38;amp; &#60; &#38;lt; &#62; &#38;gt; &#34; &#38;quot; &apos; &#38;apos; I developed a small JEdit Macro for doing this. This macro can be executed from JEdit menu Macros &#62; Run Other Macro..., or can be installed by copying [...]]]></description>
			<content:encoded><![CDATA[<p>One of the common requirement I face often when posting text to blog/forum/Wiki etc. is character conversion:</p>
<table border="0" cellspacing="5">
<tr>
<td>&amp;</td>
<td><tt>&amp;amp;</tt></td>
</tr>
<tr>
<td>&lt;</td>
<td><tt>&amp;lt;</tt></td>
</tr>
<tr>
<td>&gt;</td>
<td><tt>&amp;gt;</tt></td>
</tr>
<tr>
<td>&quot;</td>
<td><tt>&amp;quot;</tt></td>
</tr>
<tr>
<td>&apos;</td>
<td><tt>&amp;apos;</tt></td>
</tr>
</table>
<p>I developed a small <a href="http://code.google.com/p/wiztools/source/browse/jedit-macros/trunk/encodeForXML.bsh">JEdit Macro</a> for doing this. This macro can be executed from JEdit menu <tt>Macros &gt; Run Other Macro...</tt>, or can be installed by copying to: <tt>${user.home}/.jedit/macros/</tt> (later executed from the menu <tt>Macros</tt>). This macro operates on selected text.</p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/&amp;title=JEdit+Macro+for+XML%2FHTML+Special+Character+Conversion" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/&amp;title=JEdit+Macro+for+XML%2FHTML+Special+Character+Conversion" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/&amp;title=JEdit+Macro+for+XML%2FHTML+Special+Character+Conversion&amp;desc=One%20of%20the%20common%20requirement%20I%20face%20often%20when%20posting%20text%20to%20blog%2Fforum%2FWiki%20etc.%20is%20character%20conversion%3A%0D%0A%0D%0A%0D%0A%0D%0A%20%20%26amp%3B%26amp%3Bamp%3B%0D%0A%0D%0A%0D%0A%20%20%26lt%3B%26amp%3Blt%3B%0D%0A%0D%0A%0D%0A%20%20%26gt%3B%26amp%3Bgt%3B%0D%0A%0D%0A%0D%0A%20%20%26quot%3B%26amp%3Bquot%3B%0D%0A%0D%0A%0D%0A%20%20%26apos%3B%26amp%3Bapos%3B%0D%0A%0D%0A%0D%0A%0D%0AI%20developed%20a%20small%20JEdit%20Macro%20for%20doing%20this.%20This%20macro%20can%20be%20execu" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/&amp;t=JEdit+Macro+for+XML%2FHTML+Special+Character+Conversion" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/&amp;title=JEdit+Macro+for+XML%2FHTML+Special+Character+Conversion&amp;summary=One%20of%20the%20common%20requirement%20I%20face%20often%20when%20posting%20text%20to%20blog%2Fforum%2FWiki%20etc.%20is%20character%20conversion%3A%0D%0A%0D%0A%0D%0A%0D%0A%20%20%26amp%3B%26amp%3Bamp%3B%0D%0A%0D%0A%0D%0A%20%20%26lt%3B%26amp%3Blt%3B%0D%0A%0D%0A%0D%0A%20%20%26gt%3B%26amp%3Bgt%3B%0D%0A%0D%0A%0D%0A%20%20%26quot%3B%26amp%3Bquot%3B%0D%0A%0D%0A%0D%0A%20%20%26apos%3B%26amp%3Bapos%3B%0D%0A%0D%0A%0D%0A%0D%0AI%20developed%20a%20small%20JEdit%20Macro%20for%20doing%20this.%20This%20macro%20can%20be%20execu&amp;source=indiWiz.com" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/&amp;title=JEdit+Macro+for+XML%2FHTML+Special+Character+Conversion" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://indiwiz.com/2008/12/31/jedit-macro-for-xml-special-character-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JEdit, powerful search and replace using BeanShell</title>
		<link>http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/</link>
		<comments>http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 08:57:12 +0000</pubDate>
		<dc:creator>Subhash Chandran</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[jedit]]></category>

		<guid isPermaLink="false">http://indiwiz.com/?p=95</guid>
		<description><![CDATA[JEdit is my favorite text editor. And today I was pleased to find some powerful scripting capability in its search and replace functionality. Basically I wanted to enclose a RegularExpression pattern with: &#60;a href=""&#62;PATTERN&#60;/a&#62; The Search and Replace dialog provided an option Return value of a BeanShell snippet. So whatever RegularExpression pattern grouping I provided, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jedit.org/">JEdit</a> is my favorite text editor. And today I was pleased to find some powerful scripting capability in its <a href="http://www.jedit.org/users-guide/search-replace.html">search and replace functionality</a>. Basically I wanted to enclose a RegularExpression pattern with:</p>
<pre>
&lt;a href=""&gt;PATTERN&lt;/a&gt;
</pre>
<p>The Search and Replace dialog provided an option <i>Return value of a BeanShell snippet</i>. So whatever RegularExpression pattern grouping I provided, I was able to access them using the BeanShell variable <i>_1</i> to <i>_9</i>. So my final replace statement became:</p>
<pre>
"&lt;a href\"\"&gt;" + _1 + "&lt;/a&gt;"
</pre>
<p>Cool solution to a simple problem.</p>
<p><img src="http://indiwiz.files.wordpress.com/2008/12/jedit_search_replace.png" alt="jedit_search_replace" title="jedit_search_replace" width="505" height="449" class="alignnone size-full wp-image-99" /></p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/&amp;title=JEdit%2C+powerful+search+and+replace+using+BeanShell" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/&amp;title=JEdit%2C+powerful+search+and+replace+using+BeanShell" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/&amp;title=JEdit%2C+powerful+search+and+replace+using+BeanShell&amp;desc=JEdit%20is%20my%20favorite%20text%20editor.%20And%20today%20I%20was%20pleased%20to%20find%20some%20powerful%20scripting%20capability%20in%20its%20search%20and%20replace%20functionality.%20Basically%20I%20wanted%20to%20enclose%20a%20RegularExpression%20pattern%20with%3A%0A%0A%0A%26lt%3Ba%20href%3D%22%22%26gt%3BPATTERN%26lt%3B%2Fa%26gt%3B%0A%0A%0AThe%20Search%20and%20Replace%20dialog%20provided%20an%20option%20Return" rel="nofollow" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/&amp;t=JEdit%2C+powerful+search+and+replace+using+BeanShell" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/&amp;title=JEdit%2C+powerful+search+and+replace+using+BeanShell&amp;summary=JEdit%20is%20my%20favorite%20text%20editor.%20And%20today%20I%20was%20pleased%20to%20find%20some%20powerful%20scripting%20capability%20in%20its%20search%20and%20replace%20functionality.%20Basically%20I%20wanted%20to%20enclose%20a%20RegularExpression%20pattern%20with%3A%0A%0A%0A%26lt%3Ba%20href%3D%22%22%26gt%3BPATTERN%26lt%3B%2Fa%26gt%3B%0A%0A%0AThe%20Search%20and%20Replace%20dialog%20provided%20an%20option%20Return&amp;source=indiWiz.com" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/&amp;title=JEdit%2C+powerful+search+and+replace+using+BeanShell" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://indiwiz.com/2008/12/17/jedit-powerful-search-and-replace-using-beanshell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
