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
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

205 views 2 10
Read article

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