$text ="
Um script:
echo 'Romano';
?>
Outro script:
phpinfo();
?>
Que tal outro :
session_start();
\$_SESSION['cont']++;
echo \$_SESSION['cont'];
?>
asddasdasd:
echo '$teste';
?>
";
$text = preg_replace("/(.?)(.?<\?.*?\?>.?<\/html>|<\?.*?\?>)(.?)/imse","'\\1
'.highlight_string('\\2', TRUE).'
\\3'",$text);
echo $text;
?>