While editing a page in confluence. I wanted to add some json snippet.
When I click "more content" from top tool bar the "+" button. I search for code macro, I get many language like c++/java/c/python etc, but nothing for JSON and XML.
Am I missing anything here ?
Hi Sandip,
the Code Macro supports adding further languages as SyntaxHighlighter brushes, so you could try to find a brush file and import it into Confluence:
https://www.google.de/search?q=syntaxhighlighter+json+brush
Note that this only works for Confluence Server, if you're using Confluence Cloud, then I would recommend installing the Better Code Macro.
JSON is really just JavaScript (JavaScript Object Notation). Personally, I would use that .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, you should have an option for HTML and XML.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually tried all languages before posting this question. I don't see even with Javascript, presentation is nothing close to what I get in Jira with code inside "{code:json}" tag.
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.