i went to a couple different sources, and the following code snippets
were each recommended by a different website dealing with php syntax
highlighting... i tried them in various combinations (each alone, all
toghether, two at a time...) but none of them seem to fix the
problem... so... it doesn't seem to be working at all... i'm kind of
confused because i know somebody who does have the syntax highlighting,
but he doens't know how he got it, cuz it came when he installed
emacs.... (and i got my .emacs file from him)
thanx a ton!
~Erin
(require 'php-mode)
(set auto-mode-alist
(append '(("\\.php$" . php-mode)
("\\.php3" . php-mode))
auto-mode-alist))
(autoload 'php-mode "php-mode" "PHP editing mode" t)
(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
(cond (window-system
(require 'font-lock)
(setq font-lock-support-mode 'lazy-lock-mode)
(setq font-lock-maximum-decoration t)
(global-font-lock-mode t)
))
--- Bryan Murdock <[EMAIL PROTECTED]> wrote:
> On Mon, 2003-03-24 at 14:48, Erin! wrote:
> >
> > how do i get php syntax highlighting in emacs? i've downloaded the
> >php-mode.el file from the web, and i made the recommended changes to
> my
> >.emacs file, but it's still not working... it says that it can't
> find
> >the php-mode file. what folder am i supposed to have it in?
> >currently, it's in /usr/share/emacs/site-lisp/
>
> That directory should work...what changes did it have you make in
> your
> .emacs file?
>
> As a side note, PHP highlighting can be a little tricky if the php is
> embedded in an html file. If it is, then emacs is probably just
> going
> to go into an html mode and get confused by the php, and the php-mode
> I
> found got all confused by the html if I turned it on. You can get
> html-helper-mode (http://www.gest.unipd.it/~saint/hth.html) which
> deals
> with php embedded in html pretty well to fix this.
>
> Bryan
>
>
>
> _______________________________________________
> newbies mailing list
> [EMAIL PROTECTED]
> http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
=====
�The pledge of allegiance to the flag is a pledge to the ideals of our forefathers,
the men who fought and died in the building of this great nation. It is a pledge to
fulfill our duties and obligations as citizens of the United States, and to uphold the
principles of our constitution. And last but not least, it is a pledge to maintain
the four great freedoms treasured by all Americans: freedom of speech, freedom of
religion, freedom from want, and freedom from fear.�
~Lee Greenwood
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies