Re: Re: Need for a syntax-highlighter
| From: | Davey | Date: | Fri, 05 Mar 2004 12:09:11 +0000 |
| Subject: | Re: Re: Need for a syntax-highlighter | ||
| References: | 1 2 3 | Groups: | php.pear.dev php.pear.doc |
| Request: | Send a blank email to pear-dev+get-26131@lists.php.net to get a copy of this message | ||
Cipriano Groenendal wrote:
That to me, smacks of being a HTML-Code Highlighter - we need to make sure that doesn't happen IMO. Text_Highlighter allows for say, PDF renderers too, no? Maybe Text_CodeHighlighter? - DaveyAs it outsputs HTML, such could should be in the HTML Catagory. HTML_CodeHighlighter would be a perfect name for this :) CipriI was recently having a look at the coloring of "programlisting"- parts in peardoc. In short, the docs generated in HTML-form are sent through "colorize.php": http://cvs.php.net/co.php/peardoc/colorize.php?r=1.2 which generates the highlighted version. However, currently only php-source can be highlighted because the script uses php's built-in features for php-highlighting.I hope this is of some help to you guys. Would be nice if HTML_BBCodeParser supported: [code type="xml"] for example, using whatever code is used for HTML_Code_Highlighter, I think I prefer Text_Highlighter - to stop people thinking it just highlights HTML.... not sure.