Chris Coin Posted April 6, 2006 Share Posted April 6, 2006 Is ther a way to show my raw code to the public with the "php colors"?? Quote Link to comment Share on other sites More sharing options...
Hooker Posted April 6, 2006 Share Posted April 6, 2006 Generally, PHP files will get interpreted by the Web server and PHP executable, and you will never see the code behind the PHP file. If you make the file extension .PHPS, a properly-configured server will output a color-formated version of the source instead of the HTML that would normally be generated. Quote Link to comment Share on other sites More sharing options...
Chris Coin Posted April 6, 2006 Author Share Posted April 6, 2006 [!--quoteo(post=362125:date=Apr 5 2006, 11:11 PM:name=Hooker)--][div class=\'quotetop\']QUOTE(Hooker @ Apr 5 2006, 11:11 PM) [snapback]362125[/snapback][/div][div class=\'quotemain\'][!--quotec--]Generally, PHP files will get interpreted by the Web server and PHP executable, and you will never see the code behind the PHP file. If you make the file extension .PHPS, a properly-configured server will output a color-formated version of the source instead of the HTML that would normally be generated.[/quote]so ther isnt a certain "tag" i could use. hmmm, i guess the only way is to color the code myself. Quote Link to comment Share on other sites More sharing options...
bowenbowen Posted April 6, 2006 Share Posted April 6, 2006 [!--quoteo(post=362127:date=Apr 6 2006, 04:14 AM:name=Chris Coin)--][div class=\'quotetop\']QUOTE(Chris Coin @ Apr 6 2006, 04:14 AM) [snapback]362127[/snapback][/div][div class=\'quotemain\'][!--quotec--]so ther isnt a certain "tag" i could use. hmmm, i guess the only way is to color the code myself.[/quote]Look into using highlight_string or highlight_file on the php.net website. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.