forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Continuation of #13, with i think much better approach, since it is written on python, and has few nice features, like it automatically move you to the error location if error is found, or not move your screen at the beginning of the file when updated
Please report any issues that you find
Screenshots.
Steps:
- Install
PythonScriptfrom plugin admin (i have installed on my screenshot)

- Open
Plugins-Open Plugins Folder

- Open
PythonScript-scripts, and unpack this archive here: DDA.zip. Alternatively download JSON_LINT_AND_ASTYLE if you need both linter and astyler

- Open the folder, find the
json_formatter_path, and replace the path it refers to with the path to your linter - in my case it'sC:\Games\cddaDev\json_formatter.exe

- Go to
Plugins-Python Script-Configuration

- The script itself is inside the
DDAfolder - pick it and pressAddon the left, it'll make you able to bind shortcut on this script. Right part will add shortcut on your toolbar

- Restart the notepad++
- Go to
Settings-Shortcut Mapper, go toPlugin commands, and searchJSON_LINT- that would be your script. Bind it to whatever key combination you want - Go to
Settings-Preferences-MISC.,turn onUpdate silentlyand turn offScroll to the last line after update- thit will stop an annoying popup after reload, and hold the camera in the location you currently have
It doesn't behave good if linter point into a wrong place to resolve (which it does sometimes), but it is not something that can be resolved from the python side, and i assume there is a big reason our linter behave like this
Please report if you find something wrong
Procyonae and Termineitor244Procyonae and Termineitor244Procyonae, Milopetilo and Termineitor244
