Is anyone aware about an easy way to highlight JSON in Confluence? And it should be for free, if possible.
You should have a syntax highlight option in the code macro for JSON.
Hi Davin and thanks for your answer.
Do you mean something as discussed here: like JSON syntax highlighting in confluence code block, specially Json Brush for SyntaxHighlighter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Silly me. You know what, I forgot that I did add JSON as a custom syntax highlighter. It doesn't come by default. And I actually did get the brush from the second link you provided. Once you have that you can upload it into Confluence in Confluence Admin -> Configure Code Macro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot for your help, Davin. It works!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad that helped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May be it was in past - but now I don't see JSON in list :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to add the JSON highlighter brush. it is not there by default. See the comment by @Jose M_ on Sep 19th, 2019 above and my reply below it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You really have to wonder... why the hell does Jira support formatting for Erlang, Delphi and other obscure things but not plain old JSON?? What's wrong with you Jira, get your act together, it's 2021 for heavens sake...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I also wonder why they've never supported JSON... it's been around for a decade.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks all. Adding the Json Brush for SyntaxHighlighter from DONOVAN BROWN tech blog did the trick for me and now the code block macro allows json syntax highlighting . I was oblivious till day that confluence allowed adding syntax highlighting so easily provided you can get a "brush".
I have an additional question though - Where can I see notes/guidelines on creating my own "brush" for syntax highlighting or modifying an existing one - if I needed to do so ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.