Tools for Users
If the application does not support Hjson, the best way would be to ask the developer to include it.
In the meantime, if the application allows JSON configs you can use one of the tools below.
Installation
You have three choices:
- Download a binary (easy)
- Use it Online (quick)
- Build from source (harder)
Usage
To use Hjson with an application that does not support Hjson (yet) but has JSON configs:
Convert your existing config to Hjson (do this only once)
run:
hjson CONFIG.json > CONFIG.hjson
(replace CONFIG with the name of the config file)
Edit your config
Whenever you make changes in CONFIG.hjson you need to update CONFIG.json.
run:
hjson -j CONFIG.hjson > CONFIG.json
Verify Syntax (lint)
You can always check the syntax of an Hjson file by simply running hjson FILE
or by pasting it into the online tool. It will show you the exact location if it contains any errors.
Editor Support
These editors support syntax highlighting for Hjson:
Name | Source | Package |
---|---|---|
Ace | ace | use mode-hjson |
Atom | atom-hjson | package |
Emacs | emacs-hjson | read me |
IntelliJ | textmate-hjson | read me |
Notepad++ | npp-hjson | read me |
Sublime Text | sublime-hjson | packagecontrol.io |
TextMate compatible | textmate-hjson | read me |
Vim | vim-hjson | read me |
Visual Studio | vs-hjson | microsoft.com |
Visual Studio Code | vscode-hjson | visualstudio.com |