]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/color.mdwn
filecheck: Fall back to testing for binary or plain text files if no mime type is...
[ikiwiki.git] / doc / plugins / color.mdwn
1 [[!template id=plugin name=color core=0 author="[[ptecza]]"]]
2 [[!tag type/chrome]]
3
4 This plugin can be used to color a piece of text on a page.
5 It can be used to set the foreground and/or background color of the text.
6
7 You can use a color name (e.g. `white`) or HTML code (e.g. `#ffffff`)
8 to define colors. 
9
10 ## examples
11
12 Here the foreground color is defined as a word, while the background color
13 is defined as a HTML color code:
14
15         \[[!color foreground=white background=#ff0000 text="White text on red background"]]
16
17 The background color is missing, so the text is displayed on default
18 background:
19
20         \[[!color foreground=white text="White text on default color background"]]
21
22 The foreground is missing, so the text has the default foreground color:
23
24         \[[!color background=#ff0000 text="Default color text on red background"]]