Re: phps line numbering

From: Date: Mon, 20 Nov 2006 22:05:57 +0000
Subject: Re: phps line numbering
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-26685@lists.php.net to get a copy of this message
> This is not rocket science. > A simple CSS solution... <html> <head> <style> .numberline{ display: inline; float: left; width: 15px; } .code{ display: inline; } </style> </head> <body> <div class="numberline">1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div> <div class="code"> &lt;?php<br /> // here's a really long line that will mess up the line numbers, so what you call "not rocket science" is actually quite difficult, even though you fail to believe this is true.<br /> while(1){<br /> echo "foo";<br /> // note that this is _actually line #5<br /> // oops.. the last line doesn't have a number <br /> ?&gt;<br /> }<br /> </div> </body> </html>

« previous php.internals (#26685) next »