-
Notifications
You must be signed in to change notification settings - Fork 0
JSON Style
NebelFox edited this page Feb 19, 2022
·
5 revisions
Consists of key-value pairs, each setting a value to a specific style aspect. Supports inheritance!
{
"option.prefix": "/",
"dialogue.greeting": "Hi there!",
"dialogue.farewell": "See ya!"
}
Dots in aspect names mean informal division into subgroups. They could be gathered in a nested style object, so we can reformat the example above as follows:
{
"option.prefix": "/",
"dialogue": {
"greeting": "Hi there!",
"farewell": "See ya!"
}
}
Note. In this example the "option.prefix" aspect could also be written as
"option": {"prefix": "/"}
, but there is no much sense of doing it for a single aspect from a group
{
"dialogue": {
"greeting": null,
"prompt-indicator": "$ ",
"semantic-separator": "\n",
"farewell": null
},
"input": {
"separator": " ",
"quotes": "'\"`",
"new-line-escape": "\\"
},
"help": {
"lobby": {
"title": null,
"header": null,
"footer": null
},
"namespace-member-format": "> {0} - {1}"
},
"option.prefix": "--"
}
- General:
- File Specification:
- Templates:
- Tips