framework/utils/CMarkdownParser.php
public function _doCodeBlocks_callback($matches)
	{
		$codeblock = $this->outdent($matches[1]);
		if(($codeblock = $this->highlightCodeBlock($codeblock)) !== null)
			return "\n\n".$this->hashBlock($codeblock)."\n\n";
		else
			return parent::_doCodeBlocks_callback($matches);
	}
public function _doCodeBlocks_callback($matches)
	{
		$codeblock = $this->outdent($matches[1]);
		if(($codeblock = $this->highlightCodeBlock($codeblock)) !== null)
			return "\n\n".$this->hashBlock($codeblock)."\n\n";
		else
			return parent::_doCodeBlocks_callback($matches);
	}
public function _doCodeBlocks_callback ( $ matches ) { $ codeblock = $ this -> outdent ( $ matches [ 1 ] ) ; if ( ( $ codeblock = $ this -> highlightCodeBlock ( $ codeblock ) ) !== null ) return "\n\n" . $ this -> hashBlock ( $ codeblock ) . "\n\n" ; else return parent :: _doCodeBlocks_callback ( $ matches ) ; }
Callback function when a code block is matched.
@param array $matches matches
@return string the highlighted code block
Callback function when a code block is matched .