You can use to get the contents of the file. file_get_contents
And you can use to get the path to the current file - if you want the current file of course __FILE__
So, to display the contents of the current file:
echo file_get_contents(__FILE__);
Note 1: you may need some shielding:
echo '<pre>' . htmlspecialchars(file_get_contents(__FILE__)) . '</pre>';
2: , - , :
echo '<pre>' . htmlspecialchars(file_get_contents('/path/to/my/file.php')) . '</pre>';
, - - highlight_file; - GeSHi, .