Hooch Posted November 11, 2007 Share Posted November 11, 2007 Hi everyone. I tried to google this, but not much success. I was hoping someone could send me in the right direction onhow to display PHP on a webpage. I have done it by using special characters, but it leaves all textone colour. Is there a snippet of code that will highlight the code accordingly? Thank you for any help. Link to comment Share on other sites More sharing options...
jlhaslip Posted November 11, 2007 Share Posted November 11, 2007 http://ca.php.net/manual/en/function.highlight-file.php and http://ca.php.net/manual/en/function.highlight-string.phpCheck that out.Another method is to save the source as a .phps extension and include the file as such. Depends. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.