From: ceo at l-i-e dot com Operating system: N/A PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: highlight_file could take start/length line numbers for excerpts
Description: ------------ I would find highlight_file much more useful, particularly for writing on-line tutorials, articles, etc if it would take a line number and count optional arguments, to print out only an excerpt of the file. One could then intersperse bits of code and commentary very easily with original source files instead of having to keep code snippets in sync as you develop/author an article. One can, of course, play games with explode("<br />" and array_slice, but it's a bit of a pain, really. It would also be extra nifty if line numbers could be added on the left with yet another optional arg, and maybe even an arg for absolute|relative numbering for the snippets. PHP Rocks! -- Edit bug report at http://bugs.php.net/?id=45455&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45455&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45455&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45455&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45455&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45455&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45455&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45455&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45455&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45455&r=support Expected behavior: http://bugs.php.net/fix.php?id=45455&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45455&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45455&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45455&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45455&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45455&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45455&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45455&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45455&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45455&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45455&r=mysqlcfg