Home » Text » Text_Highlighter » Bug #5512
wrong highlight with comments in css code
Details
| Submitted | 2005-09-24 22:00 UTC |
|---|---|
| From | tobias at meshed dot de |
| Status | Bogus |
| Package | Text_Highlighter |
| PHP Version | 5.0.4 |
| OS | Mac OS X (MAMP) |
| Roadmaps | (Not assigned) |
Comments
[2005-09-24 22:00 UTC] tobias at meshed dot de
Description:
------------
CSS Comments won't highlight correct
Test script:
---------------
require_once 'Text/Highlighter.php';
$highlighter =& Text_Highlighter::factory('css');
// more info: http://www.sitepoint.com/print/highlight-source-code-php
$some_source_code =
'// example
body.content = { color: black; }
';
echo $highlighter->highlight($some_source_code);
Actual result:
--------------
// example
body.content = { color: black; }
[2005-10-01 02:53 UTC] blindman at php dot net
Thank you for taking the time to write to us, but this is not
a bug.
This code is not valid CSS.
See http://www.w3.org/TR/REC-CSS2/syndata.html