Uhaw Pa Sa Camel

 
d'Doc
Alabang, Muntinlupa City, Philippines
Beer-loving Gunner extraordinaire, perennial vocalist, guitarist, dog person, and wet kisser in one neat li'l package.

>> VIEW MY COMPLETE PROFILE

 

Subscribe to
Posts [Atom]  

Previous Posts

Powered by Blogger

 
Monday, October 12, 2009

PHP syntax highlighting in Emacs (Debian Linux)

 

Someone encouraged me before to start blogging again (no, his name is not Emerson Galacio). So just to have an entry for starters, 'cause I'm too lazy to think of anything original, I resolved to remember anything useful or useless (but curious enough) that I learn everyday and put them in my blog. So without further fuzz:


To have syntax highlighting in Emacs for the PHP language try the following in a debian setup:


sudo apt-get install php-mode

Then, edit the .emacs file located in your home directory and add the following lisp code:


(load-library "php-mode")
(global-font-lock-mode t)

Save and start emacs. Btw, you can learn more about font-lock-mode from here Emacs FAQ


If you don't have apt-get installed or you have a different package manager, you could download php-mode from here: http://php-mode.sourceforge.net


Subscribe to
Posts [Atom]

 
 

0 Comments:

Post a Comment

<< Home