Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the font color in a code block?

luxanx
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2025

Hi everyone,

 

How can I change the font color of a code block?

I tried following but I can only change the background color, font color remains same.

{code:|bgColor:780000|Color=fdf0d5}
Text color doesn't change
{code}

 

 

Thank you

 

2 answers

0 votes
Kris Klima _K15t_
Community Champion
November 5, 2025

Hi @luxanx 

Is this coloring related to a specific code's syntax? 

If so, you should be able to simply the select syntax type on individual code blocks.

0 votes
Trudy Claspill
Community Champion
November 5, 2025

Hello @luxanx 

Welcome to the Atlassian community.

Can you clarify which product this concerns?

You posted in the Confluence Questions community, but also I see Jira in your post tags.

Additionally are you using the Cloud product (software-as-a-service, hosted by Atlassian) or the Data Center product (hosted and maintained by your company)?

Can you provide a screen image?

luxanx
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2025

Hi Trudi,

 

I'm using Jira-SD as IaaS, and I'm using it in my work. 

 

I cannot share more details for security.

 

 

Thank you

 

luxanx
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2025

2025-11-05 15_41_27-S&RA, NMS Operational Dashboard - Mission Control 1 — Mozilla Firefox.png

Trudy Claspill
Community Champion
November 5, 2025

Hello @luxanx 

The image you have shared indicates you are using Jira Service Management server or Data Center (self-hosted) rather than Jira/JSM Cloud (software-as-a-service).

Have you tried this?

{code:|bgColor=#780000|color=#fdf0d5}
Text color doesn't change
{code}

I don't have access to a Data Center environment to test that. I got this syntax from Google AI.

luxanx
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2025

{code:|bgColor:780000|Color=fdf0d5}
Text color doesn't change
{code}

 

{code:|bgColor=#780000|color=#fdf0d5}
Text color doesn't change
{code}

luxanx
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2025

Hi Trudy, 

 

The example you sent didn't work either

 

 

Regards.

Trudy Claspill
Community Champion
November 5, 2025

Thank you for trying that, @luxanx 

In what type of field are you using the code?

What is the Renderer applied to that field? You may have to ask you Jira Administrator what Renderer is used for the field.

What version of the product are you using? You can get that by clicking on the question mark button near your avatar in the upper right corner, and then select About Jira.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events