Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can you disable coloring in the code block macro?

Michael Faux
Contributor
November 10, 2017

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

1 vote
Michael Faux
Contributor
November 13, 2017 edited

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 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.  

Michael Faux
Contributor
November 10, 2017

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Confluence Events