Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to make the new Code Snippet macro support bash syntax

Stefan Locher
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2025

Hello 

I only use bash and syntax highlighting vanished from our code macro, how can we get it back? 

thanks and regards

Stefan

1 answer

0 votes
Tomislav Tobijas
Community Champion
October 18, 2025

Hi @Stefan Locher ,

Well, since Bash is a supported language for syntax highlighting, I have no reason to believe it doesn't work.

Nevertheless, if syntax highlighting has vanished, this could be due to a configuration issue, a recent change, or a bug.

I'd suggest trying out the following:

  • Make sure you have selected "Bash" as the language in the Code Block macro settings.
  • Try with a smaller code snippet to see if highlighting returns.
  • If the issue persists for all Bash code blocks, regardless of size, check if any recent changes or upgrades were made to your Confluence instance.

There's one open bug that might be related to this, although it's for cloud and not for DC: CONFCLOUD-81755: Confluence - Code Block Macro in Page Rendering | Large code blocks (e.g., 1.5MB) cause slow page rendering due to syntax highlighting 
I don't have a sandbox DC environment at the moment to potentially test this out..

I'd also recommend checking if you potentially upgraded Confluence in the last couple of days (since the issue started occurring) to check if that caused the problem you're experiencing. 👀

Cheers,
Tobi

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events