Greetings,
I am fairly new to PHP and was going over the directives in the php.ini file, and I'm confused about the highlight.XXX directives; used for syntax highlighting. But I thought the software which we use to write PHP scripts is the only way we can have syntax highlighting? Could someone please explain.
Thank you.
Sohail.
PHP directive highlight.
Moderator: General Moderators
-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
Re: PHP directive highlight.
I believe it is used for the highlight_file and highlight_string functions.
Re: PHP directive highlight.
Yep.SidewinderX wrote:I believe it is used for the highlight_file and highlight_string functions.
They don't have to be just colors either. The PHP guys themselves use hacks like
Code: Select all
ini_set("highlight.bg", '#ABC" class="highlight-background'); // <font color="#ABC" class="highlight-background">Re: PHP directive highlight.
Thank you both for the answer.