Am getting the source-code of a page but how to get it through the syntax highlighter and then spit it out?
<?php
echo htmlentities( file_get_contents( 'http://www.example.com/post/' ) );
highlight_string('http://www.example.com/post/');
?>
this function does exactly what you want: highlight_file($filename)
php.net/highlight_file