diff options
Diffstat (limited to 'framework/Web/UI/WebControls/TMarkdown.php')
-rw-r--r-- | framework/Web/UI/WebControls/TMarkdown.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/framework/Web/UI/WebControls/TMarkdown.php b/framework/Web/UI/WebControls/TMarkdown.php index 04e030cb..91464e4f 100644 --- a/framework/Web/UI/WebControls/TMarkdown.php +++ b/framework/Web/UI/WebControls/TMarkdown.php @@ -67,14 +67,9 @@ class TMarkdown extends TTextHighlighter */
protected function highlightCode($matches)
{
- $geshi=new GeSHi(html_entity_decode($matches[2],ENT_QUOTES,'UTF-8'), $matches[1]);
- if($this->getShowLineNumbers())
- $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
- $geshi->enable_classes();
- if($this->getEnableCopyCode())
- $geshi->set_header_content($this->getHeaderTemplate());
-
- return $geshi->parse_code();
+ $text = html_entity_decode($matches[2],ENT_QUOTES,'UTF-8');
+ $this->setLanguage($matches[1]);
+ return parent::processText($text);
}
}
|