Devon O'Dell wrote:
> Simple fix :)
[...]
>>>> http://www.dapond.net/code/backtrace.phps?HIGHLIGHT_FORMAT=lineno
>>>>
>>> This last url doesn't output anything.
>>> Maybe because the HTML is broken?
>>>
>>
>> missing </table>
hm, what's the use of having a table here?
why not just one big <code> environment as in the un-numbered
version preceded by line numbers in a format like
sprintf("%4d: %s\n", line_no, line);
?
or even better: with html anchors for the lines
sprintf("<a name='%d'></a>%4d: %s\n", line_no, line_no, line);
similar to what we have on lxr.php.net?
so that you can give out links to certain lines in the code:
http://www.dapond.net/code/backtrace.phps?HIGHLIGHT_FORMAT=lineno#12
thinking even further: you could drop HIGHLIGHT_FORMAT altogether
and activate line numbering as soon as a numeric anchor is spotted
terminating the url ....
--
Six Offene Systeme GmbH http://www.six.de/
i.A. Hartmut Holzgraefe
Email: [EMAIL PROTECTED]
Tel.: +49-711-99091-77
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php