JavaScript Verification Tool

JSLint is a very handy web-based JavaScript verification tool that identifies errors and warnings in your code, which otherwise can be hard to locate. JSLint can also be integrated into TextMate by installing a bundle from BundleForge called JavaScript Tools.

Install bundle using SVN in terminal:
cd ~/Library/Application Support/TextMate/Bundles
svn export http://bundles.bundleforge.com/trunk/bundles/JavaScript%20Tools.tmbundle/

When the SVN repository is exported, reload bundles in TextMate (Bundles > Bundle Editor > Reload Bundles) and now you can use JSLint directly on your JavaScript files in TextMate. By pressing CTRL-SHIFT-V a pop-up window with the validation result will appear, and another nice feature is when you save, a small tool-tip will appear at the cursor showing the number of errors and warning, if any.

Another useful altenative to TextMate when dealing with JavaScript is the Aptana IDE, the editor has code assist on JavaScript, HTML, and CSS languages, FTP/SFTP support and a JavaScript debugger. It’s available both for Mac and Windows.

This entry was posted in Mac OS X, Web Development. Bookmark the permalink.

One Response to JavaScript Verification Tool

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.