The {highlight} macro allows you to change background colour of a section of content...
There are times when you want to highlight a section of content (such as a word within a paragrpah) to make it stand out more on your page and that's exactly what this macro does.
You can specify any backgorund colour using either colour names or their hexadecimal colour codes.
Add the macro to your page as follows:
{highlight:myColor}your content{highlight}
Parameters
Parameter
Required
Default
Notes
default
yellow
The "myColor" default parameter defines the background colour for the content contained within the macro and can be either a common colour name (supported by most browsers) or a hexadecimal colour code (supported by all browsers).
This plug-in is available without cost for both commercial and non-commercial purposes. However, if you have found it to be useful, particularly within a commercial environment, please consider making a donation to the author. This will encourage continued development of this and other plug-ins, as well as speeding up the response for your latest maintenance request.
If you wish to donate, it can be done easily with a credit card or bank transfer using PayPal. No account sign-up is required for credit or debit card payments.
The {highlight macro} is released under the BSD License.
This macro has been tested by Adaptavist with Confluence 1.4.1, 1.4.3, 1.4.4, 2.0, 2.1 and 2.1.2.
It is usually pre-installed with Builder accounts. To install it on your own Confluence installation, please see Content Formatting Macros
Adaptavist maintain a JIRA Project for tracking bug reports and feature requests for this macro. The currently reported items are shown below:
jiraissues: Could not download[ http://jira.adaptavist.com/secure/IssueNavigator.jspa?view=rss&pid=10080&component=10135&statusIds=1&statusIds=3&statusIds=4&statusIds=5&sorter/field=updated&sorter/order=DESC&tempMax=25&reset=true&decorator=none] : caused by : Circular redirect to 'http://jira.adaptavist.com:80/secure/IssueNavigator.jspa'
Alternate background colours can be used to highlight important information on a page by drawing the visitors attention to it due to the unusual colour.
When changing background colour, please try and keep a contrast between the text and the background so that it is still clearly readable. For example, in our example above, the slate blue background made the black text barely readable.
Frequently Asked Questions
Q
I'm annotating revisions to text - is there a quicker way to mark inserted and deleted text?
How do I change the default background colour of my page, etc?
A
If you are using a standard theme, there are some limited options to change colours. If you are using the Builder theme, you have complete control over all colours using [USERGUIDE:Custom CSS Styles].
Q
Can I put a graphic in the background?
A
Yes. The span macro and style macro allow you to apply far more formatting to your content.