note 24012 added to function.show-source

From: Date: Sun, 04 Aug 2002 00:33:29 +0000
Subject: note 24012 added to function.show-source
Groups: php.notes 
Request: Send a blank email to php-notes+get-34246@lists.php.net to get a copy of this message
Not to sound picky or anything, but the first example of the line-numbering is great, but this is the one change that (in my opinion) makes it perfect: $source[$i] = "<code>[$i]".str_repeat("<span style=\"color: #ffffff\">0</span>", 4 - strlen ($i))."</code>$source[$i]<br />"; That combines the second comment of not setting the lines crooked and the original idea into one. The zeros used as placeholders are matched to the background-color (white, usually...) so you don't have to stare at them. -- http://www.php.net/manual/en/function.show-source.php http://master.php.net/manage/user-notes.php?action=edit+24012 http://master.php.net/manage/user-notes.php?action=delete+24012 http://master.php.net/manage/user-notes.php?action=reject+24012

« previous php.notes (#34246) next »