View Single Post
Old 07-22-2009, 12:50 AM  
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
echo "<" . "?php\n";
?>
<your code here... don't include the leading and trailing ?php tags>
<?php
echo "?" . ">\n"

Be aware that if your displayed code has any HTML in it the browser will probably eat it up.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote