(Fwd) Re: Need for a syntax-highlighter

From: Date: Fri, 05 Mar 2004 13:13:10 +0000
Subject: (Fwd) Re: Need for a syntax-highlighter
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26132@lists.php.net to get a copy of this message
Forgot to mention pear-dev in my reply ... and I think pear-dev is where this discussion belongs now, from the current point of discussion. ------- Forwarded message follows ------- On 5 Mar 2004 at 12:09, Davey wrote: > Cipriano Groenendal wrote: > > >>>I 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. > > > > As it outsputs HTML, such could should be in the HTML Catagory. > > HTML_CodeHighlighter would be a perfect name for this :) > > > > Cipri > > 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? Okay, that's a great deal: Make it also highligh and output text for a PDF, RTF and similar formats and I can pretty much live Text_Highlighter. :-))) And maybe we can even talk about Text_CodeHighlighter although I feel we shouldn't consider HTML "code" in a more strict sense. Stefan ------- End of forwarded message -------

« previous php.pear.dev (#26132) next »