PHP numbered code listing, updated
I was looking at some thread in /boardom that had a little code nested between [php] and [/php] tags, and thought about how it would be cool if one could just specify the start of the line numbering.
After a bit of asking around and googling, it turns out <ol> accepts a start= argument.
So, here’s an updated version of my PHP line-numbering highlight functions, that make the functions accept a second argument $start_line.
I’ll just have to hack a start= argument in my phpBB’s [php] tags, and it will be just wonderful.
one response
that’s cool michel. that way we won’t have to paste entire code to get to a specific line. :)
#1 michael b — 2002/08/29 at 2:35
Your words