Index: trunk/globals.php =================================================================== diff -u -r521 -r523 --- trunk/globals.php (.../globals.php) (revision 521) +++ trunk/globals.php (.../globals.php) (revision 523) @@ -629,7 +629,7 @@ $text = ReplaceURL($text); // BBCode: [code]xxx[/code] - $text = preg_replace('/\[code\]([^\]]*)\[\/code\]/Ue', 'highlight_string( stripslashes(_unhtmlentities("$1") ), true)', $text); + $text = preg_replace('/\[code.*\]([^\]]*)\[\/code.*\]/Ue', 'highlight_string( stripslashes(_unhtmlentities("$1") ), true)', $text); return $text; }