-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
2
-
Please, can we have the ability to change the font color of the text in the body of the "code" or "panel" macro in the opening code as follows:
{code:title=Black background, green text|titleBGColor=#000000|titleColor=#00CC00|bgColor=#000000|color=#00CC00}
Cannot read this as the font is only a slightly lighter black too! The text should be green.
{code}
I found by experimentation that "titleColor" works although it is not listed in optional parameters on page https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=advanced
A work around has been found for the "panel" macro as follows:
{panel:title=PANEL: Black background, green text|titleBGColor=#000000|titleColor=#00CC00|bgColor=#000000}
{color:#00CC00}This text is green mono-spaced. But! Defining the font color for all text should be in the opening "panel" code. But this will not color the code if (else, do, break, switch) keywords are used.
Normal text outside the coded block.{color}
And uncolored text outside the "color" code which is not readable.
{panel}
{code:title=Black background, green text|titleBGColor=#000000|titleColor=#00CC00|bgColor=#000000|color=#00CC00}
{color:#00CC00}Green text or "color" macro displayed too. And "quotes make" the text green! "This was not
expected! But makes sense." BTW, the line break breaks the colouring!
What happens if you do not want the quoted text to be "green"?{color}
keywords: if, else, do, break, switch
{code}
{code:title=Dark green background, green text|titleBGColor=#002200|titleColor=#00CC00|bgColor=#003300|color=#00CC00}
{color:#00CC00}Green text or "color" macro displayed too. And "quotes make" the text green! "This was not
expected! But makes sense." BTW, the line break breaks the colouring!
What happens if you do not want the quoted text to be "green"?{color}
keywords: if, else, do, break, switch
{code}
The suggestion is for "JIRA Service Desk Cloud" but probably could be applied elsewhere. See discussion at https://community.atlassian.com/t5/JIRA-Service-Desk-questions/How-do-I-change-the-text-color-for-a-JIRA-panel-or-code-macro/qaq-p/616843#M5851
Note that text color green is an example only, and it could any color a user wished to define. Readability would be left to the user doing the formatting.
- is duplicated by
-
JRACLOUD-87506 Ability to change color of text inside syntax highlighted/code formatted block
- Closed