The prettiest is to use [man]highlight_string[/man] or [man]highlight_file[/man]. Or you could just use [man]htmlspecialchars[/man] to turn "<?php" into &lt;?php" etc.. Either way, as long as you just treat it like a string of text it will behave like a string of text.