[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21. Editing PHP Code

PHP mode is a major mode for editing PHP source code. It is automatically invoked for buffers visiting the following files of files:

The mode is an extension of cc-mode; thus it inherits all cc-mode's navigation functionality (see section `Top' in CC Mode Manual). But it colors according to the PHP grammar and indents according to the PEAR coding guidelines. It also includes a couple of handy IDE-type features such as documentation search and a source and class browser.

For colorization, turn on global-font-lock or add the following to your user-init-file:

 
  (add-hook 'php-mode-user-hook 'turn-on-font-lock)

To use abbrev-mode, add lines like this to your user-init-file:

 
  (add-hook 'php-mode-user-hook
    '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))

To make php-mode compatible with html-mode, see http://php-mode.sourceforge.net/.

To configure this package, type:

 
  M-x customize-group RET php RET

21.1 About PHP  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21.1 About PHP

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. For more information, see http://www.php.net/.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs shared group account on December, 19 2009 using texi2html 1.65.