I've got a .php file with javascript, php, and html. I want to include a button/link to view the source of the entire file "pretty printed", but I can't seem to get anything to work. What is the best way to do this?
feedback
|
If you simply want to display the code of the file, you can call this function:
So, if you want to display myPhpFile.php, just do
As far as making it prettified, follow the link that was commented. | |||||
feedback
|
Some combinations of Apache/PHP are configured so that files ending in Example: | ||||
feedback
|