note 74056 added to function.highlight-file

From: Date: Thu, 22 Mar 2007 09:07:19 +0000
Subject: note 74056 added to function.highlight-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-124701@lists.php.net to get a copy of this message
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'); ?> ---- Server IP: 216.194.113.175 Probable Submitter: 4.176.255.41 ---- Manual Page -- http://www.php.net/manual/en/function.highlight-file.php Edit -- https://master.php.net/note/edit/74056 Del: integrated -- https://master.php.net/note/delete/74056/integrated Del: useless -- https://master.php.net/note/delete/74056/useless Del: bad code -- https://master.php.net/note/delete/74056/bad+code Del: spam -- https://master.php.net/note/delete/74056/spam Del: non-english -- https://master.php.net/note/delete/74056/non-english Del: in docs -- https://master.php.net/note/delete/74056/in+docs Del: other reasons-- https://master.php.net/note/delete/74056 Reject -- https://master.php.net/note/reject/74056 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124701) next »