Пример #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;
 }