Re: [ANNOUNCEMENT] Text_Highlighter-0.5.0 (beta) Released.
| From: | Laurent Laville | Date: | Thu, 07 Oct 2004 22:53:30 +0000 |
| Subject: | Re: [ANNOUNCEMENT] Text_Highlighter-0.5.0 (beta) Released. | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14806@lists.php.net to get a copy of this message | ||
Hi Andrey,
I've just installed few minutes ago the new version, and got a little
problem. I know this package is still in beta stage, but i like it so
much i wanted to see the new features (renderers) and discovered a
problem with only IE browsers (5.x, 6.x).
Doing a diff on both sources 0.4.1 and 0.5.0 i realized that
when using HL_NUMBERS_TABLE format a <pre> tag was removed.
This tag is specially important for IE than is useless for others
browsers such as Mozilla and Opera (i've also tested it with these ones).
So my hack was to add the <pre> tag missing on line 201
of Renderer/Html.php file
$Id: Html.php,v 1.2 2004/10/07 14:46:47 blindman Exp $
as detailed in file joined.
Hope it will help; this hack was testesd under
IE 5, IE 6, Opera 7, mozilla Firebird 0.10
I've just begun to test this new version, but it look cool again
Keep up the good work :)
Laurent Laville
Pear Announce wrote:
> The new PEAR package Text_Highlighter-0.5.0 (beta) has been released at
> http://pear.php.net/.
>
> Release notes
> -------------
> - fixed #1991 Output is not W3C compliant (</li> missing!)
> - new highlighters : perl, c/c++, ruby
> - removed dependency on ErrorStack
> - added renderers support (default HTML renderer and Console renderer are available)
> - removed PHPDoc tutorials. I am too lazy to maintain those XML files. See documentation in
> README
>
> Package Info
> -------------
> Text_Highlighter is a package for syntax highlighting.
>
> It provides a base class provining all the functionality,
> and a descendent classes geneator class.
>
> The main idea is to simplify creation of subclasses
> implementing syntax highlighting for particular language.
> Subclasses do not implement any new functioanality,
> they just provide syntax highlighting rules.
> The rules sources are in XML format.
>
> To create a highlighter for a language, there is no need
> to code a new class manually. Simply describe the rules
> in XML file and use Text_Highlighter_Generator to create
> a new class.
>
> Related Links
> -------------
> Package home: http://pear.php.net/package/Text_Highlighter
> Changelog: http://pear.php.net/package/Text_Highlighter/download/0.5.0g–
> Šg²öíý¥¶Ê
> Download:
> http://pear.php.net/get/Text_Highlighter-0.5.0.tgz
>
> Authors
> -------------
> Andrey Demenev <demenev@on-line.jar.ru> (lead)