A Notepad++ plugin that allows realtime code check against any checkstyle-compatible linter: jshint, eslint, jscs, phpcs, csslint etc.
- Copy bin/linter.dll to your Notepad++ plugins directory
- Plugins -> Linter -> Edit config
- Restart Notepad++
<?xml version="1.0" encoding="utf-8" ?>
<NotepadPlus>
<linter extension=".js" command="C:\Users\deadem\AppData\Roaming\npm\jscs.cmd --reporter=checkstyle"/>
<linter extension=".js" command="C:\Users\deadem\AppData\Roaming\npm\jshint.cmd --reporter=checkstyle"/>
<linter extension=".js" command="C:\Users\deadem\AppData\Roaming\npm\eslint.cmd --format checkstyle"/>
<linter extension=".js" command=""C:\Path with spaces\somelint.cmd" --format checkstyle"/>
<linter extension=".php" command="C:\Path_to\phpcs --report=checkstyle"/>
</NotepadPlus>
Optional attribute stdin
="1" can be used to lint from stdin instead of temp file. i.e:
<linter stdin="1" extension=".js" command="C:\Users\deadem\AppData\Roaming\npm\eslint.cmd --stdin --format checkstyle"/>
To handle spaces in names, you should use the " quote character, as follows:
<linter extension=".none" command=""C:\a command with spaces\thing" --stuff" />
Optional parameter
You can change default colors by an optional "style" tag. "color" attribute is a RGB hex color value, "alpha" value can range from 0 (completely transparent) to 255 (no transparency).
<NotepadPlus>
<style color="0000FF" alpha="100" />
...
</NotepadPlus>