Since I'm not entirely comfortable with the lexer (or the Zend Engine) yet, I need to get a few questions answered:
1) I notice that there seems to be a T_LINE token, which should be the linenumber? However, this never seems To even come up in the lexer from the zend_highlight() function... 2) Assuming I'm wrong about the T_LINE token in this use, (I suspect I am)... I need to break up the parser So that it identifies NEWLINE differently than just WHITESPACE. Any thoughts/comments/etc on this? Regarding the function ref... 1) What is the token identifying a function name? 2) Is there a good way to determine if a function name is user-defined or not? I may be completely off base here (it wouldn't surprise me) but as far as I can tell thus far looking at the source, I need to modify the zend_highlight() function in order to add the requested features. I'm not so sure on how to handle Line numbers (I was thinking of a state machine that determined if the line number should be printed -- only should happen immediately before the first token is displayed every new-line)... But as far as the function-ref goes I'd Think I could simply add a condition to check if the token is a function ... Determine if it is user-defined or not, and if it isn't create a HREF wrapper... Like I said, am I completely off base? John |-----Original Message----- |From: Eric Coleman [mailto:eric.coleman@;zaireweb.com] |Sent: Friday, November 15, 2002 12:29 AM |To: [EMAIL PROTECTED] |Subject: Re: [PHP-DEV] show_source() | | |I would actually love to see that :) | | |"John Coggeshall" <[EMAIL PROTECTED]> wrote in message |news:000701c28c5e$ac9cb200$9d10fea9@;coogle... | |If no one has an objection, I'll look into making some of that happen. | |John | | ||-----Original Message----- ||From: [EMAIL PROTECTED] [mailto:nicos@;php.net] ||Sent: Thursday, November 14, 2002 10:15 PM ||To: [EMAIL PROTECTED] ||Subject: [PHP-DEV] show_source() || || ||Hello, || || Some users are requesting some new arguments in ||show_source() like having the line numbers, having a link to the php ||manual when a function is called... (see #12442 ) || || What do you think of that? || ||Regards. ||M.CHAILLAN Nicolas ||[EMAIL PROTECTED] ||www.WorldAKT.com Hébergement de sites internets. || || || || ||-- ||PHP Development Mailing List <http://www.php.net/> ||To unsubscribe, visit: http://www.php.net/unsub.php || || | | | |-- |PHP Development Mailing List <http://www.php.net/> |To unsubscribe, visit: http://www.php.net/unsub.php | | -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php