Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2>Syntax Checking / Linting</h2> <p>There is a very easy way to integrate JSLint or the community-driven <a href="http://jshint.com" rel="nofollow noreferrer">jshint.com</a> (which is much better IMO) with Vim using the Syntastic Vim plugin. See <a href="https://stackoverflow.com/questions/473478/vim-jslint/5893447#5893447">my other post</a> for more info.</p> <h2>Source-Code browsing / Tag-list</h2> <p>There's also a very neat way to add tag-listing using Mozilla's <em>DoctorJS</em> (formerly <em>jsctags</em>), which is also used in <a href="http://cloud9ide.com/" rel="nofollow noreferrer">Cloud9 IDE</a>'s <a href="http://ace.ajax.org/" rel="nofollow noreferrer">Ace online editor</a>.</p> <ol> <li>Install the following packages using your favorite package-manager (Ubuntu's <code>apt-get</code>, Mac's <a href="http://mxcl.github.com/homebrew/" rel="nofollow noreferrer">home <code>brew</code></a>, etc.): <ol> <li><code>exuberant-ctags</code> <ul> <li><strong>NOTE:</strong> After installing make sure running <code>ctags</code> actually runs <code>exuberant-ctags</code> and not the OS's preinstalled <code>ctags</code>. You can find out by executing <code>ctags --version</code>.</li> </ul></li> <li><code>node</code> (Node.js)</li> </ol></li> <li>Clone <code>DoctorJS</code> from github: <code>git clone https://github.com/mozilla/doctorjs.git</code></li> <li>Go inside <code>DoctorJS</code> dir and <code>make install</code> (You'll also need the <code>make</code> app installed, but this is very basic). <ul> <li>There're some bugs with installing the plugin, <code>make install</code> doesn't do the trick for the moment. For now I just add the repo's <code>bin/</code> dir to my $PATH instead. See <a href="https://github.com/mozilla/doctorjs" rel="nofollow noreferrer">DoctorJS's GitHub and issues pages</a> for more info.</li> </ul></li> <li>Install the <a href="http://www.vim.org/scripts/script.php?script_id=3465" rel="nofollow noreferrer">TagBar Vim plugin</a> (<strong>NOTE:</strong> It's TagBar, not the old infamous TagList!).</li> <li>PROFIT. :)</li> </ol> <h3>New Project - Tern.js</h3> <p><a href="https://groups.google.com/forum/?fromgroups=#!topic/js-tools/tZ-1jDYxGZk" rel="nofollow noreferrer">DoctorJS is currently dead</a>. There's a new promising project called <a href="http://ternjs.net/" rel="nofollow noreferrer">tern.js</a>. It's currently in early beta, and should eventually replace it.</p> <p>There is a project <a href="https://github.com/ramitos/jsctags" rel="nofollow noreferrer">ramitos/jsctags</a> which uses tern as its engine. Just <code>npm install -g</code> it, and tagbar will automatically use it for javascript files. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload