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
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{code:|bgColor:780000|Color=fdf0d5}
Text color doesn't change
{code}
{code:|bgColor=#780000|color=#fdf0d5}
Text color doesn't change
{code}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy,
The example you sent didn't work either
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.