I get linenumbers this way... cause I don't like tables :p
<?php
function highlight_linenumbers ($page)
{
$code = highlight_file($page, true) ,36,-15);
echo '<ol style="font-family:monospace; color:', ini_get('highlight.{default}') , ';">';
$arr = explode('<br />', $code);
foreach( $arr as $line )
{
$line = substr($line, 0, -1);
if( preg_match('`^( )*$`',$line) ) $line = ' ';
if( !empty($last_colour) ) $s = '<span style="color:'.$last_colour .'">'. $s;
if( substr_count($line, '<span') - substr_count($line, '</span') > 0 )
{
$line .= '</span>';
$last_colour = explode('<span ',$line);
$last_colour = $last_colour[count($last_colour)-1];
$last_colour = substr($last_colour,strpos($last_colour,'#'),7);
else $last_colour = NULL;
echo '<li>',$line,"</li>\r";
}
echo '</ol>';
}
?>