Emacs

Adding php-mode to emacs
To add php-mode to emacs you first need to get the php-mode.el file from sourceforge. Put this in a new directory called "emacs" in your home directory.

Once you have done that you need to create a .emacs file in your home directory:

emacs ~/.emacs

This will open a new file in emacs called .emacs which runs whatever lisp commands you put in there when emacs starts up. Add the following to your new .emacs file:

(setq load-path (cons "/home/username/emacs" load-path)) (load "php-mode") (add-hook 'php-mode-hook 'turn-on-font-lock)

where "username" is your shell username. Save and quit emacs. Next time you open emacs with a php file it will open in php-mode with syntax highlighting on.