Version 26 (modified by 9 years ago) (diff) | ,
---|
Contents
Color foreground and background of text
Description
ColorMacro is a simple macro that allows you to change the background color of a piece of text. Useful for highlighting, or RAG (red, amber, green) status reports.
Usage:
[[Color( background-color, color , text )]]
or
[[Color( color , text )]]
Where color is a color keyword or hex color number recognised by your browser and text is your text. Commas are allowed, but '(' and ')' cause a problem.
Note: This could also be archieved out-of-the-box in Trac (>=0.11.8 or so) by span macro (see WikiHtml for Details). Example usage of span macro:
[[span(''WORLD'', style=color: green)]]
Bugs/Feature Requests
Existing bugs and feature requests for ColorMacro are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from [download:colormacro here].
Source
You can check out ColorMacro from here using Subversion, or browse the source with Trac.
Example
Example:
[[Color(red,This has a red background)]] [[Color(blue, green,This has a blue background and green text)]] [[Color(none,#bb0000,I'm using a hex color)]]
which would then render as:
This has a red background
Recent Changes
Author/Contributors
Author: diroussel
Maintainer: David Roussel
Contributors: