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.

Advertisements

3 thoughts on “emacs and php syntax (php-mode)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s