I am currently creating a document where I want to include code blocks that contain JSON, a minimal example would be the following:
{
"foo": "bar"
}
In the example above you can observe that the key and value strings are displayed in different colors here on Discord. In the document rendered by Typst, however, the same color is used for both key and value strings, see the attached screenshot.
I know that it is possible to change the formatting for raw elements and I also found some files created for Sublime Text (which is the input format accepted by the raw element's syntaxes parameter) that are supposed to change the syntax highlighting – but I couldn't get it to work yet.
Does someone maybe have a simple example for how this could be done? And would it maybe make sense to change the default JSON highlighting in general to have a distinction between keys and values? Thanks!