(.*?)\(\s*)#sie', '$this->PerformHighlightCodeBlock(\'\\3\', \'\\2\', $content, \'\', \'\\1\', \'\\4\');', $content);
return $content;
}
function AfterHighlightCodeBlock($content) {
$content = str_replace(array_keys($this->blocks), array_values($this->blocks), $content);
return $content;
}
function BeforeProtectComment($content) {
$content = preg_replace('#(\s*)(\[cc[^\s\]_]*(?:_[^\s\]]*)?[^\]]*\].*?\[/cc\1\])(\s*)#sie', '$this->PerformProtectComment(\'\\2\', $content, \'\\1\', \'\\3\');', $content);
$content = preg_replace('#(\s*)(\| ') + 1; $i < $count; $i++) { $table .= ($i + $options['first_line']) . ' | ' . $result . ' |
';
$result .= '';
$result .= '';
} else {
$theme = empty($options['theme']) ? 'default' : $options['theme'];
$style = 'style="';
if ($options['nowrap']) $style .= 'overflow:auto;white-space:nowrap;';
if (is_feed()) $style .= 'border:1px solid #9F9F9F;';
$style .= $this->GetDimensionRule('width', is_feed() ? $options['rss_width'] : $options['width']);
if($num_lines > $options['lines'] && $options['lines'] > 0) {
$style .= $this->GetDimensionRule('height', $options['height']);
}
$style .= '"';
$css_class = 'codecolorer-container ' . $options['lang'] . ' ' . $theme . $custom_css_class;
if ($options['noborder']) $css_class .= ' codecolorer-noborder';
$result = '' . $title . " " . $message . $disable . "