note 84908 added to function.highlight-file
| From: | alex dot dolski at unlv dot edu | Date: | Tue, 05 Aug 2008 17:34:16 +0000 |
| Subject: | note 84908 added to function.highlight-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143173@lists.php.net to get a copy of this message | ||
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!
----
Server IP: 209.41.74.194
Probable Submitter: 131.216.164.25
----
Manual Page -- http://www.php.net/manual/en/function.highlight-file.php
Edit -- https://master.php.net/note/edit/84908
Del: integrated -- https://master.php.net/note/delete/84908/integrated
Del: useless -- https://master.php.net/note/delete/84908/useless
Del: bad code -- https://master.php.net/note/delete/84908/bad+code
Del: spam -- https://master.php.net/note/delete/84908/spam
Del: non-english -- https://master.php.net/note/delete/84908/non-english
Del: in docs -- https://master.php.net/note/delete/84908/in+docs
Del: other reasons-- https://master.php.net/note/delete/84908
Reject -- https://master.php.net/note/reject/84908
Search -- https://master.php.net/manage/user-notes.php