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
0 Comments:
Post a Comment
<< Home