note 74056 deleted from function.highlight-file by bobby
| From: | bobby@php.net | Date: | Thu, 22 Mar 2007 14:41:26 +0000 |
| Subject: | note 74056 deleted from function.highlight-file by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124717@lists.php.net to get a copy of this message | ||
Note Submitter: management at twilightus dot net
----
I'm not sure why the css was not put in when my previous posts were spliced, as it wont work
properly without it.
Well, here's how it should look:
<style type="text/css">
.num {
float: left;
color: gray;
text-align: right;
margin-right: 6pt;
padding-right: 6pt;
border-right: 1px solid gray;}
</style>
<?php
function highlight_num($file)
{
echo '<code class="num">', implode(range(1, count(file($file))),
'<br />'), '</code>';
highlight_file($file);
}
highlight_num('file.php');
?>