Source for file Colortext.php
Documentation is available at Colortext.php
// $Id: Colortext.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $
* This class implements a Text_Wiki_Parse to find source text marked for
* @author Paul M. Jones <pmjones@ciaweb.net>
* The regular expression used to parse the source text and find
* matches conforming to this rule. Used by the parse() method.
var $regex = "/\#\#(.+?)\|(.+?)\#\#/";
* Generates a replacement for the matched text. Token options are:
* 'type' => ['start'|'end'] The starting or ending point of the
* emphasized text. The text itself is left in the source.
* 'color' => the color indicator
* @param array &$matches The array of matches from parse().
* @return string A pair of delimited tokens to be used as a
* placeholder in the source text surrounding the text to be
$start = $this->wiki->addToken (
$end = $this->wiki->addToken (
return $start . $matches[2 ] . $end;
Documentation generated on Mon, 11 Mar 2019 13:56:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|