note 74249 added to function.highlight-string

From: Date: Sun, 01 Apr 2007 00:06:08 +0000
Subject: note 74249 added to function.highlight-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-124983@lists.php.net to get a copy of this message
A simplification of functions vanessaschissato at gmail dot com at 17-Oct-2006 05:04. Since it had trouble keeping the code intact. (It removed /* ) function showCode($code) { $code = highlight_string($code, true); $code = explode("<br />", $code); $i = "1"; foreach ($code as $line => $syntax) { echo "<font color='black'>".$i."</font> ".$syntax."<br>"; $i++; } } ---- Server IP: 86.58.145.50 Probable Submitter: 90.184.96.102 ---- Manual Page -- http://www.php.net/manual/en/function.highlight-string.php Edit -- https://master.php.net/note/edit/74249 Del: integrated -- https://master.php.net/note/delete/74249/integrated Del: useless -- https://master.php.net/note/delete/74249/useless Del: bad code -- https://master.php.net/note/delete/74249/bad+code Del: spam -- https://master.php.net/note/delete/74249/spam Del: non-english -- https://master.php.net/note/delete/74249/non-english Del: in docs -- https://master.php.net/note/delete/74249/in+docs Del: other reasons-- https://master.php.net/note/delete/74249 Reject -- https://master.php.net/note/reject/74249 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124983) next »