<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Snippets code from my daily experience</title>
	<atom:link href="http://dafizilla.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dafizilla.wordpress.com</link>
	<description>Just another unnecessary code resource blog</description>
	<lastBuildDate>Sun, 05 Jul 2009 12:31:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.gravatar.com/blavatar/635b338f35d7304cae2e1b31926d3592?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Snippets code from my daily experience</title>
		<link>http://dafizilla.wordpress.com</link>
	</image>
			<item>
		<title>gContextMenu&#8217;s imageURL property refactored on Firefox 3.5x</title>
		<link>http://dafizilla.wordpress.com/2009/06/05/gcontextmenus-imageurl-property-refactored-on-firefox-3-5x/</link>
		<comments>http://dafizilla.wordpress.com/2009/06/05/gcontextmenus-imageurl-property-refactored-on-firefox-3-5x/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 16:04:06 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[xul]]></category>
		<category><![CDATA[gContextMenu]]></category>
		<category><![CDATA[viewsourcewith]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=606</guid>
		<description><![CDATA[Edited on 9 June 2009 Mozilla guys decided to add a getter for imageURL so no extension will be affected by new property mediaURL replacement, you can read the full story at bug 497098.
Another time Mozilla community demonstrates its strength,  why nobody considered the impact before modification is another story  
&#8211;
Today a ViewSourceWith [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=606&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong><span style="color:#ff0000;">Edited on 9 June 2009</span> </strong>Mozilla guys decided to add a getter for <strong>imageURL </strong>so no extension will be affected by new property <strong>mediaURL</strong> replacement, you can read the full story at <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=497098">bug 497098</a>.</p>
<p>Another time Mozilla community demonstrates its strength,  why nobody considered the impact before modification is another story <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&#8211;</p>
<p>Today a <a href="http://dafizilla.sourceforge.net/viewsourcewith/index.php">ViewSourceWith</a> user filed a bug about a regression on Firefox 3.5b4, causing VSW to no more open images <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_eek.gif' alt='8O' class='wp-smiley' /> </p>
<p>After dressing the debug uniform I started to investigate the problem.</p>
<p>I&#8217;ve realized the object gContextMenu doesn&#8217;t more contain the property <strong>imageURL</strong> used by VSW and maybe many other extensions.</p>
<p>The <strong>imageURL</strong> property has been renamed/refactored to <strong>mediaURL</strong>.</p>
<p>Honestly the new name fits better its new usage and maybe the <strong>imageURL</strong> property is not intended for usage from extensions.</p>
<p>The poor <a href="https://developer.mozilla.org/en/XUL/PopupGuide/Extensions">gContextMenu</a> documentation doesn&#8217;t describe <strong>imageURL</strong> so maybe I abused its usage.</p>
<p>I think <a href="https://developer.mozilla.org/en/XUL/PopupGuide/Extensions">gContextMenu</a> need a better documentation because its usage is so sexy inside extensions.</p>
<h3>The workaround</h3>
<p>A string find/replace inside code fixed the bug, to maintain compatibility with FF 3.0.x I&#8217;ve modified the code as shown below</p>
<pre><span style="font-size:12px;"><span style="color:#871f78;">var</span> imageURL <span style="color:#781f87;">=</span> gContextMenu<span style="color:#781f87;">.</span>imageURL <span style="color:#781f87;">||</span> gContextMenu<span style="color:#781f87;">.</span>mediaURL<span style="color:#781f87;">;</span>
</span></pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/606/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=606&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/06/05/gcontextmenus-imageurl-property-refactored-on-firefox-3-5x/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Should Komodo macros have to support auto update? (Sunday Thought)</title>
		<link>http://dafizilla.wordpress.com/2009/04/12/should-komodo-macros-have-support-to-auto-update-sunday-thought/</link>
		<comments>http://dafizilla.wordpress.com/2009/04/12/should-komodo-macros-have-support-to-auto-update-sunday-thought/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 00:00:53 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[komodo]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[sunday_thought]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[xpi]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=598</guid>
		<description><![CDATA[The Komodo macro ecosystem grows quickly and many state-of-art macros born every day.
I&#8217;ve already said in the past that Komodo macro environment is powerful like Microsoft VBA although it has many lacks (like UI creation).
I would have a similar environment on every Mozilla based application something like a KoMonkey or GreaseModo   (Komodo macros [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=598&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The Komodo macro ecosystem grows quickly and many <a href="http://www.openkomodo.com/blogs/jeffg/komodo-macros-pure-magic-code-injection">state-of-art macros</a> born every day.</p>
<p>I&#8217;ve already said in the past that Komodo macro environment is powerful like Microsoft <a href="http://msdn.microsoft.com/en-us/isv/bb190538.aspx">VBA</a> although it has many lacks (like UI creation).</p>
<p>I would have a similar environment on every Mozilla based application something like a KoMonkey or GreaseModo <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  (Komodo macros plus <a href="https://addons.mozilla.org/it/firefox/addon/748">GreaseMonkey</a>).</p>
<p>Macros become more complex and the authors release many revisions thanks to community feedback but today it is difficult to stay tuned when new versions are published.</p>
<p>Adding an update checker to <a href="http://docs.activestate.com/komodo/5.1/toolbox.html">KPZ</a> files is possible but not easy, many technical aspects must be considered.</p>
<p>Today the best approach consists to pack macros like extensions (XPI files) but developers need deeper knowledge and this should be frustrating.</p>
<p>I&#8217;m sure the Komodo macros are at the beginning of a radical evolution</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/598/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/598/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/598/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=598&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/04/12/should-komodo-macros-have-support-to-auto-update-sunday-thought/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>XUL search terms used to arrive here</title>
		<link>http://dafizilla.wordpress.com/2009/04/09/xul-search-terms-used-to-arrive-here/</link>
		<comments>http://dafizilla.wordpress.com/2009/04/09/xul-search-terms-used-to-arrive-here/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 14:12:01 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=581</guid>
		<description><![CDATA[Very often I take a look at search terms used to arrive on my blog, a practice that I use to understand people needs about XUL.
Obviously it is only a funny exercise because this blog receives a ridiculous count of visits per month (~200) and the search terms are a very very very little subset [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=581&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Very often I take a look at search terms used to arrive on my blog, a practice that I use to understand people needs about XUL.</p>
<p>Obviously it is only a funny exercise because this blog receives a ridiculous count of visits per month (~200) and the search terms are a very very very little subset of XUL related terms but I want to share with my readers (six or seven) this statistic.</p>
<p>Terms are sorted by views and divided in two categories: general XUL and Komodo specific</p>
<h3>General XUL search terms</h3>
<ol>
<li>nsiwebprogresslistener</li>
<li>xul textbox css</li>
<li>mccoy firefox</li>
<li>xul menuitem image</li>
<li>xul style tab</li>
<li>mccoy command line</li>
<li>xul synchronize scrollbars<br />
removing scrollbar xul, firefox 3.x<em> (after 10th position but strictly related)</em></li>
<li>xul paste clipboard as html text</li>
<li>mdc notifyobservers example</li>
<li>vsw thunderbird</li>
</ol>
<p>Many people has problems with <a href="https://developer.mozilla.org/En/McCoy">McCoy</a> (3rd and 6th), indeed signing extensions is a very awful process.<br />
I use an <a href="http://ant.apache.org/">ANT</a> build and the <a href="http://www.sameplace.cc/">Massimiliamo Mirra&#8217;s</a> StarTrek friend <a href="http://hyperstruct.net/projects/spock">Mr Spock</a>.</p>
<p>Styling XUL widgets and their color modifications (2nd, 4th and 5th) are mystical activities, people doesn&#8217;t read documentation and ignores the <a href="https://developer.mozilla.org/en/CSS/-moz-appearance">-moz-appearance</a> existence.</p>
<p>Scrollbar synchronization is an hot topic, I used a simple DOM event based approach but I admit it isn&#8217;t so obvious.</p>
<p>People uses <a href="http://dafizilla.sourceforge.net/viewsourcewith/">ViewSourceWith</a> with Thunderbird, I&#8217;m glad to read this but honestly <a href="http://dafizilla.sourceforge.net/viewsourcewith/">ViewSourceWith</a> is a browser related extension.</p>
<h3>Komodo specific</h3>
<ol>
<li>komodo scintilla</li>
<li>komodo snippets</li>
<li>komodo color schemes</li>
<li>komodo syntax checking disable</li>
<li>komodo copy with color</li>
<li>komodo adding colors</li>
<li>komodo clipboard</li>
<li>komodo macro open new browser window</li>
<li>komodo command openkomodo</li>
<li>dafizilla klint for komodo ide</li>
</ol>
<p>Many people wants to style its Komodo installation like with Firefox (3rd) but many people hates the native lint checker UI (4th and 10th).</p>
<p>The Komodo linter UI is awful (IMHO) and my extension <a href="http://dafizilla.sourceforge.net/klint/index.php">Klint</a> seems to be  known as a valid enhancement, well I&#8217;m very glad <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  hey guys, run to <a href="http://dafizilla.sourceforge.net/donate.php">donate</a> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Using clipboard from macros is an hot topic I suppose developers don&#8217;t know version 5 contains xtk.clipboard namespace.</p>
<p>Snippets are a  leitmotiv, I have some ideas about a website dedicated to komodo snippets and macros but I need days with 35-39 hours before deploy it.</p>
<h3>The masterpiece</h3>
<ol>
<li>mature blonde girl</li>
</ol>
<p>I don&#8217;t know how it is possible to arrive to a blog dedicated to XUL and other computer related materials searching porn-like terms <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>I&#8217;m very curious and I would like to know the terms used to arrive to bigger blogs on <a href="http://planet.mozilla.org/">planet.mozilla</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/581/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=581&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/04/09/xul-search-terms-used-to-arrive-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Colored file tabs for Komodo</title>
		<link>http://dafizilla.wordpress.com/2009/04/01/colored-file-tabs-for-komodo/</link>
		<comments>http://dafizilla.wordpress.com/2009/04/01/colored-file-tabs-for-komodo/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 12:37:43 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[openkomodo]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=568</guid>
		<description><![CDATA[A couple of months ago I wrote a Komodo macro allowing the editor view tabs to be colored based on user defined color schemes, when the macro became stable I published it on Komodo community forum.
Amazingly the macro received more feedback so I decided to &#8216;convert&#8217; it to an XUL extension.
Komodo macros are fantastic but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=568&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A couple of months ago I wrote a Komodo macro allowing the editor view tabs to be colored based on user defined color schemes, when the macro became stable I published it on <a href="http://community.activestate.com/forum/color-tab-language">Komodo community forum</a>.</p>
<p>Amazingly the macro received more feedback so I decided to &#8216;convert&#8217; it to an XUL extension.</p>
<p>Komodo macros are fantastic but they don&#8217;t allow to create complex UIs so moving them to XPI become a necessary step.</p>
<p>Now <a href="http://dafizilla.sourceforge.net/colortab/">ColorTab</a> is ready and can be downloaded from <a href="http://dafizilla.sourceforge.net/colortab/">here</a>.</p>
<p>The original name was KolorTab, the &#8216;K&#8217; letter used to remember Komodo but I&#8217;ve decided to use a more tradictional name <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<div class="wp-caption aligncenter" style="width: 510px"><img title="ColorTab look&amp;feel" src="http://apps.sourceforge.net/mediawiki/dafizilla/nfs/project/d/da/dafizilla/7/78/Colortab.png" alt="ColorTab look&amp;feel" width="500" height="280" /><p class="wp-caption-text">ColorTab look&amp;feel</p></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/568/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=568&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/04/01/colored-file-tabs-for-komodo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://apps.sourceforge.net/mediawiki/dafizilla/nfs/project/d/da/dafizilla/7/78/Colortab.png" medium="image">
			<media:title type="html">ColorTab look&#38;feel</media:title>
		</media:content>
	</item>
		<item>
		<title>Komodo maintenant parle Français (Komodo now speaks French)</title>
		<link>http://dafizilla.wordpress.com/2009/03/25/komodo-maintenaint-parle-francais-komodo-now-speaks-french/</link>
		<comments>http://dafizilla.wordpress.com/2009/03/25/komodo-maintenaint-parle-francais-komodo-now-speaks-french/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 17:25:52 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[babelzilla]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[openkomodo]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=562</guid>
		<description><![CDATA[The Babelzilla Team is proud to present the (unofficial) Komodo French localization.
Komodo 5.1 has been released, it contains many cool features and the Babelzilla guys have completed the FIRST localization, the first one.
You can find further details at French Mozilla blog and the installation instructions at BabelWiki
A special thanks goes to Goofy that coordinated the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=562&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a href="http://www.babelzilla.org/forum/index.php?act=portal">Babelzilla</a> Team is proud to present the (unofficial) Komodo French localization.</p>
<p><a href="http://trentm.com/blog/archives/2009/03/24/komodo51/">Komodo 5.1 has been released</a>, it contains many cool features and the <a href="http://www.babelzilla.org/forum/index.php?act=portal">Babelzilla</a> guys have completed the <strong><span style="color:#ff0000;">FIRST</span></strong> localization, the first one.</p>
<p>You can find further details at <a href="http://blog.frenchmozilla.fr/index/post/2009/03/25/Komodo-Edit-51-est-disponible-en-francais-aussi2">French Mozilla blog</a> and the installation instructions at <a href="http://babelwiki.babelzilla.org/index.php?title=OpenKomodo_fr">BabelWiki</a></p>
<p>A special thanks goes to Goofy that coordinated the L10N work.</p>
<p>Thanks guys, you made the world a better place without linguistic barrier.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/562/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=562&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/03/25/komodo-maintenaint-parle-francais-komodo-now-speaks-french/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding CSS Color Preview Tooltip to Komodo</title>
		<link>http://dafizilla.wordpress.com/2009/03/01/adding-css-color-preview-tooltip-to-komodo/</link>
		<comments>http://dafizilla.wordpress.com/2009/03/01/adding-css-color-preview-tooltip-to-komodo/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 11:36:12 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[komodo]]></category>
		<category><![CDATA[nsIDOMCSSPrimitiveValue]]></category>
		<category><![CDATA[openkomodo]]></category>
		<category><![CDATA[scintilla]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=545</guid>
		<description><![CDATA[Do you know Firebug? Uh no? Well please make a jump in twentieth century then return here  
Firebug has many great features but I love the color preview tooltip, from CSS Tab moving the mouse over a CSS color expression you will see a little box filled with the color found under the mouse [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=545&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Do you know <a href="http://getfirebug.com/">Firebug</a>? Uh no? Well please make a jump in twentieth century then return here <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Firebug has many great features but I love the <a href="http://getfirebug.com/css.html">color preview tooltip</a>, from CSS Tab moving the mouse over a CSS color expression you will see a little box filled with the color found under the mouse pointer.</p>
<p>Every time I edit CSS (and HTML) files from Komodo subconsciously I move mouse over a color waiting to see the tooltip but nothing happens <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I&#8217;ve realized a macro can do this job so I&#8217;ve written <a href="http://dafizilla.sourceforge.net/stuff/macros/ColorInfoTip.kpz">ColorInfoTip</a> that adds to Komodo the ability to show colored tooltip.</p>
<p><img class="aligncenter" src="http://apps.sourceforge.net/mediawiki/dafizilla/nfs/project/d/da/dafizilla/b/bd/ColorInfoTipPreview.jpg" alt="" width="402" height="148" /></p>
<h3>Some technical detail</h3>
<p><em>This is a macro! No need to create extensions, the Komodo macro <strong>ecosystem</strong> is very cool and powerful.</em></p>
<p>The tooltip is a scintilla <a href="http://www.scintilla.org/ScintillaDoc.html#CallTips">Call tip</a> accessible from Komodo API.</p>
<p>The CSS color string can be written using many <a href="http://www.w3.org/TR/CSS2/syndata.html#color-units">syntaxes</a> like #RRGGBB or rgb(R,G,B) instead of reinventing the wheel and write the parser I&#8217;ve used the <a href="http://www.xulplanet.com/references/objref/CSSPrimitiveValue.html#method_getRGBColorValue">getRGBColorValue</a> standard DOM method.</p>
<p>I discovered <a href="http://www.scintilla.org/ScintillaDoc.html">Scintilla</a> uses BBGGRR color format instead of RRGGBB so the <a href="http://www.xulplanet.com/references/objref/CSSRGBColor.html">CSSRGBColor</a> components have been converted to be Scintilla compliant.</p>
<h3>Known problems</h3>
<p>The macro isn&#8217;t perfect and any help is welcomed</p>
<ul>
<li>Sometimes the tooltip doesn&#8217;t close especially changing editor view</li>
<li><span style="text-decoration:line-through;">Moving mouse quickly doesn&#8217;t update the color</span> (fixed)</li>
<li>fill here the bug you found</li>
</ul>
<h3>ColorInfoTip.kpz</h3>
<p>You can download the macro from <a href="http://dafizilla.sourceforge.net/stuff/macros/ColorInfoTip.kpz">ColorInfoTip.kpz</a> then open the file from Komodo to install</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/545/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=545&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/03/01/adding-css-color-preview-tooltip-to-komodo/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://apps.sourceforge.net/mediawiki/dafizilla/nfs/project/d/da/dafizilla/b/bd/ColorInfoTipPreview.jpg" medium="image" />
	</item>
		<item>
		<title>Firefox spelling checker and multiple dictionaries</title>
		<link>http://dafizilla.wordpress.com/2009/02/03/firefox-spelling-checker-and-multiple-dictionaries/</link>
		<comments>http://dafizilla.wordpress.com/2009/02/03/firefox-spelling-checker-and-multiple-dictionaries/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 08:00:43 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[spelling]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=524</guid>
		<description><![CDATA[When Firefox integrated the spelling checker I didn&#8217;t immediately realized its value, but using it day after day I became &#8220;spell&#8221; addicted and now I can&#8217;t imagine my browser without this feature.
You can install all dictionaries you need, but many people uses only the dictionary for its own language.
Obviously I&#8217;m not a normal person so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=524&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When Firefox integrated the spelling checker I didn&#8217;t immediately realized its value, but using it day after day I became &#8220;spell&#8221; addicted and now I can&#8217;t imagine my browser without this feature.</p>
<p>You can install all dictionaries you need, but many people uses only the dictionary for its own language.</p>
<p>Obviously I&#8217;m not a normal person so I use three dictionaries; Italian, English and French switching between them when necessary.</p>
<p>Following <a href="http://en.wikipedia.org/wiki/Murphy%27s_law">Murphy laws</a> every time I start to type inside a input box I discover I&#8217;m using the wrong language and I must switch it from context menu, a very annoying practice.</p>
<p>Finally I&#8217;ve solved this problem writing the extension <a href="http://dafizilla.sourceforge.net/spellbysite">SpellBySite</a>.</p>
<p style="text-align:center;"><img class="aligncenter" title="SpellBySite Settings Dialog" src="http://dafizilla.sourceforge.net/img/screenshots/spellbysite/settings-main.png" alt="" width="288" height="198" /></p>
<p><a href="http://dafizilla.sourceforge.net/spellbysite">SpellBySite </a>switches <em><strong>automatically</strong></em> to the correct dictionary looking for it on user settings.</p>
<p>For example user can set English dictionary for mail.google.com, Italian for twitter.com and so on.</p>
<p>When input boxes receive focus the dictionary is set and spell checking executed, no more needs to switching from context menu <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Now my life is a bit easier <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>PS<br />
<a href="http://dafizilla.sourceforge.net/spellbysite">SpellBySite</a> is waiting on <a href="https://addons.mozilla.org/en-US/firefox/addon/10582">AMO</a> to escape from sandbox <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/524/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/524/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/524/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=524&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/02/03/firefox-spelling-checker-and-multiple-dictionaries/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.sourceforge.net/img/screenshots/spellbysite/settings-main.png" medium="image">
			<media:title type="html">SpellBySite Settings Dialog</media:title>
		</media:content>
	</item>
		<item>
		<title>XUL developers please add id attribute to elements (Sunday Thought)</title>
		<link>http://dafizilla.wordpress.com/2009/01/25/xul-developers-please-add-id-attribute-to-elements-sunday-thought/</link>
		<comments>http://dafizilla.wordpress.com/2009/01/25/xul-developers-please-add-id-attribute-to-elements-sunday-thought/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 11:00:18 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[sunday_thought]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=501</guid>
		<description><![CDATA[The XUL overlay mechanism is great, it allows to extend virtually any UI widget.
Damn, why developers continue to forget to add id attributes to elements candidate to be re-used (ie all)?
Please dear developers follow these simple rules

Please don&#8217;t forget windows and dialogs or simply refer to this short list  
Please don&#8217;t forget menu and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=501&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The XUL overlay mechanism is great, it allows to extend virtually any UI widget.</p>
<p>Damn, why developers continue to forget to add id attributes to elements candidate to be re-used (ie <strong>all</strong>)?</p>
<p>Please dear developers follow these simple rules</p>
<ul>
<li>Please don&#8217;t forget windows and dialogs or simply refer to <a href="http://www.xulplanet.com/references/elemref/">this</a> short list <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
<li>Please don&#8217;t forget menu and menuitems (not generated dinamically)</li>
<li>Add id attribute to every element</li>
<li>Add id attribute to every element (#1)</li>
<li>Add id attribute to every element (#2)</li>
<li>&#8230;</li>
<li>Add id attribute to every element (#n)</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-medium wp-image-502" title="I will always use ID attribute on XUL elements" src="http://dafizilla.files.wordpress.com/2009/01/iwilluseid.jpg?w=382&#038;h=204" alt="iwilluseid" width="382" height="204" /></p>
<p>Based on my experience no application is fully compliant: Firefox, Thunderbird, SeaMonkey and also Komodo contain elements I needed to access without an associated id attribute</p>
<h3>How to survive to bad practices</h3>
<p>Sometimes (but not always) it is possible to use some workaround.<br />
<em>Consider that workarounds can be worst than initial problem</em></p>
<ul>
<li>Find target element with <a href="https://developer.mozilla.org/en/XUL/Method/getElementsByAttribute">getAttributesByName</a> method, it is especially useful for menuitems passing the &#8216;value&#8217; attribute</li>
<li>Find an element closer to the target using its id then navigate DOM with methods/attributes like <a href="https://developer.mozilla.org/en/XUL_Tutorial/Document_Object_Model#Navigating_the_DOM">firstChild</a> &amp; co.</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/501/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=501&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/01/25/xul-developers-please-add-id-attribute-to-elements-sunday-thought/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/01/iwilluseid.jpg?w=300" medium="image">
			<media:title type="html">I will always use ID attribute on XUL elements</media:title>
		</media:content>
	</item>
		<item>
		<title>Posting syntax highlighted code on wordpress.com using Komodo macro</title>
		<link>http://dafizilla.wordpress.com/2009/01/20/posting-syntax-highlighted-code-on-wordpresscom-using-komodo-macro/</link>
		<comments>http://dafizilla.wordpress.com/2009/01/20/posting-syntax-highlighted-code-on-wordpresscom-using-komodo-macro/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 13:30:23 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[clipboard]]></category>
		<category><![CDATA[koIFileEx]]></category>
		<category><![CDATA[koIFileService]]></category>
		<category><![CDATA[koScintillaSchemeService]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[nsIClipboard]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=481</guid>
		<description><![CDATA[Soon or later any blogger talking about software development will post some snippet of code.
To make code more cool and attractive he/she will use syntax highlight.
There are many alternatives for many blog platforms like Pygments, GeSHI, CodeHighlighter, WP-Syntax and so on.
This blog is hosted on the free version of WordPress.com, it doesn&#8217;t allow to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=481&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Soon or later any blogger talking about software development will post some snippet of code.</p>
<p>To make code more cool and attractive he/she will use syntax highlight.</p>
<p>There are many alternatives for many blog platforms like <a href="http://pygments.org/">Pygments</a>, <a href="http://qbnz.com/highlighter/">GeSHI</a>, <a href="http://wordpress.org/extend/plugins/code-highlighter/">CodeHighlighter</a>, <a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a> and so on.</p>
<p>This blog is hosted on the <strong>free </strong>version of <a href="http://wordpress.com/">WordPress.com</a>, it doesn&#8217;t allow to use any plugin or user-defined CSS so adding <strong><em>sexy</em> </strong>code is very difficult.</p>
<p>Komodo has the ability to <a href="http://docs.activestate.com/komodo/5.0/files.html#files_printhtml">print to HTML files</a> code with the syntax highlighted, this feature is fully accessible from APIs so I&#8217;ve written a macro that</p>
<ul>
<li>make CSS style inline replacing HTML class with corresponding style attributes</li>
<li>copy to clipboard (using the new Komodo 5 clipboard helper library) in HTML format so user can paste directly on Visual WordPress mode</li>
</ul>
<p>Below you find the macro source code obviously highlighted by itself <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<h3>How to get the selected text (or the whole Komodo view) converted to HTML</h3>
<p>The variable str at end contains the converted HTML</p>
<pre><span style="font-size:12px;"><span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">view</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">ko</span><span style="color:#781f87;">.</span><span class="identifiers">views</span><span style="color:#781f87;">.</span><span class="identifiers">manager</span><span style="color:#781f87;">.</span><span class="identifiers">currentView</span><span style="color:#781f87;">;</span>

<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">tmpFileSvc</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">classes</span><span style="color:#781f87;">[</span><span style="color:#23238e;">"@activestate.com/koFileService;1"</span><span style="color:#781f87;">]</span>
<span class="default">                 </span><span style="color:#781f87;">.</span><span class="identifiers">getService</span><span style="color:#781f87;">(</span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">interfaces</span><span style="color:#781f87;">.</span><span class="identifiers">koIFileService</span><span style="color:#781f87;">)</span>
<span class="identifiers">fname</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">tmpFileSvc</span><span style="color:#781f87;">.</span><span class="identifiers">makeTempName</span><span style="color:#781f87;">(</span><span style="color:#23238e;">".html"</span><span style="color:#781f87;">);</span>

<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">lang</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">view</span><span style="color:#781f87;">.</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">languageObj</span><span style="color:#781f87;">;</span>
<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">forceColor</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span style="color:#871f78;">true</span><span style="color:#781f87;">;</span>
<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">selectionOnly</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">view</span><span style="color:#781f87;">.</span><span class="identifiers">selection</span><span class="default"> </span><span style="color:#781f87;">!=</span><span class="default"> </span><span style="color:#23238e;">""</span><span style="color:#781f87;">;</span>
<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">schemeService</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">classes</span><span style="color:#781f87;">[</span><span style="color:#23238e;">'@activestate.com/koScintillaSchemeService;1'</span><span style="color:#781f87;">].</span><span class="identifiers">getService</span><span style="color:#781f87;">();</span>
<span class="identifiers">schemeService</span><span style="color:#781f87;">.</span><span class="identifiers">convertToHTMLFile</span><span style="color:#781f87;">(</span><span class="identifiers">view</span><span style="color:#781f87;">.</span><span class="identifiers">scimoz</span><span style="color:#781f87;">,</span>
<span class="default">                                </span><span class="identifiers">view</span><span style="color:#781f87;">.</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">displayPath</span><span style="color:#781f87;">,</span>
<span class="default">                                </span><span class="identifiers">view</span><span style="color:#781f87;">.</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">language</span><span style="color:#781f87;">,</span>
<span class="default">                                </span><span class="identifiers">lang</span><span style="color:#781f87;">.</span><span class="identifiers">styleBits</span><span style="color:#781f87;">,</span>
<span class="default">                                </span><span class="identifiers">view</span><span style="color:#781f87;">.</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">encoding</span><span style="color:#781f87;">.</span><span class="identifiers">python_encoding_name</span><span style="color:#781f87;">,</span>
<span class="default">                                </span><span class="identifiers">fname</span><span style="color:#781f87;">,</span>
<span class="default">                                </span><span class="identifiers">selectionOnly</span><span style="color:#781f87;">,</span>
<span class="default">                                </span><span class="identifiers">forceColor</span><span style="color:#781f87;">);</span>

<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">file</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">classes</span><span style="color:#781f87;">[</span><span style="color:#23238e;">"@activestate.com/koFileEx;1"</span><span style="color:#781f87;">]</span>
<span class="default">        </span><span style="color:#781f87;">.</span><span class="identifiers">createInstance</span><span style="color:#781f87;">(</span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">interfaces</span><span style="color:#781f87;">.</span><span class="identifiers">koIFileEx</span><span style="color:#781f87;">)</span>
<span class="identifiers">file</span><span style="color:#781f87;">.</span><span class="identifiers">URI</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">ko</span><span style="color:#781f87;">.</span><span class="identifiers">uriparse</span><span style="color:#781f87;">.</span><span class="identifiers">localPathToURI</span><span style="color:#781f87;">(</span><span class="identifiers">fname</span><span style="color:#781f87;">);</span>
<span class="identifiers">file</span><span style="color:#781f87;">.</span><span class="identifiers">open</span><span style="color:#781f87;">(</span><span style="color:#23238e;">'rb'</span><span style="color:#781f87;">);</span>
<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">str</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">file</span><span style="color:#781f87;">.</span><span class="identifiers">readfile</span><span style="color:#781f87;">();</span>
<span class="identifiers">file</span><span style="color:#781f87;">.</span><span class="identifiers">close</span><span style="color:#781f87;">();</span></span></pre>
<h3>Applying the replace to str</h3>
<p>Nothing really interesting, simply the replace method is called many times to make CSS style inline inside span tags</p>
<h3>Copy to clipboard in HTML format</h3>
<p>Komodo 5 allows to interact with clipboard wrapping XPCOM services, these APIs allow to copy in the so called HTML <a href="https://developer.mozilla.org/en/Using_the_Clipboard">flavor</a> so content preserves styles and colors.</p>
<pre><span style="font-size:12px;"><span class="identifiers">xtk</span><span style="color:#781f87;">.</span><span class="identifiers">include</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"clipboard"</span><span style="color:#781f87;">);</span>

<span style="color:#871f78;">var</span><span class="default"> </span><span class="identifiers">transferable</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">xtk</span><span style="color:#781f87;">.</span><span class="identifiers">clipboard</span><span style="color:#781f87;">.</span><span class="identifiers">addTextDataFlavor</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"text/html"</span><span style="color:#781f87;">,</span><span class="default"> </span><span class="identifiers">str</span><span style="color:#781f87;">);</span>
<span class="identifiers">transferable</span><span class="default"> </span><span style="color:#781f87;">=</span><span class="default"> </span><span class="identifiers">xtk</span><span style="color:#781f87;">.</span><span class="identifiers">clipboard</span><span style="color:#781f87;">.</span><span class="identifiers">addTextDataFlavor</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"text/unicode"</span><span style="color:#781f87;">,</span><span class="default"> </span><span class="identifiers">str</span><span style="color:#781f87;">,</span><span class="default"> </span><span class="identifiers">transferable</span><span style="color:#781f87;">);</span>
<span class="identifiers">xtk</span><span style="color:#781f87;">.</span><span class="identifiers">clipboard</span><span style="color:#781f87;">.</span><span class="identifiers">copyFromTransferable</span><span style="color:#781f87;">(</span><span class="identifiers">transferable</span><span style="color:#781f87;">);</span>
</span></pre>
<h3>That&#8217;s all folks</h3>
<p>After running this macro on a Komodo view you can paste directly on WordPress Visual editor and obtain your beautiful code.</p>
<p>Using HTML flavor you can paste into any application able to accept Special Formats like Microsoft Word or OpenOffice Writer.</p>
<p>The full macro source code can be found on <a href="http://tinyurl.com/96swuv">Macro SVN repository</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/481/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=481&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/01/20/posting-syntax-highlighted-code-on-wordpresscom-using-komodo-macro/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Rumbling about VisualDiffer</title>
		<link>http://dafizilla.wordpress.com/2009/01/17/rumbling-about-visualdiffer/</link>
		<comments>http://dafizilla.wordpress.com/2009/01/17/rumbling-about-visualdiffer/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 10:34:48 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[komodo]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=463</guid>
		<description><![CDATA[After many months I&#8217;ve started again to work on VisualDiffer the most complex extension I ever realized.

Developing VisualDiffer is an exciting task at least for two reasons

Deeper level XUL usage to create complex user interfaces
Attention to code performances to make application more reactive

At this time the UI doesn&#8217;t present any special widget but I&#8217;ve some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=463&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After many months I&#8217;ve started again to work on <a href="http://dafizilla.sourceforge.net/visualdiffer/screenshots.php">VisualDiffer</a> the most complex extension I ever realized.</p>
<p style="text-align:center;"><a href="http://dafizilla.sourceforge.net/img/screenshots/visualdiffer/fileDiff.png"><img class="aligncenter" title="Screenshot" src="http://dafizilla.sourceforge.net/img/screenshots/visualdiffer/fileDiff-mini.png" alt="" width="270" height="200" /></a></p>
<p>Developing VisualDiffer is an exciting task at least for two reasons</p>
<ul>
<li>Deeper level XUL usage to create complex user interfaces</li>
<li>Attention to code performances to make application more reactive</li>
</ul>
<p>At this time the UI doesn&#8217;t present any special widget but I&#8217;ve some idea about line position sliders and comparison file results, they will be very fun to implement.</p>
<p>The implementation has a bottleneck in the Javascript sort function.</p>
<p>While VisualDiffer only runs on Komodo I&#8217;ve tried to run the directories sort routines on Firefox with <a href="https://wiki.mozilla.org/JavaScript:TraceMonkey">TraceMonkey</a> enabled and I noticed some speedup, nothing so amazing but with deep file trees  (~600 directories and ~2000 files) TraceMonkey completes in 10-20% less time (very good!!).</p>
<p>Due to the fact Komodo is based on Python, it should be easier to write core sort routines directly in Python, I will do it very soon.</p>
<p>VisualDiffer features list (in my mind)  is very long but the already implemented is a very short subset.</p>
<p>I think it is mandatory to adopt the <a href="http://catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/ar01s04.html">Release Early, Release Often</a> strategy otherwise I&#8217;ll release the next version in 2030.</p>
<p>A couple of new functionalities are complete</p>
<ul>
<li><a href="https://sourceforge.net/tracker2/?func=detail&amp;aid=2369618&amp;group_id=135288&amp;atid=732462"><span>2369618</span></a> quick comparing two open files selecting them from View Tab context menu (released)</li>
<li><span><a href="https://sourceforge.net/tracker2/?func=detail&amp;aid=2515481&amp;group_id=135288&amp;atid=732462">2515481</a> </span>set two different base folders from Directory Panel (not released)</li>
</ul>
<p>At this time I&#8217;ve abandoned the idea to add the three-file compare view I want to add many little time saver features like</p>
<ul>
<li>copy/move folders from Folder sides</li>
<li>rename folders/files</li>
<li>reload changed files</li>
<li>syntax highlight (this should be easy within Komodo)</li>
<li>in place edit (no need to switch between Komodo and VisualDiffer)</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/463/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=463&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/01/17/rumbling-about-visualdiffer/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.sourceforge.net/img/screenshots/visualdiffer/fileDiff-mini.png" medium="image">
			<media:title type="html">Screenshot</media:title>
		</media:content>
	</item>
	</channel>
</rss>