Source for file Tt.php
Documentation is available at Tt.php
* Find source text marked for teletype (monospace).
* Defined by text surrounded by two curly braces. On parsing, the text
* itself is left in place, but the starting and ending instances of
* curly braces are replaced with tokens.
* 'type' => ['start'|'end'] The starting or ending point of the
* teletype text. The text itself is left in the source.
* $Id: Tt.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $
* @author Paul M. Jones <pmjones@ciaweb.net>
* The regular expression used to parse the source text.
var $regex = "/{{({*?.*}*?)}}/U";
* Generates a replacement for the matched text.
* @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 teletype text.
$start = $this->wiki->addToken (
$this->rule, array ('type' => 'start')
$end = $this->wiki->addToken (
$this->rule, array ('type' => 'end')
return $start . $matches[1 ] . $end;
Documentation generated on Mon, 11 Mar 2019 14:22:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|