redpen - Atom package
Validate your document using RedPen.

Installation
I do not support Windows environment. I only support macOS.
$ apm install redpen
Usage
Install RedPen CLI
This package requires RedPen CLI version 1.5 or greater. Install with Homebrew
$ brew install redpen
Or you can install RedPen CLI manually from here
Set Up Paths
This package needs set up some paths from Settings
- Path for RedPen CLI
/usr/local/redpen/bin/redpenis default
- Path for Configuration XML File
- RedPen CLI needs configuration XML file for validation. you can set your configuration XML file. This package uses preinstalled japanese configuration XML file as default if empty.
- Locale for Configuration XML File
- uses auto detect configuration XML file
- JAVA_HOME Path
- RedPen CLI needs JAVA_HOME path.
Run
- open a text file as bellow
- Markdown
- Textile
- Plain
- AsciiDoc (requires RedPen CLI version 1.3)
- LaTeX (requires RedPen CLI version 1.4)
- Select the
RedPen: Validatecommand from Command Pallette. You can also execute it by hittingcmd-alt-oon OS X. - You can see report pane at bottom.
You can use Validate on save option from Settings If you want to run validation each time a file is saved.
Searching Configuration XML
linter-redpen searches configuration XML. searching order is
Path for Configuration XML Fileon settings- in the same directory as the target text file
- in the project root directory
- directly under
REDPEN_HOME - directly under
REDPEN_HOME/conf/ - bundled redpen-conf-ja.xml
Configuration XML File name shold be
redpen-conf.xmlredpen-conf-{LOCALE}.xml- ex:
redpen-conf-ja.xmlORredpen-conf-en.xml
- ex:
You can set your {LOCALE} on settings.