Tek yolu bu fonksiyonun kullanilmamasi. Dolayisiyla php kodunun renklendirilmemesi anlamina geliyor. Istedigin buysa:
includes/class_bbcode.php icerisinde (1474. satirdan itibaren)
Kod: Kodu kopyalamak için üzerine çift tıklayın!
// do we have an opening <? tag?
if (!preg_match('#<\?#si', $code))
{
// if not, replace leading newlines and stuff in a <?php tag and a closing tag at the end
$code = "<?php BEGIN__VBULLETIN__CODE__SNIPPET $code \r\nEND__VBULLETIN__CODE__SNIPPET ?>";
$addedtags = true;
}
else
{
$addedtags = false;
}
// highlight the string
$oldlevel = error_reporting(0);
$code = highlight_string($code, true);
error_reporting($oldlevel);
// if we added tags above, now get rid of them from the resulting string
if ($addedtags)
{
$search = array(
'#<\?php( | )BEGIN__VBULLETIN__CODE__SNIPPET( | )#siU',
'#(<(span|font)[^>]*>)<\?(</\\2>(<\\2[^>]*>))php( | )BEGIN__VBULLETIN__CODE__SNIPPET( | )#siU',
'#END__VBULLETIN__CODE__SNIPPET( | )\?(>|>)#siU'
);
$replace = array(
'',
'\\4',
''
);
$code = preg_replace($search, $replace, $code);
}
satirlarini comment icine al