note 27494 deleted from function.highlight-file by aidan

From: Date: Sun, 26 Sep 2004 13:57:42 +0000
Subject: note 27494 deleted from function.highlight-file by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77384@lists.php.net to get a copy of this message
Note Submitter: rakkis at madqon dot org ---- The line-numbering examples above didn't work so well for me (they always left too much space beetween the lines or made some other obscure cruft on the top/bottom of the output) so here is one I made up: $contents = highlight_file($filename, true); $contents = explode("<br />", $contents); $ln = 1; foreach($contents as $line) { print "<font color=\"#000000\">$ln:</font> $line<br>"; $ln++; }

« previous php.notes (#77384) next »