junichi11 / netbeans-textlint-plugin

Support for textlint.
http://plugins.netbeans.org/plugin/73031/textlint-support
Apache License 2.0
6 stars 0 forks source link
netbeans netbeans-plugin textlint

NetBeans textlint Plugin

License Build Status

This plugin provides support for textlint.

annotations

Donation

What's the textlint?

See https://github.com/textlint/textlint

Downloads

Usage

Install textlint and rules

Of course, it assumes that nodejs and npm are installed.

e.g.

$ mkdir txtlint
$ cd txtlint
$ npm init
$ npm install textlint --save-dev
$ npm install textlint-rule-max-ten textlint-rule-spellcheck-tech-word textlint-rule-no-mix-dearu-desumasu --save-dev

Create .textlintrc

$ touch .textlintrc
{
  "rules": {
    "max-ten": {
      "max": 3
    },
    "spellcheck-tech-word": true,
    "no-mix-dearu-desumasu": true
  }
}

You can also set parameters to Options (see below).

Set textlint and .textlintrc paths

Set paths to the Options (see below).

e.g.

Open Action Items window

action items window

Options

Tools > Options > Editor > textlint

Actions

Fix

You have to save your file before you run this action. If there is a fixable rule's error, you can fix it. Right-click an item > Click Fix. To refresh items, your document is saved once.

Fix All

You have to save your file before you run this action. If there are fixable rule's errors, you can fix them. Right-click an item > Click Fix All. This action runs textlint --fixcommand.

Refresh

You can refresh results forcibly by the following action: Right-click your editor > Click textlint Refresh. You can also set the shortcut key(Tools > Options > Keymap).

Icons

Color & Effect

See Tools > Options > Fonts & Colors > Annotations > com-junichi11-netbeans-modules-textlint-*

NOTE