| 01 - Indenting and Line Length |
| Mambo Coding Standards | |
| Mar 03, 2007 at 10:36 AM | |
|
Use an indent of 4 spaces, with no tabs. If you use Emacs to edit PEAR
code, you should set indent-tabs-mode to nil. Here is an example mode
hook that will set up Emacs according to these guidelines (you will
need to ensure that it is called when you are editing PHP files):
Here are vim rules for the same thing:
It is recommended that you break lines at approximately 75-85
characters. Note that if the line spans longer than 80 characters each
element should be broken into its own line, and indented one level: |
|
| Next> |
|---|
