Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
config:json [2014/11/27 00:54] – Use lexer filetype "Javascritp" to be more straightforward (but it's the same in the end) colombanw | config:json [2015/04/08 23:38] (current) – Add a tip that Geany 1.25 has the filetype builtin colombanw | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== JSON Filetype ====== | ====== JSON Filetype ====== | ||
+ | <WRAP center round tip 60%> | ||
+ | Starting with version 1.25, Geany has a built-in JSON filetype. | ||
+ | </ | ||
+ | |||
JSON files are intended for serializing data objects, but are sometimes used as configuration files. | JSON files are intended for serializing data objects, but are sometimes used as configuration files. | ||
Line 53: | Line 57: | ||
In Geany, go to the Build menu and 'Set Build Commands...' | In Geany, go to the Build menu and 'Set Build Commands...' | ||
+ | |||
+ | === Pretty Printing === | ||
+ | |||
+ | Assuming you have Python installed, pretty printing (aka formatting) of JSON is very easy with Geany: | ||
+ | |||
+ | * Python is required (works with Python 2 and 3) | ||
+ | * Configure Geany: Edit-> | ||
+ | * In the dialog add a new command and simply use: //python -mjson.tool// | ||
+ | |||
+ | To use this, select some string in Geany and use Edit-> | ||
+ | Alternatively, | ||
+ | For details, read the [[http:// | ||