|
33 | 33 | ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
34 | 34 | ;; 02110-1301, USA. |
35 | 35 |
|
36 | | -;;; Usage |
| 36 | +;;; Commentary: |
| 37 | + |
| 38 | +;; PHP Mode is a major mode for editing PHP source code. It's an |
| 39 | +;; extension of C mode; thus it inherits all C mode's navigation |
| 40 | +;; functionality. But it colors according to the PHP grammar and |
| 41 | +;; indents according to the PEAR coding guidelines. It also includes |
| 42 | +;; a couple handy IDE-type features such as documentation search and a |
| 43 | +;; source and class browser. |
| 44 | + |
| 45 | +;; ## Usage |
37 | 46 |
|
38 | 47 | ;; Put this file in your Emacs lisp path (eg. site-lisp) and add to |
39 | 48 | ;; your .emacs file: |
40 | | -;; |
| 49 | + |
41 | 50 | ;; (require 'php-mode) |
42 | 51 |
|
43 | 52 | ;; To use abbrev-mode, add lines like this: |
| 53 | + |
44 | 54 | ;; (add-hook 'php-mode-hook |
45 | 55 | ;; '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends"))) |
46 | 56 |
|
47 | 57 | ;; To make php-mode compatible with html-mode, see http://php-mode.sf.net |
48 | 58 |
|
49 | 59 | ;; Many options available under Help:Customize |
50 | 60 | ;; Options specific to php-mode are in |
51 | | -;; Programming/Languages/Php |
| 61 | +;; Programming/Languages/PHP |
52 | 62 | ;; Since it inherits much functionality from c-mode, look there too |
53 | 63 | ;; Programming/Languages/C |
54 | 64 |
|
55 | | -;;; Commentary: |
56 | | - |
57 | | -;; PHP Mode is a major mode for editing PHP source code. It's an |
58 | | -;; extension of C mode; thus it inherits all C mode's navigation |
59 | | -;; functionality. But it colors according to the PHP grammar and |
60 | | -;; indents according to the PEAR coding guidelines. It also includes |
61 | | -;; a couple handy IDE-type features such as documentation search and a |
62 | | -;; source and class browser. |
63 | | - |
64 | 65 | ;;; Code: |
65 | 66 |
|
66 | 67 | (require 'cc-mode) |
|
0 commit comments