Free web development scripts for the webmasterDevelopment Scripts


 
 Site Navigation
 o Development Scripts
 o Text Only Edition
 o PHP.net News
 o Tutorials
 o Register an account
 o New entries this week
 o Affiliates/Links
 o Contact Us
 o About us
 o Advanced Search

 Browse Path

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/devscripts.net/httpdocs/online.php on line 28
 o  users online
 o Most users online: 67
 o Home
  o PHP
   o Miscellaneous
    o Script

 Member Login
User Name
Password

 Standards
Valid XHTML 1.0!
Valid 
CSS!

 Recommended Links
 o PHP Freaks
 o Designer Baby Clothes
 o Advertise Here Make Money
 o Send Invoices for Free
 o Wedding Vendor Directory
 o OxyScripts
 o designplace
 o Free Online Invoices
 o Free Wedding Websites
 o UK Business Franchises

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


Rate This Script

User Contributed Comments

On 06-08-2010 9:20 said:

mfZSM8 tlovuwgmpqvr, [url=http://dwkrzlckfaar.com/]dwkrzlckfaar[/url], [link=http://byngnvqyxmzw.com/]byngnvqyxmzw[/link], http://dyubtvdtrmny.com/


On 11-08-2010 9:50 said:

s3q9oL fhiwwfcuodxu, [url=http://jxbornebkukz.com/]jxbornebkukz[/url], [link=http://vptcyilmcvaj.com/]vptcyilmcvaj[/link], http://lzoemntsdfxb.com/


Registered Members login
© Copyright 2003 - Devscripts.net