Skip to content

Instantly share code, notes, and snippets.

@geminorum
Created August 28, 2014 13:21
Show Gist options
  • Save geminorum/b9088ecc20bad55a760f to your computer and use it in GitHub Desktop.
Save geminorum/b9088ecc20bad55a760f to your computer and use it in GitHub Desktop.
This build uses Google's Closure Compiler solely for its error output, allowing you to use NppExec
for a quick syntax sanity check while editing JavaScript files, using F6 to cycle through any syntax
errors the compiler flags up.
To add the build:
1. Install NppExec plugin using Plugin Manager or download it from http://bit.ly/tHIUs and restart Notepad++
2. Download the Closure compiler.jar from http://code.google.com/closure/compiler/ and place it somewhere
on your computer. An easy place to do so is to save it directly to C:\ to avoid path issues.
3. On Notepad++ hit F6
4. On the Command(s) text area, paste this text (and modify according to your local settings):
java -jar "C:\compiler.jar" --js $(FULL_CURRENT_PATH) --js_output_file NUL --compilation_level WHITESPACE_ONLY
5. Click on Save button and assign a name of your preference.
6. OK
For future executions you can hit F6 to select the command from your saved commands or Ctrl + F6 if you
already executed it before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment