<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Snippets code from my daily experience &#187; scintilla</title>
	<atom:link href="http://dafizilla.wordpress.com/category/scintilla/feed/" rel="self" type="application/rss+xml" />
	<link>http://dafizilla.wordpress.com</link>
	<description>Just another unnecessary code resource blog</description>
	<lastBuildDate>Sun, 20 Dec 2009 10:00:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dafizilla.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<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 &#187; scintilla</title>
		<link>http://dafizilla.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dafizilla.wordpress.com/osd.xml" title="Snippets code from my daily experience" />
		<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>Komodo and readonly behavior</title>
		<link>http://dafizilla.wordpress.com/2008/03/15/komodo-and-readonly-behavior/</link>
		<comments>http://dafizilla.wordpress.com/2008/03/15/komodo-and-readonly-behavior/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 10:30:03 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[morekomodo]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[openkomodo]]></category>
		<category><![CDATA[scintilla]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=44</guid>
		<description><![CDATA[Komodo editor handles read-only in a incomplete manner, at least for me.
The truly question is &#8220;what read-only means?&#8221; A file can be read-only but also an editor buffer can be read-only.
Komodo handles read-only files is a smart way, it opens file and shows a little lock on editor tab but user can edit the text [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=44&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Komodo editor handles <i>read-only</i> in a incomplete manner, at least for me.</p>
<p>The truly question is &#8220;what <i>read-only</i> means?&#8221; A file can be read-only but also an editor buffer can be read-only.</p>
<p>Komodo handles read-only files is a smart way, it opens file and shows a little lock on editor tab but user can edit the text buffer, it isn&#8217;t marked as read-only.</p>
<p>If user tries to save a warning message pops up allowing to choose if saving must be forced or cancelled.</p>
<p>Cool sure but I want to mark editor buffer as temporary read-only irrespective to file flag, this feature is missing on Komodo but scintilla has a readonly property.</p>
<p>I&#8217;ve added to <a href="http://dafizilla.sourceforge.net/morekomodo/">MoreKomodo</a> the ability to mark editor buffers as &#8220;edit locked&#8221;.</p>
<p>I think &#8220;edit locked&#8221; sounds good then &#8220;buffer read-only&#8221;.</p>
<p>The code is straightforward, simply sent the scintilla readonly property as shown below</p>
<pre>     onToogleLockEdit : function() {
        var view = ko.views.manager.currentView;
        view.scintilla.scimoz.readOnly = !view.scintilla.scimoz.readOnly;
    }</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=44&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/03/15/komodo-and-readonly-behavior/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>
	</channel>
</rss>