When I add a Code Block Macro and set the language to "Diff", I expect the syntax highlighting to make lines that begin with '-' red, and lines that begin with '+' green. Instead, lines that begin with '-' are green and lines that begin with '+' are dark blue.
Example (I tried a few variants just to see if it would make a difference):
Is there a way to fix this (or a workaround) to get the correct formatting, which should be:
Hi @Kit.Paulson welcome to the community! It's not clear from your message if you're using Confluence Server or Confluence Cloud. If you're using Confluence Cloud, it appears that Atlassian has reworked their page editor to now have a Code Snippet Macro. My cloud instance has the Code Snippet, and I'm unable to recreate your issue on my site. I'm wondering if you're using the older editor and it's causing the problem.
Hope that helps.
Thanks for your feedback! It looks like I was using the old editor; when I preview my page in the new editor the colouring is correct. I'll switch to the new editor going forward.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!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.