Permalink
Browse files

Formatting cleanup.

  • Loading branch information...
1 parent a66a81d commit 729ac68709c963425d2a9b96bff3ad07f19414ae Jamie Hoover ⚔ committed Mar 11, 2012
Showing with 7 additions and 14 deletions.
  1. +7 −14 README.md
View
@@ -2,35 +2,28 @@
The best JavaScript syntax checker: [JSHint](http://www.jshint.com/) for the best text editor: [Sublime Text 2](http://www.sublimetext.com/2)
-##Install with Package Control
+**Prerequisites:** node 0.6.x, npm 1.1.x `curl http://npmjs.org/install.sh | sh`, jshint 0.5.x `npm install -g jshint` and [Sublime Package Control](http://wbond.net/sublime_packages/package_control/installation)
-Prerequisites:
+**Mac OS X:** Install node with homebrew `brew update` `brew install node`. Make sure you have either the latest Command Line Tools or Xcode before installing homebrew.
-- node 0.6.x
-- npm 1.1.x `curl http://npmjs.org/install.sh | sh`
-- jshint 0.5.x `npm install -g jshint`
-- [Sublime Package Control](http://wbond.net/sublime_packages/package_control/installation)
+**Windows:** Node should be in your `CLASSPATH` in environment variables, `C:\Program Files (x86)\nodejs`
-Steps in Sublime Text 2:
+##Install with Package Control
1. `command`-`shift`-`P` *or `control`-`shift`-`P` in Linux/Windows*
2. type `install p`, select `Package Control: Install Package`
3. type `jshint`, select `JSHint`
-*Without Sublime Package Control, you could manually clone to Packages directory as 'JSHint', exactly.*
+**Note:** Without Sublime Package Control, you could manually clone to Packages directory as 'JSHint', exactly.
##Run JSHint on an active JavaScript file in Sublime Text 2
- `control`-`J` *or Tools/Contextual menus or the Command Palette*
- `F4` jump to next error row/column
- `shift`-`F4` jump to previous error row-column
+**Note:** The `control`-`J` shortcut changes the Build System on the current file to JSHint, then Builds to run JSHint on the file and output any errors for jumping to within the file. You could alternatively set the Build System to Automatic and `command`-`B`/`control`-`B`/`F7`, but only on files that end with .js.
+
##Run JSHint on save
Install [SublimeOnSaveBuild](https://github.com/alexnj/SublimeOnSaveBuild)
-
-**Note:** The `control`-`J` shortcut changes the Build System on the current file to JSHint, then Builds to run JSHint on the file and output any errors for jumping to within the file. You could alternatively set the Build System set to Automatic and `command`-`B`/`control`-`B`/`F7`, but only on files that end with .js.
-
-**Mac OS X:** Install node with homebrew `brew update` `brew install node`. Make sure you have either the latest Command Line Tools or Xcode before installing homebrew.
-
-**Windows:** Node should be in your `CLASSPATH` in environment variables, `C:\Program Files (x86)\nodejs`

0 comments on commit 729ac68

Please sign in to comment.