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

Bug #18304 Bug in CPP highlighting
Submitted: 2011-02-24 07:36 UTC
From: otsoko Assigned: doconnor
Status: Closed Package: Text_Highlighter (version 0.7.1)
PHP Version: 5.2.12 OS: Linux Mint
Roadmaps: (Not assigned)    
Subscription  


 [2011-02-24 07:36 UTC] otsoko (Juan Fernando)
Description: ------------ The actual CPP highlighting doesn't work properly with "types" and "prepro" words, it is necessary to change the file Text/Highlighter/Renderer/Html.php adding 'prepro' and 'types' to the $_class_map array. Test script: --------------- var $_class_map = array( ....... ...... 'prepro' => 'hl-prepro', 'types' => 'hl-types', ....... ...... ); Expected result: ---------------- Words like 'int', 'float', '#include', 'NULL' appear highlighted with this change. Actual result: -------------- Words like 'int', 'float', '#include', 'NULL' don't appear highlighted without this change.

Comments

 [2011-02-24 07:43 UTC] otsoko (Juan Fernando)
 [2011-11-30 20:20 UTC] doconnor (Daniel O'Connor)
I'm assuming this is unmaintained after a year of 0 activity.
 [2011-12-09 14:37 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.