note 84908 rejected from function.highlight-file by danbrown
| From: | danbrown@php.net | Date: | Tue, 05 Aug 2008 17:45:24 +0000 |
| Subject: | note 84908 rejected from function.highlight-file by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143174@lists.php.net to get a copy of this message | ||
Note Submitter: alex dot dolski at unlv dot edu
----
Thanks to mmcloughlin at gmail dot com for the tip about changing the colors. But it makes me
wonder: why don't highlight_file() and highlight_string() simply use classes in the
<span> elements instead of inline colors? Having to use ini_set to change colors is silly.
Imagine:
<style type="text/css">
.comment {
color:gray;
}
</style>
<span class="comment">/* Comment */</span>
Come on, PHP devs! Semantic markup!