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
Maintainers
- Stoyan Stefanov (stoyan) — lead, active
- Andrey Demenev (blindman) — lead, active
Dependencies
Required
- PHP (>= 5.4.0)
- PEAR Installer (>= 1.10.1)
- PEAR (>= 1.10.3)
- XML_Parser (>= 1.3.7)
- Console_Getopt (>= 1.4.1)
Releases
- 0.8.0 (beta, 2017-03-07)
Release notes
License: PHP License
* Set minimum PHP version to 5.4.0
* Set minimum PEAR version to 1.10.1* PHP7 compatibility: replace preg_replace with e modifier
- 0.7.3 (beta, 2011-12-17)
Release notes
License: PHP License
Bug #19139 0.7.2 cannot be installed
- 0.7.2 (beta, 2011-12-10)
Release notes
License: PHP License
QA Release
Bug #18304 Bug in CPP highlighting
Bug #14560 yields warnings from E_STRICT - 0.7.1 (beta, 2008-01-01)
Release notes
License: PHP License
- added new syntax definition - VBScript, thanks to sirzooro (Daniel Fruzynski)
- fixed bug #12284 (hex numbers not recognized in JS)
- fixed bug #12085 (comments not recognized in CSS) - 0.7.0 (beta, 2007-06-06)
- 0.6.9 (beta, 2006-02-10)
- 0.6.8 (beta, 2006-02-03)
- 0.6.7 (beta, 2006-02-03)
- 0.6.6 (beta, 2005-06-24)
- 0.6.5 (beta, 2005-04-21)
- 0.6.4 (beta, 2005-04-16)
- 0.6.3 (beta, 2005-03-13)
- 0.6.2 (beta, 2005-02-04)
- 0.6.1 (beta, 2004-11-11)
- 0.6.0 (beta, 2004-10-31)
- 0.5.1 (beta, 2004-10-08)
- 0.5.0 (beta, 2004-10-07)
- 0.4.1 (beta, 2004-06-19)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #1991 | Closed | Bug | 2004-07-27 | Output is not W3C compliant (</li> missing!) | |
| #2588 | Closed | Bug | 2004-10-22 | Missing nbsp in first line | |
| #2730 | Closed | Bug | 2004-11-10 | Notice: Undefined offset in Highlighter.php | |
| #3060 | Closed | Bug | 2004-12-30 | Wrong render with HL_NUMBERS_TABLE option | |
| #3063 | Closed | Bug | 2004-12-30 | function to re-initialize renderer buffer ouput | |
| #3106 | No Feedback | Bug | 2005-01-05 | diff Highlighter produces to many newlines | |
| #3797 | Closed | Bug | 2005-03-12 | Extra span close tag produced with php highlighting. | |
| #4606 | Closed | Bug | 2005-06-16 | span end tag at beginning of a list | |
| #4607 | Closed | Req | 2005-06-16 | The span class="hl-brackets" shall not include the spaces before | |
| #4608 | Closed | Bug | 2005-06-16 | Tabs not expanded in list mode | |
| #4640 | Closed | Req | 2005-06-20 | Output highlighted code as unordered list | |
| #5512 | Bogus | Bug | 2005-09-24 | wrong highlight with comments in css code | |
| #5927 | Bogus | Bug | 2005-11-10 | Umlauts break highlighting | |
| #6231 | Closed | Bug | 2005-12-12 | Undefined property _defClass notice in HTML renderer | |
| #6398 | Closed | Bug | 2006-01-02 | CSS highlighter behaves strangely | |
| #6588 | Closed | Req | 2006-01-25 | HTML Renderer feature: language specific class | |
| #6600 | Closed | Bug | 2006-01-26 | Versions >= 0.6.0 fail in PHP < 4.3.3 | |
| #6620 | Closed | Bug | 0.6.7 | 2006-01-29 | path used in generate.bat is wrong |
| #6691 | Closed | Bug | 0.6.8 | 2006-02-04 | generate.bat can't work |
| #7077 | Closed | Req | 0.6.9 | 2006-03-09 | [PATCH] Extend functionality |
| #7480 | Closed | Req | 0.6.9 | 2006-04-25 | new feature: link elements to their documentation |
| #8704 | Closed | Req | 0.6.9 | 2006-09-14 | Two new renderers proposal |
| #8756 | Bogus | Bug | CVS | 2006-09-21 | Notice re variable reference |
| #8809 | Closed | Req | 0.6.9 | 2006-09-28 | New syntax definition - ABAP language |
| #9188 | Closed | Req | 0.6.9 | 2006-10-27 | Two more renderers - Array and JSON |
| #9195 | Closed | Doc | CVS | 2006-10-31 | HL_NUMBERS_OL is not defined |
| #9766 | Bogus | Bug | 0.6.9 | 2007-01-08 | Wordpress error |
| #11160 | Closed | Bug | 0.6.9 | 2007-05-27 | JS: /= operator is not recognized |
| #11168 | Open | Req | 0.6.9 | 2007-05-28 | PHP highlighting doesn't work |
| #11172 | Feedback | Req | 0.6.9 | 2007-05-29 | Add inline mode |
| #11211 | Closed | Doc | 0.6.9 | 2007-06-02 | Don't you need a css style sheet to make this work? |
| #11248 | Closed | Req | 0.7.0 | 2007-06-07 | This is a crude, but quite usable syntax file for Bourne style posix shells. |
| #11288 | Bogus | Req | 0.7.0 | 2007-06-11 | Explicitly enter String mode |
| #11307 | Closed | Doc | 0.7.0 | 2007-06-13 | "hl-LANG-XXX" or "LANG-hl-XXX" |
| #11414 | Open | Req | 2007-06-23 | doclinks - option in xml file | |
| #11478 | Closed | Bug | 0.7.0 | 2007-06-28 | Invalid XHTML, </span> required before </li> |
| #12033 | Closed | Bug | 0.7.0 | 2007-09-12 | PHP/Java/... highlighting of comment over several lines does not work |
| #12085 | Closed | Bug | 0.7.0 | 2007-09-19 | Comments not recognized in CSS code |
| #12233 | Open | Req | 0.7.0 | 2007-10-12 | Feature Requests |
| #12284 | Closed | Bug | 0.7.0 | 2007-10-19 | JS: hex numbers are not recognized |
| #12347 | Closed | Req | 0.7.0 | 2007-10-25 | Add VBScript language |
| #12836 | Open | Req | 0.7.1 | 2008-01-06 | License seems to not really fit, please change |
| #13350 | Closed | Bug | 0.7.1 | 2008-03-08 | problem handling mac-style line breaks. eg. \r |
| #14359 | Bogus | Bug | 0.7.1 | 2008-07-16 | Adds  to beginning of results |
| #14480 | Open | Req | 0.7.1 | 2008-08-09 | Empty <span>s are generated |
| #14560 | Closed | Bug | 0.7.1 | 2008-08-25 | yields warnings from E_STRICT |
| #14561 | Wont fix | Bug | 0.7.1 | 2008-08-25 | define factory() static |
| #15987 | Bogus | Bug | 2009-03-07 | Unmaintained, should be marked as such | |
| #16313 | No Feedback | Bug | 0.7.1 | 2009-06-10 | HL_NUMBERS_LI breaks indention of code |
| #16428 | Assigned | Req | 0.7.1 | 2009-07-11 | Different classes for each language |
| #18304 | Closed | Bug | 0.7.1 | 2011-02-24 | Bug in CPP highlighting |
| #19139 | Closed | Bug | 0.7.2 | 2011-12-15 | 0.7.2 cannot be installed |