Show
Ignore:
Timestamp:
07/23/2007 09:05:56 PM (18 months ago)
Author:
xue
Message:

removed geshi from the other controls.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/UI/WebControls/TMarkdown.php

    r1398 r2065  
    6868        protected function highlightCode($matches) 
    6969        { 
    70                 $geshi=new GeSHi(html_entity_decode($matches[2],ENT_QUOTES,'UTF-8'), $matches[1]); 
    71                 if($this->getShowLineNumbers()) 
    72                         $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); 
    73                 $geshi->enable_classes(); 
    74                 if($this->getEnableCopyCode()) 
    75                         $geshi->set_header_content($this->getHeaderTemplate()); 
    76  
    77                 return $geshi->parse_code(); 
     70                $text = html_entity_decode($matches[2],ENT_QUOTES,'UTF-8'); 
     71                $this->setLanguage($matches[1]); 
     72                return parent::processText($text); 
    7873        } 
    7974}