note 25925 deleted from function.show-source by didou

From: Date: Sun, 27 Jul 2003 17:19:20 +0000
Subject: note 25925 deleted from function.show-source by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52774@lists.php.net to get a copy of this message
Note Submitter: pan@simnet.is ---- <? function highlight($sFile){ ob_start(); show_source($sFile); $aContents = ob_get_contents(); ob_end_clean(); $aContents = explode('<br />', $aContents); $iLen = strlen(count($aContents)); for($i = 0; $i < count($aContents); $i++){ $sGap = ($iLen - strlen($i)); $aContents[$i] = '<span style="color:#999999">'.str_repeat(' ', $sGap).($i+1).'&nbsp;</span>'.$aContents[$i].'<br>'; } $aContents = implode ( '', $aContents ); echo $aContents; } ?>

« previous php.notes (#52774) next »