Topic: PHP Tag
I'd like to propose integration of a PHP tag. This would allow devs like me to display code in a highlighted and more readable format. For an example of what I mean, visit this page. All the PHP in that article lies between php tags (using a heavily modified parsing engine). As I am not yet familiar with the PunBB engine, I cannot create this functional code right away
Also, for XHTML compliance, the following function can be used on highlight_string() output:
function xhtml_highlight($str) {
$str = highlight_string($str, true);
$str = str_replace(array('<font ', '</font>'), array('<span ', '</span>'), $str);
return preg_replace('#color="(.*?)"#', 'style="color: \\1"', $str);
}