Re: phps line numbering
| From: | Kevin Waterson | Date: | Mon, 20 Nov 2006 21:29:41 +0000 |
| Subject: | Re: phps line numbering | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26684@lists.php.net to get a copy of this message | ||
This one time, at band camp, Sean Coates <sean@caedmon.net> wrote:
> We determined that there's no reliable way to number lines and maintain
> copy-and-paste.
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
/></div>
<div class="code">
<?php<br />
while(1){<br />
echo "foo";<br />
?><br />
}<br />
</div>
</body>
</html>
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."