3 class Text_Wiki_Render_Latex_Colortext
extends Text_Wiki_Render
{
27 * Renders a token into text matching the requested format.
31 * @param array $options The "options" portion of the token (second
34 * @return string The text rendered from the token options.
38 function token($options)
40 return 'Colortext: NI';
42 $type = $options['type'];
43 $color = $options['color'];
45 if (! in_array($color, $this->colors
)) {
46 $color = '#' . $color;
49 if ($type == 'start') {
50 return "<span style=\"color: $color;\">";
53 if ($options['type'] == 'end') {