Highlight PHP Code (Rated 4.71)Description:
It will highlight your PHP code, and remove any superfluous extra spaces that highlight_string adds in. Code starts here
<?PHP
function showsource ($code)
{
ob_start();
highlight_string($code);
$colorsource = ob_get_contents();
ob_end_clean();
$colorsource = str_replace (" ", " ", $colorsource);
return $colorsource;
}
?>
Last Edited: 12-02-2003
Submitted by Devscripts on 12-02-2003 22:29 |