コード例 #1
0
 public static function PreProcess($text)
 {
     self::$code_blocks = array();
     // Togli i blocchi [code][/code] dal testo
     $text = preg_replace_callback("/\\[code\\](.*?)\\[\\/code\\]\n?/s", 'CodeHighlighter::codeMatch', $text);
     return $text;
 }
コード例 #2
0
ファイル: Text.php プロジェクト: pierotofy/pierotofy.it
 public static function MessageToHtml($text)
 {
     $text = CodeHighlighter::PreProcess($text);
     $text = Smiles::Apply($text);
     $text = Text::BBCodesToHtml($text);
     $text = Text::AutoLink($text);
     $text = Text::EscapeCharsToHtml($text);
     $text = CodeHighlighter::PostProcess($text);
     return $text;
 }
コード例 #3
0
 public function getContent()
 {
     return CodeHighlighter::fixDeprecatedPreTags($this->getRaw('context'));
 }