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 votes
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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,561 views 26 14
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