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...
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
https://marketplace.atlassian.com/apps/1214912/better-code-macro-for-confluence?tab=overview&hosting=cloud
Hi @Michal LandsmanWelcome 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).
/Code block
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.
I don't want to use 3rd-party apps. This is core functionality.
with previous comment, currently the list if fixed, we cannot alter the language list yet, probably in future there could be update on this.
It looks like you're new here. Sign in or register to get started.