Re: Syntax Coloring
| From: | Burhan Khalid | Date: | Tue, 17 May 2005 09:34:32 +0000 |
| Subject: | Re: Syntax Coloring | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215378@lists.php.net to get a copy of this message | ||
hima wrote:
Hi all, I am trying to apply syntax coloring to my source code as I type it in unix shell. I work on a mac machine. How do I achieve this. In the php.ini file I see these following lines commented out. ; Colors for Syntax Highlighting mode. Anything that's acceptable in ; <font color="??????"> would work. ;highlight.string = #DD0000 ;highlight.comment = #FF9900 ;highlight.keyword = #007700These lines are to set up custom colors for the highlight_* functions and for the automatic highlighting of .phps files. For your console needs, you would need to find an editor that supports PHP highlighting. Almost all unix based editors do. For example, vim does PHP syntax highlighting, as I'm sure Emacs has a mode that does this too (I don't use emacs).;highlight.bg = #FFFFFF;highlight.default = #0000BB;highlight.html = #000000Should I uncomment the above lines?