emacs and php syntax (php-mode)

Easy easy easy: how to have php syntax coloring in emacs.

Download the latest version of php-mode. Copy php-mode.el inside your site-lisp directory (on windows could be C:\program files\emacs<version>\site-lisp and the update your .emacs file adding the following lines

;;php-mode.el
(require ‘php-mode)

You will need font-lock enabled. For many information look inside the source file (the comments explain more settings) and for an example .emacs file you can refer to mine.

2 Comments »

  1. Visitor791 said,

    August 21, 2007 @ 2:31 pm

    I have visited your site 407-times

  2. edivad said,

    August 21, 2007 @ 2:58 pm

    Wow, what a counter! :)

    Thanks Visitor791, hope you found something useful.

RSS feed for comments on this post · TrackBack URI

Leave a Comment