Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.0

Request #11168 PHP highlighting doesn't work
Submitted: 2007-05-28 20:14 UTC
From: sirzooro Assigned:
Status: Open Package: Text_Highlighter (version 0.6.9)
PHP Version: 4.4.5 OS: windows
Roadmaps: (Not assigned)    
Subscription  


 [2007-05-28 20:14 UTC] sirzooro (Daniel Fruzynski)
Description: ------------ PHP highlighting doesn't work at all Test script: --------------- require_once 'Text/Highlighter.php'; $highlighter =& Text_Highlighter::factory('PHP'); echo $highlighter->highlight('print "abc"; // print "abc"'); Expected result: ---------------- Highlighted PHP code sample Actual result: --------------
print "abc"; // print "abc"

Comments

 [2007-05-28 21:32 UTC] stoyan (Stoyan Stefanov)
Hi Daniel, This is expected behaviour. Try enclosing the code with <?php ?> tags. I'm filing this as a feature request. Thanks for the report, Stoyan
 [2008-01-09 21:13 UTC] bravo (Bravo Kernel)
Hi Stoyan, Is this feature-request still active (e.g. will it make it to an update soon?). I think it would make this great Class even better. TIA