|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-08 14:44 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 15:00:01 2025 UTC |
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!