Source for file Preformatted.php
Documentation is available at Preformatted.php
* Parses for preformatted text.
* @author Tomaiuolo Michele <tomamic@yahoo.it>
* @version $Id: Preformatted.php 240474 2007-07-30 13:14:41Z mic $
* The regular expression used to parse the source text and find
* matches conforming to this rule. Used by the parse() method.
var $regex = '/\n{{{\n(.*)\n}}}\n/Us';
* Generates a replacement for the matched text. Token options are:
* 'text' => The preformatted text.
* @param array &$matches The array of matches from parse().
* @return string A token to be used as a placeholder
* in the source text for the preformatted text.
// > any line consisting of only indented three closing curly braces
// > will have one space removed from the indentation
// > -- http://www.wikicreole.org/wiki/AddNoWikiEscapeProposal
$token = $this->wiki->addToken (
array ('text' => $matches[1 ])
return "\n\n" . $token . "\n\n";
Documentation generated on Mon, 11 Mar 2019 15:40:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|