Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Any free option to highlight JSON in Confluence?

Is anyone aware about an easy way to highlight JSON in Confluence? And it should be for free, if possible.

1 answer

1 accepted

2 votes
Answer accepted

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?

Like yogesh_devi likes this

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.

Like # people like this

Thanks a lot for your help, Davin. It works!

Glad that helped.

May be it was in past - but now I don't see JSON in list :

Screenshot 2020-09-04 at 12.49.09.png

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.

Like yogesh_devi likes this

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...

Like # people like this

I also wonder why they've never supported JSON... it's been around for a decade.

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 ?  

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

382 views 2 11
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you