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 Sign up to answer
Community showcase
Published Monday in Jira Software

Implementing Jira in Small Business

Introduction This article will give insight on how a small software development department implemented Atlassian products to enhance and streamline the business process. The privately held company h...

315 views 2 8
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