This page last changed on Oct 07, 2009 by jens@atlassian.com.
You can use the Color Text Macro to change the colour of a block of text. Specify the colours by name or by hexadecimal value. Coloured text appears just like the line below.
Orange coloured text renders like this.
See more information about web colours.
On this page:
Usage with the Macro Browser
To insert the color text macro into a page using the Macro Browser,
- Open your desired Confluence page, then click the 'Edit' button. The 'Edit Page' mode opens.
- Next, click the Macro Browser icon
on the editor toolbar. The Macro Browser will open in the middle of the screen.
- In the Macro Browser, type the name of your desired macro into the search box at the top right of the window. Macros with a matching name will appear in the centre pane. Click on the desired macro to see its options screen. Here, you can set the macro parameters then click 'insert' to put the macro into the page.
Once you've found the color text macro, click ' insert' to add it to your page.
Exact colour results may look different depending on the browser in use.
Usage with the Wiki Markup Editor
{color:mycolour} ... text ... {color}
Parameters
Parameters are settings for Confluence macros that allow the user to control their content or presentation. The table below lists relevant parameters for this macro.
Parameter names are displayed differently in the macro browser interface and in wiki markup. Below, parameter names used in the macro browser are indicated in Bold text, while their equivalents in wiki markup are indicated in (bracketed) text. If the latter is not shown, then in wiki markup, the parameter's name should be omitted and only its value should be added immediately after the colon symbol (:).
Parameter |
Required |
Default |
Description |
Color Name/Hexadecimal Code (color) |
Yes |
None |
Colour of text. You can use names for common colours or use the hexadecimal code for a more specific colour. |
Examples
What you need to type |
What you will get |
{color:red}red{color} |
red |
{color:green}green{color} |
green |
{color:blue}blue{color} |
blue |
{color:orange}orange{color} |
orange |
{color:yellow}yellow{color} |
yellow |
{color:purple}purple{color} |
purple |
{color:purple}violet{color} |
violet |
{color:#FF0000}#FF0000{color} |
#FF0000 |
{color:#00FF00}#00FF00{color} |
#00FF00 |
{color:#0000FF}#0000FF{color} |
#0000FF |
 | Hexadecimal colour codes use a leading hash symbol (#) then two digits for the red, green and blue values respectively. For example, the brightest red colour is shown by the code FF0000, where the first two digits (FF) are the maximum value for red (255 in decimal notation), while the green and blue digit pairs both represent the absolute minimum values at 00. Similarly, the brightest green is shown by the code 00FF00, and the brighest blue is shown by the code 0000FF. Other codes are a combination of the three, leading to the full range of colour. More information. |
|