Notepad Pp Linter Save

Notepad++ Linter. Realtime code check against any checkstyle-compatible linter: jshint, eslint, jscs, phpcs, csslint etc

Project README

Notepad++ Linter

A Notepad++ plugin that allows realtime code check against any checkstyle-compatible linter: jshint, eslint, jscs, phpcs, csslint etc.

Installation

  • Copy bin/linter.dll to your Notepad++ plugins directory
  • Plugins -> Linter -> Edit config
  • Restart Notepad++

Config example

<?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>
Open Source Agenda is not affiliated with "Notepad Pp Linter" Project. README Source: deadem/notepad-pp-linter

Open Source Agenda Badge

Open Source Agenda Rating