When I use the Code Block Macro in Confluence Cloud (/code) I have the option to pick different languages.
However, it doesn't matter what language I choose, I am not getting any kind of highlighting for the code. They all look the same, white text on a dark background.
Hi @Rickey Whitworth and welcome to the Community.
The code highlights will be visible once you save / publish the page. It's not displayed in the edit mode.
See the Python sample behavior
Hi @Rickey Whitworth ,
Just adding to @Kristian Klima 's answer — the native Code Block Macro does show syntax highlighting after publishing, but it has some limitations:
If you need more control, there's a newer app called Modern Code Blocks for Confluence that addresses these gaps:
Check it out: https://marketplace.atlassian.com/apps/3525717923/modern-code-blocks-for-confluence
It's especially useful for engineering teams sharing code snippets regularly.
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.