How to style a JSON block in Github Wiki? How to style a JSON block in Github Wiki? json json

How to style a JSON block in Github Wiki?


Some color-syntaxing enrichment can be applied with the following blockcode syntax

```jsonHere goes your json object definition```

Note: This won't prettify the json representation. To do so, one can previously rely on an external service such as jsbeautifier.org and paste the prettified result in the wiki.


```javascript{ "some": "json" }```

I tried using json but didn't like the way it looked. javascript looks a bit more pleasing to my eye.


2019 Github Solution

```yaml{   "this-json": "looks awesome..."}

Result

enter image description here

If you want to have keys a different colour to the parameters, set your language as yaml

@Ankanna's answer gave me the idea of going through github's supported language list and yaml was my best find.