this snippet highlights a php file and numberes the lines.
show php code in a nice layout.

download options for html and code / simple php code highlight

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.