Skip to content

Commit 5ce33ca

Browse files
committed
Update README
1 parent ffea5b2 commit 5ce33ca

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

php-align/README.md

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,84 @@
1-
# About #
1+
# php-align.el
2+
23
CAUTION!! this is still experimental.
34

4-
Support alignment (e.g. align, align-current) for PHP.
5+
Support alignment (e.g. `align`, `align-current`) for PHP.
56

67
Put this file into your load-path.and the following code into your ~/.emacs
78

8-
<code>
9+
```el
910
(add-hook 'php-mode-hook
1011
(lambda ()
1112
(require 'php-align)
1213
(php-align-setup)))
13-
</code>
14+
```
1415

15-
# Examples #
16+
## Examples
1617

17-
## 1. ##
18+
### 1.
1819

19-
### before ###
20+
#### before
2021

21-
$foo = "string"; // M-x arign-current
22+
$foo = "string"; // M-x align-current
2223
$looooooooong = 1; //
2324

24-
### after ###
25+
#### after
2526

26-
$foo = "string"; // M-x arign-current
27+
$foo = "string"; // M-x align-current
2728
$looooooooong = 1; //
2829

29-
## 2. ##
30+
### 2.
3031

31-
### before ###
32+
#### before
3233

3334
"$foo = 1";
34-
$foo = "string"; // M-x arign-current
35+
$foo = "string"; // M-x align-current
3536
$looooooooong = 1; //
3637

3738
$bar = 2; //
3839

39-
### after ###
40+
#### after
4041

4142
"$foo = 1";
42-
$foo = "string"; // M-x arign-current
43+
$foo = "string"; // M-x align-current
4344
$looooooooong = 1; //
4445

4546
$bar = 2; //
4647

47-
## 3. ##
48+
### 3.
49+
50+
#### before
4851

49-
### before ###
5052
$variable = 1;
5153
$vars = array(); // M-x align-current
5254
if ($variable == $vars) {
5355

5456
}
5557

56-
### after ###
58+
#### after
59+
5760
$variable = 1;
5861
$vars = array(); // M-x align-current
5962
if ($variable == $vars) {
6063

6164
}
6265

63-
## 4. ##
66+
### 4.
67+
68+
#### before
6469

65-
### before ###
6670
$vars = array(
6771
1, 2, 3,
6872
4, 5, 6,
6973
7, 8, 9,
7074
10, 11, 12, // C-u M-x align-current
7175
);
7276

73-
### after ###
77+
#### after
78+
7479
$vars = array(
7580
1, 2, 3,
7681
4, 5, 6,
7782
7, 8, 9,
7883
10, 11, 12, // C-u M-x align-current
79-
);
84+
);

0 commit comments

Comments
 (0)