<?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>Dan Hulton&#039;s blog &#187; jslint</title>
	<atom:link href="http://www.danhulton.com/blog/tag/jslint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danhulton.com/blog</link>
	<description>Coffee, code, contemplation.</description>
	<lastBuildDate>Wed, 08 Sep 2010 03:31:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Super-useful Komodo Plugins</title>
		<link>http://www.danhulton.com/blog/2009/05/22/super-useful-komodo-plugins/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=super-useful-komodo-plugins</link>
		<comments>http://www.danhulton.com/blog/2009/05/22/super-useful-komodo-plugins/#comments</comments>
		<pubDate>Fri, 22 May 2009 18:33:02 +0000</pubDate>
		<dc:creator>Dan Hulton</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[jslint]]></category>
		<category><![CDATA[komodo edit]]></category>
		<category><![CDATA[lint]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[source tree]]></category>
		<category><![CDATA[todo]]></category>

		<guid isPermaLink="false">http://www.danhulton.com/blog/?p=153</guid>
		<description><![CDATA[Komodo Edit is Awesome and has Plugins Komodo Edit is awesome and you should all use it. Seriously. I don&#8217;t know how much more I need to go on about this point, but the productivity benefits of a good IDE are astounding, and if you&#8217;re still using Notepad or gedit or the like like, then [...]]]></description>
			<content:encoded><![CDATA[<h3>Komodo Edit is Awesome and has Plugins</h3>
<p>Komodo Edit is awesome and you should all use it.</p>
<p>Seriously.  I don&#8217;t know how much more I need to go on about this point, but the productivity benefits of a good IDE are astounding, and if you&#8217;re still using Notepad or gedit or the like like, then you are Doing It Wrong.</p>
<p>If I had to recommend a good IDE, I&#8217;d recommend Komodo Edit.  I have before.  Hell, <a href="http://www.activestate.com/komodo_edit/">I&#8217;m still their go-to quote</a>, a fact that I find puzzling, yet rewarding.</p>
<p>Anyway.  The guys at Activestate switched to using the Mozilla codebase a while ago, which means that anyone who can write a Firefox extension can (in theory) write a Komodo extension.  And so they have!  And I have found three that I have fallen absolutely in love with.</p>
<p>They are:</p>
<h3><a href="http://community.activestate.com/node/1396">TODO Helper</a></h3>
<p>The <a href="http://community.activestate.com/node/1396">TODO Helper plugin</a> is great if you leave all kinds of little &#8220;TODO:&#8221;s scattered through your code as mental bookmarks.  This plug-in can quickly search your entire project for all TODOs listed and display them in the bottom panel.</p>
<p>It&#8217;s a little frustrating when the framework you&#8217;re using leaves TODOs in their releases, but it&#8217;s not hard to take those suckers out anyway.</p>
<h3><a href="http://community.activestate.com/xpi/kjslint-jslint-komodo">kJSLint</a></h3>
<p>A long while ago, I blogged about <a href="http://www.danhulton.com/blog/2008/01/16/integrate-js-lint-into-komodo-edit/">how to integrate jslint into Komodo Edit</a>, but I guess that&#8217;s not really strictly necessary these days.  Since there&#8217;s <a href="http://community.activestate.com/xpi/kjslint-jslint-komodo">a plugin that integrates jslint into a menu command</a>.</p>
<p>Sure, you lose out somewhat on the ability to control exactly what version of jslint you use, but the version included is rather up-to-date, and saves you the trouble of having to install an interpreter just to run it.  A definite win.</p>
<p>(Also, the &#8220;Crockford says no.&#8221; message it spits out when you fail validation makes me smile every time.)</p>
<h3>Source Tree</h3>
<p>Though not as slick as <a href="http://www.activestate.com/komodo_edit/osx_sections_list_code.jpg">Komodo IDE&#8217;s code browser</a>, at least the <a href="http://community.activestate.com/xpi/source-tree">Source Tree plugin</a> is free and does what it says on the tin.  Having the entirety of the file&#8217;s functions and classes available and easy to navigate is <em>very</em> handy.  Shame this isn&#8217;t in the free version of Edit to start, but they&#8217;ve got to have <em>some</em> features to differentiate the two enough to encourage people to buy the &#8220;pro&#8221; edition.</p>
<h3>And in Conclusion</h3>
<p>Komodo Edit.  It&#8217;s good.  Komodo Edit with Plugins.  Even better.</p>
<p>Now get coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danhulton.com/blog/2009/05/22/super-useful-komodo-plugins/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Integrate JS Lint into Komodo Edit</title>
		<link>http://www.danhulton.com/blog/2008/01/16/integrate-js-lint-into-komodo-edit/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=integrate-js-lint-into-komodo-edit</link>
		<comments>http://www.danhulton.com/blog/2008/01/16/integrate-js-lint-into-komodo-edit/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 18:10:40 +0000</pubDate>
		<dc:creator>Dan Hulton</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jslint]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[lint]]></category>

		<guid isPermaLink="false">http://www.danhulton.com/blog/2008/01/16/integrate-js-lint-into-komodo-edit/</guid>
		<description><![CDATA[There&#8217;s no contest. My favourite editor is Komodo Edit. I&#8217;ve written in the past before about how much it rocks (although that was before the great blog crash of &#8217;08, and is likely lost to the mists of time), and I&#8217;d like to share with you all today another way to make Komodo Edit just [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s no contest.  My favourite editor is <a href="http://www.activestate.com/Products/komodo_edit/">Komodo Edit</a>.  I&#8217;ve written in the past before about how much it rocks (although that was before the great blog crash of &#8217;08, and is likely lost to the mists of time), and I&#8217;d like to share with you all today another way to make Komodo Edit just a little bit cooler &#8211; integrate JS Lint directly into it.</p>
<h3>WTF is JS Lint?</h3>
<p>Well, a long time ago, someone noticed that while there are all kinds of ways to write certain code, certain specific ways are sloppier than others and can lead to errors.  They wrote a tool called <a href="http://en.wikipedia.org/wiki/Lint_programming_tool">lint</a> to parse through code and find those little linty bits and draw them to your attention.</p>
<p>Javascript, while an incredible language, is absolutely <b>chock-full</b> of language constructs that allow for sloppy coding to occur.  So, the inestimable <a href="http://www.crockford.com/">Douglas Crockford</a> wrote <a href="http://www.jslint.com/">JS Lint</a> &#8211; a lint program for the Javascript language.</p>
<h3>Okay, so how do I do this?</h3>
<p>First, you&#8217;ll need to download <a href="http://www.javascriptlint.com/download.htm">an executable form of JS Lint</a>.  If you&#8217;re running Linux, make sure you&#8217;ve got <a href="http://www.winehq.org/">Wine</a> installed and you&#8217;ll be just fine.</p>
<p>Make a copy of the &#8220;js.default.conf&#8221; file in that directory, and call it lint.conf.  Find the following section:</p>
<p><code>### Output format<br />
# Customize the format of the error message.<br />
#    __FILE__ indicates current file path<br />
#    __FILENAME__ indicates current file name<br />
#    __LINE__ indicates current line<br />
#    __ERROR__ indicates error message<br />
#<br />
# Visual Studio syntax (default):<br />
+output-format __FILE__(__LINE__): __ERROR__<br />
# Alternative syntax:<br />
#+output-format __FILE__:__LINE__: __ERROR__</code></p>
<p>Comment out the un-commented line there, and un-comment the last one.  Finally, at the bottom of that file, remove the entry in the &#8220;Files&#8221; section.</p>
<p>Now boot Komodo Edit.</p>
<p>Open the Toolbox by clicking the little &#8220;Show/Hide Right Pane&#8221; button in the toolbar.  Click on the &#8220;Add Item to Toolbox&#8221; button and add a new command.  Now go to town making your new command look like mine:</p>
<p><a href='http://www.danhulton.com/blog/wp-content/uploads/2008/01/jslint-properties.png' title='JSLint Properties'><img style="display: block; margin-left: auto; margin-right: auto;" src='http://www.danhulton.com/blog/wp-content/uploads/2008/01/jslint-properties.png' alt='JSLint Properties' /></a></p>
<p>Now, that Command string isn&#8217;t quite correct &#8211; the right bit is chopped off in the screenshot.  It should read:</p>
<p><code>wine /opt/jslint/jsl.exe -conf lint.conf -process %F</code></p>
<p>You can make the string smaller by including jsl.exe&#8217;s directory in your path, or by running Windows and removing wine from the equation.  =)</p>
<p>I understand that the Parse Output string is a little confusing (and chopped-off too), but don&#8217;t worry about it.  It should be filled in automatically and work by default.  If it DOESN&#8217;T though, here&#8217;s the string for you to copy-paste:</p>
<p><code>^(?P&lt;file&gt;.+?):(?P&lt;line&gt;\d+):(?P&lt;content&gt;.*)$</code></p>
<p>Simple as that!</p>
<h3>Yeah, but what does it do?</h3>
<p><a href='http://www.danhulton.com/blog/wp-content/uploads/2008/01/jslint-result.png' title='Results of running JS Lint in Komodo Edit.'><img style="display: block; margin-left: auto; margin-right: auto;"src='http://www.danhulton.com/blog/wp-content/uploads/2008/01/jslint-result.thumbnail.png' alt='Results of running JS Lint in Komodo Edit.' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danhulton.com/blog/2008/01/16/integrate-js-lint-into-komodo-edit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
