note 74018 added to function.highlight-file

From: Date: Wed, 21 Mar 2007 02:18:04 +0000
Subject: note 74018 added to function.highlight-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-124651@lists.php.net to get a copy of this message
sorry, in my previous post, you can shorten the function to: <?php function highlight_num($file) { echo '<code class="num">', implode(range(1, count(file($file))), '<br />'), '</code>'; highlight_file($file); } ?> along with the appropriate css Thanks for the implode() part from Arevos at programmingforums.org ---- Server IP: 64.71.164.2 Probable Submitter: 4.176.249.98 ---- Manual Page -- http://www.php.net/manual/en/function.highlight-file.php Edit -- https://master.php.net/note/edit/74018 Del: integrated -- https://master.php.net/note/delete/74018/integrated Del: useless -- https://master.php.net/note/delete/74018/useless Del: bad code -- https://master.php.net/note/delete/74018/bad+code Del: spam -- https://master.php.net/note/delete/74018/spam Del: non-english -- https://master.php.net/note/delete/74018/non-english Del: in docs -- https://master.php.net/note/delete/74018/in+docs Del: other reasons-- https://master.php.net/note/delete/74018 Reject -- https://master.php.net/note/reject/74018 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124651) next »