Difference between revisions of "PHP"

From WikEmacs
Jump to: navigation, search
m (added category)
(Emacs Modes for PHP)
Line 2: Line 2:
 
There are several modes for editing PHP source files in Emacs.  
 
There are several modes for editing PHP source files in Emacs.  
  
[http://php-mode.sourceforge.net/ PHP-mode] is a basic PHP mode which features syntax highlighting.
+
* [http://php-mode.sourceforge.net/ PHP-mode] is a basic PHP mode which features syntax highlighting.
[http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html nXhtml] is a major mode for editing files with mixed HTML and PHP code.
+
* [[nXhtml]] is a major mode for editing files with mixed HTML and PHP code.
  
 
== Flymake ==
 
== Flymake ==

Revision as of 12:16, 25 March 2012

Emacs Modes for PHP

There are several modes for editing PHP source files in Emacs.

  • PHP-mode is a basic PHP mode which features syntax highlighting.
  • nXhtml is a major mode for editing files with mixed HTML and PHP code.

Flymake

Here is a great article on setting up a simple PHP flymake mode using the PHP interperter.

Debugging PHP code in emacs

The xdebug extension for PHP is an essential tool for the PHP developer. Geben is an excellent remote for the xdebug debugger when working inside of emacs.