PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Highlighter

Syntax highlighting

This package is unmaintained.

Download latest release 0.8.0 (there is a newer Composer installable version)

License: PHP License

Description

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.

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#1991ClosedBug2004-07-27Output is not W3C compliant (</li> missing!)
#2588ClosedBug2004-10-22Missing nbsp in first line
#2730ClosedBug2004-11-10Notice: Undefined offset in Highlighter.php
#3060ClosedBug2004-12-30Wrong render with HL_NUMBERS_TABLE option
#3063ClosedBug2004-12-30function to re-initialize renderer buffer ouput
#3106No FeedbackBug2005-01-05diff Highlighter produces to many newlines
#3797ClosedBug2005-03-12Extra span close tag produced with php highlighting.
#4606ClosedBug2005-06-16span end tag at beginning of a list
#4607ClosedReq2005-06-16The span class="hl-brackets" shall not include the spaces before
#4608ClosedBug2005-06-16Tabs not expanded in list mode
#4640ClosedReq2005-06-20Output highlighted code as unordered list
#5512BogusBug2005-09-24wrong highlight with comments in css code
#5927BogusBug2005-11-10Umlauts break highlighting
#6231ClosedBug2005-12-12Undefined property _defClass notice in HTML renderer
#6398ClosedBug2006-01-02CSS highlighter behaves strangely
#6588ClosedReq2006-01-25HTML Renderer feature: language specific class
#6600ClosedBug2006-01-26Versions >= 0.6.0 fail in PHP < 4.3.3
#6620ClosedBug0.6.72006-01-29path used in generate.bat is wrong
#6691ClosedBug0.6.82006-02-04generate.bat can't work
#7077ClosedReq0.6.92006-03-09[PATCH] Extend functionality
#7480ClosedReq0.6.92006-04-25new feature: link elements to their documentation
#8704ClosedReq0.6.92006-09-14Two new renderers proposal
#8756BogusBugCVS2006-09-21Notice re variable reference
#8809ClosedReq0.6.92006-09-28New syntax definition - ABAP language
#9188ClosedReq0.6.92006-10-27Two more renderers - Array and JSON
#9195ClosedDocCVS2006-10-31HL_NUMBERS_OL is not defined
#9766BogusBug0.6.92007-01-08Wordpress error
#11160ClosedBug0.6.92007-05-27JS: /= operator is not recognized
#11168OpenReq0.6.92007-05-28PHP highlighting doesn't work
#11172FeedbackReq0.6.92007-05-29Add inline mode
#11211ClosedDoc0.6.92007-06-02Don't you need a css style sheet to make this work?
#11248ClosedReq0.7.02007-06-07This is a crude, but quite usable syntax file for Bourne style posix shells.
#11288BogusReq0.7.02007-06-11Explicitly enter String mode
#11307ClosedDoc0.7.02007-06-13"hl-LANG-XXX" or "LANG-hl-XXX"
#11414OpenReq2007-06-23doclinks - option in xml file
#11478ClosedBug0.7.02007-06-28Invalid XHTML, </span> required before </li>
#12033ClosedBug0.7.02007-09-12PHP/Java/... highlighting of comment over several lines does not work
#12085ClosedBug0.7.02007-09-19Comments not recognized in CSS code
#12233OpenReq0.7.02007-10-12Feature Requests
#12284ClosedBug0.7.02007-10-19JS: hex numbers are not recognized
#12347ClosedReq0.7.02007-10-25Add VBScript language
#12836OpenReq0.7.12008-01-06License seems to not really fit, please change
#13350ClosedBug0.7.12008-03-08problem handling mac-style line breaks. eg. \r
#14359BogusBug0.7.12008-07-16Adds  to beginning of results
#14480OpenReq0.7.12008-08-09Empty <span>s are generated
#14560ClosedBug0.7.12008-08-25yields warnings from E_STRICT
#14561Wont fixBug0.7.12008-08-25define factory() static
#15987BogusBug2009-03-07Unmaintained, should be marked as such
#16313No FeedbackBug0.7.12009-06-10HL_NUMBERS_LI breaks indention of code
#16428AssignedReq0.7.12009-07-11Different classes for each language
#18304ClosedBug0.7.12011-02-24Bug in CPP highlighting
#19139ClosedBug0.7.22011-12-150.7.2 cannot be installed