Can you disable coloring in the code block macro?

I'm using a code block macro. Even though the macro does not have any syntax highlighting enabled, the content renders with colors. It appears to interpret two slashes '//' as comments.

For instance, part of the URL in the below code macro is colored green:

 

color.png

 

 

2 answers

One solution is to select 'Plain Text' in the syntax highlighting field. Answer provided by the user zeddee in writethedocs.slack.com.

0 vote
Susan Ostreicher Community Champion Nov 10, 2017

Michael, 

I don't think it's possible to completely disable the colors.  If you want something that looks like the code block macro, but you don't want automatic coloring, you could use a panel macro instead and change the font to "Preformatted".  That said, I'm not a programmer and there might be other features built into the code block macro that you do want.  

Thank you for the suggestion, @Susan Ostreicher :thumb:

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

708 views 21 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you