Version 25 (modified by Ryan J Ollos, 7 years ago) (diff)

Move alternate down the page a bit.

Color foreground and background of text


ColorMacro is a very 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.


[[Color( background-color, color , text )]] 


[[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 the zipped source from [download:colormacro here].


You can check out ColorMacro from here using Subversion, or browse the source with Trac.



  [[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)]]


This has a red background

This has a blue background and green text

I'm using a hex color

Recent Changes

15929 by rjollos on 2016-10-17 22:27:00
1.0: Change format of version metadata
15922 by rjollos on 2016-10-17 22:04:00
1.0: Format metadata
15901 by rjollos on 2016-09-20 21:10:25
1.0: Add plugin metadata


Author: diroussel
Maintainer: diroussel