Re: [PEPr] +1 for Text::Text_Highlighter
| From: | Andrey Demenev | Date: | Thu, 20 May 2004 13:42:33 +0000 |
| Subject: | Re: [PEPr] +1 for Text::Text_Highlighter | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29448@lists.php.net to get a copy of this message | ||
Pepr wrote:
Greg Beaver (http://pear.php.net/user/cellog) has voted +1 on the proposal for Text::Text_Highlighter. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=72 Vote information: http://pear.php.net/pepr/pepr-vote-show.php?id=72&handle=cellog This vote is conditional. The condition is: Great package The only problem is that it will not be able to do cross-referencing the way phpDocumentor does it, as it must also be possible to know the current code syntax to do this. Perhaps in the future, a plugin system could be designed that allows an external parser/tokenizer to pass tokens into the highlighter? That's my only condition - if the highlighting callback took 2 arguments, the token, and what text should be highlighted as if it were the token, then we would be in business. For the initial release, this is not crucial, but I will absolutely need this feature to be able to use this package in phpDocumentor for PHP code, and I do want to use it. In its current state, it will be used for other things like javascript/html surrounding PHP code, xml and tutorials, and so on.I did think about that. It will be definitely add this a bit later. -- Andrey Demenev aka Blindman demenev@on-line.jar.ru