]> sipb.mit.edu Git - ikiwiki.git/blob - underlays/basewiki/directive/color.mdwn
move example back to plugin
[ikiwiki.git] / underlays / basewiki / directive / color.mdwn
1 The `color` directive is supplied by the [[!iki plugins/color]] plugin.
2
3 This directive can be used to color a piece of text on a page.
4 It can be used to set the foreground and/or background color of the text.
5
6 You can use a color name (e.g. `white`) or HTML code (e.g. `#ffffff`)
7 to define colors. 
8
9 ## examples
10
11 Here the foreground color is defined as a word, while the background color
12 is defined as a HTML color code:
13
14         \[[!color foreground=white background=#ff0000 text="White text on red background"]]
15
16 The background color is missing, so the text is displayed on default
17 background:
18
19         \[[!color foreground=white text="White text on default color background"]]
20
21 The foreground is missing, so the text has the default foreground color:
22
23         \[[!color background=#ff0000 text="Default color text on red background"]]