Cloud: Code block background color

Hi! We are using Atlassian Confluence and JIRA Cloud. This is a 2 part question.

1. Is there a way to change/customise the current "Confluence" theme (or any theme for the matter)?

2. When specifying, for example, {code:sql} code block macro, how to change background color of the block?

1 answer

0 votes
Ann Worley Atlassian Team Oct 11, 2017

For question 1: Please see: Restricted functions in Confluence Cloud

As Confluence uses a custom theme, it is not possible to customize the layout.

For 2: You can format the colors and text by changing the theme and syntax highlighting but you cannot change the background to a custom color:

Screen Shot 2017-10-11 at 2.53.24 PM.pngScreen Shot 2017-10-11 at 2.53.00 PM.png

Hi @Ann Worley

Thanks for the response. Where do I navigate to  "Edit 'Code Block' Macro" ?

All I have is the _Configure Code Macro_, which I believe is different from what you had there. This is what I see...


Ann Worley Atlassian Team Oct 16, 2017

I see that on my instance too, it is for setting the global default. On a page where you are using the macro, you may put the page in edit mode, then click the grey border to pull up the Edit/Remove box:

Screen Shot 2017-10-16 at 1.40.42 PM.png

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,789 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot