[[PageOutline(2-5,Contents,pullout)]] = Color foreground and background of text == Description This 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 achieved out-of-the-box in Trac (>=0.11.8) by span macro, see [http://trac.edgewall.org/wiki/WikiHtml#HowtoUseDivSpan WikiHtml] for details. Example usage of span macro: {{{ [[span(''WORLD'', style=color: green)]] }}} == Bugs/Feature Requests Existing bugs and feature requests for ColorMacro are [report:9?COMPONENT=ColorMacro here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=ColorMacro&owner=diroussel new ticket]. [[TicketQuery(component=ColorMacro&group=type,format=progress)]] == Download Download the zipped source from [download:colormacro here]. == Source You can check out ColorMacro from [http://trac-hacks.org/svn/colormacro here] using Subversion, or [source:colormacro browse the source] with Trac. == Example Example: {{{ [[Color(red, This has a red background)]] [[Color(lightblue, green, This has a lightblue background and green text)]] [[Color(none, #0000bb, I'm using a hex color)]] }}} which would then render as: {{{#!html <span style="background-color:red;padding: 0.1ex 0.4em;">This has a red background</span> }}} [[BR]] {{{#!html <span style="background-color:lightblue;color:green;padding: 0.1ex 0.4em;">This has a lightblue background and green text</span> }}} [[BR]] {{{#!html <span style="color:#0000bb;padding: 0.1ex 0.4em;">I'm using a hex color</span> }}} == Recent Changes [[ChangeLog(/colormacro,3)]] == Author/Contributors '''Author:''' [wiki:diroussel] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''
E-mail address and name can be saved in the Preferences.