Manual
6. Indentation
Indentation can be done with spaces or TAB characters. A new line is automtically indented. Tou can
manually indent or remove indentation by placing the cursor at the beginning of the first word and
by using the TAB key.
6.1 Customization
-
- `php-indent-tabs-mode'
Type: boolean
Default value: `nil'
Description: If `t'; indentation is made with tabs.
If `nil'; indentation is made with spaces.
- `php-basic-offset'
Type: integer
Default value: `4'
Description: Amount of basic offset used for indentation.
6.2 Functions
-
- `indent-according-to-mode'
Menu: PHP -> Indent -> Line
Keybinding: C-c C-i C-l
Description: This function is used to indent the current line (the line where the cursor is).
- `php-indent-region'
Menu: PHP -> Indent -> Region
Keybinding: M-C-, This function is used to indent the selected region in the current buffer.
Description:
- `php-indent-buffer'
Menu: PHP -> Indent -> Buffer
Keybinding: C-c C-i C-b
Description: This function is used to indent the buffer.
|