Please add support for this kind of code. I think that confuence users use this in doc a lot, for general examples.
Or provide us a way how to add custom types like this...
Hi @Michal Landsman
Welcome to the Atlassian Community!
Please try below options.
Confluence supports the /Code block
macro with syntax highlighting for many languages (e.g., bash, JSON, JavaScript).
But it doesn’t support advanced features like:
Auto-complete
Tabbed blocks (Request/Response)
Curl-to-code conversion
If you're comfortable with Atlassian Forge
Build a custom macro that accepts
Render it using Forge UI + styles.
I am talking about code block which do not have support for this language or syntax.
Basic `bash` syntax would be enough.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Michal Landsman ,
Welcome to the Community !
Based on https://support.atlassian.com/confluence-cloud/docs/insert-the-code-block-macro/ - With cloud instance, that's a native feature and one cannot add new language !!
You could try installing this add-on and see if highlighting is supported
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.
with previous comment, currently the list if fixed, we cannot alter the language list yet, probably in future there could be update on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.