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 vote
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...

Screenshot_51.png

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 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
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

565 views 6 12
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