[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This chapter describes the differents parameters and functions that you can change to customize PHP Mode. To do that, open a PHP file, click on the PHP menu and choose Options then Browse Options....
3.1 Parameters | ||
3.2 Functions | ||
Paramètres | ||
---|---|---|
3.1.1 Mode | ||
3.1.2 Menu | ||
3.1.3 Templates | ||
3.1.4 Style | ||
3.1.5 PHPDocumentor | ||
3.1.6 Miscellaneous | ||
Fonctions | ||
3.2.1 Mode |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1.1 Mode | ||
3.1.2 Menu | ||
3.1.3 Templates | ||
3.1.4 Style | ||
3.1.5 PHPDocumentor | ||
3.1.6 Miscellaneous |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
PHP Mode has 3 modes allowing to simplify the writing of PHP code. You can enable/disable each mode individually.
Type: boolean
Default value: `t'
Description: If `t'; enable automatic generation of template.
If `nil'; template generators can still be invoked through key bindings and
menu. Is indicated in the modeline by "/e" after the mode name and can be
toggled by `php-electric-mode'.
Type: boolean
Default value: `t'
Description: If `t'; enable the stuttering. Is indicated in
the modeline by "/s" after the mode name and can be toggled by `php-stutter-mode'.
Type: boolean
Default value: `nil'
Description: If `t'; indentation is made with tabs.
If `nil'; indentation is made with spaces.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
PHP Mode has also 2 menus tha you can enable/disable. The menus Index and Sources are specific to each PHP files opened.
Type: boolean
Default value: `t'
Description: If `t'; the Index menu is enabled. It shows
the list of class and functions of the opened file. The Index menu scans the file when it is
opened.
Type: boolean
Default value: `t'
Description: If `t'; the Index menu is updated
when a function or a class is added or removed.
Type: boolean
Default value: `t'
Description: If `t'; the Sources menu is enabled. This
menu contains the list of PHP file located in the current directory. The Sources menu scans
the directory when a file is opened.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Type: boolean
Default value: `t'
Description: If `t'; the include et require
functions are used with parenthesis (example : require( 'required_file.php' );
).
If `nil'; the include and require functions are used without parenthesis
(example : include_once 'required_file.php';
)
Type: boolean
Default value: `t'
Description: If `t'; the fclose function is added
when the template of the fopen function is executed.
Type: boolean
Default value: `t'
Description: If `t'; the mysql_close
function is added when the template of mysql_connect function is executed.
3.1.3.1 Header |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Type: string
Default value: `"
/**
* <description string>
*
*
* Created: <date>
* Last update: <date>
*
* @link <link string>
* @copyright <copyright>
* @author <author>
* @package <package string>
* @version <version string>
*/
<cursor>"'
Description: String or file to insert as file header. If the string specifies an existing file name the contents
of the file is inserted; otherwise the string itself is inserted as file header.
Type `C-j' for newlines.
The follonwing keywords are supported:
<filename>: replaced by
the file name.
<author>: replaced by the user name and email address.
<login>:
replaced by `user-login-name'.
<company>: replaced by `php-company-name' content.
<date>:
replaced by the current date.
<year>: replaced by the current year.
<copyright>: replaced by
`php-copyright-string' content.
<cursor>: final cursor position.
Type: string
Default value: `""'
Description: String or file to insert as file footer.
See `php-file-header'
Type: string
Default value: `""'
Description: Name of the company to insert in file header.
Type: string
Default value: `""'
Description: Coryright string to insert in file header.
Type: string
Default value: `"%Y-%m-%d"'
Description: Date format.
Type: string
Default value: `" * Last update: "'
Description: Prefix string of
modification date in PHP file header.
Type: bool
Default value: `t'
Description: If `t'; update the modification date
when the buffer is saved.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Type: integer
Default value: `4'
Description: Amount of basic offset used for indentation.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Type: bool
Default value: `t'
Description: If `t'; PHP-Documentor tags are
added into the class and functions comments.
Type: list (string)
Default value: `'("package")'
Description: List of PHP-Documentor tags to add
into the class comments.
Type: list (string)
Default value: `'()'
Description: List of PHP-Documentor tags to add
into the functions comments.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Type: bool
Default value: `t'
Description: If `t'; TAB does indentation; completion and
insert tabulations. If `nil'; TAB does only indentation.
Type: bool
Default value: `t'
Description: If `t'; enable completion in the
minibuffer.
Type: bool
Default value: `nil'
Description: If `t'; completion is case
sensitive.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.2.1 Mode |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Menu: PHP -> Options -> Mode -> Electric Mode
Keybinding: C-c C-m C-e
Description: This functions is used to enable/disable the electric mode.
Menu: PHP -> Options -> Mode -> Stutter Mode
Keybinding: C-c C-m C-s
Description: This function is used to enable/disable the stutter mode.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Vincent DEBOUT on March, 17 2007 using texi2html 1.76.