Description:
------------
Hello,
I made a patch to give Text_Highlighter some settings and make it more usable for me.
Please look at http://pc01-lsw.ee.fhm.edu/wiki/Horde/WickedAndTextHighlighter . There you can download Html.diff
It contains the following enhancements:
- giving a start value for line numbering
- make it possible to pass an optional map with style information (instead of class names) to the renderer
- make it possible to pass a css name map to it (optional, too)
- make <pre>-tag working with line-numbered output (same tag encapsulation as w/o line numbers)
- setting "hl-main" class name before <pre>-tag, even for line-numbered output. (I think this is useful for css-files using ".hl-main pre" w/o considering if the output is with line numbers or not.)
Please have also a look at:
http://pear.php.net/bugs/bug.php?id=4230
Hope this patch is useful
Ciao
Walter

Comments

Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/Text_Highlighter
Hi Walter,
Thanks very much for your patch and feature requests. I believe I've addressed all of the points here in the new release, but if you see something missing, please file a new bug/feature requests.
Thanks again,
Stoyan