summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TMarkdown.php
diff options
context:
space:
mode:
authorxue <>2007-07-24 02:05:56 +0000
committerxue <>2007-07-24 02:05:56 +0000
commit3d2cc3696a378d79fb4fa36e76ddc2568ad0835d (patch)
tree3a89e439e686c5410add02c5b59886d9e8aefd99 /framework/Web/UI/WebControls/TMarkdown.php
parent38974e8679aac5b63e372f5421f990da6882fde2 (diff)
removed geshi from the other controls.
Diffstat (limited to 'framework/Web/UI/WebControls/TMarkdown.php')
-rw-r--r--framework/Web/UI/WebControls/TMarkdown.php11
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);
}
}