Skip to content

Commit b0711d7

Browse files
committed
Use fence notation
1 parent cb8aa16 commit b0711d7

File tree

1 file changed

+48
-32
lines changed

1 file changed

+48
-32
lines changed

php-align/README.md

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,66 +19,82 @@ Put this file into your load-path.and the following code into your ~/.emacs
1919

2020
#### before
2121

22-
$foo = "string"; // M-x align-current
23-
$looooooooong = 1; //
22+
```php
23+
$foo = "string"; // M-x align-current
24+
$looooooooong = 1; //
25+
```
2426

2527
#### after
2628

27-
$foo = "string"; // M-x align-current
28-
$looooooooong = 1; //
29+
```php
30+
$foo = "string"; // M-x align-current
31+
$looooooooong = 1; //
32+
```
2933

3034
### 2.
3135

3236
#### before
3337

34-
"$foo = 1";
35-
$foo = "string"; // M-x align-current
36-
$looooooooong = 1; //
38+
```php
39+
"$foo = 1";
40+
$foo = "string"; // M-x align-current
41+
$looooooooong = 1; //
3742

38-
$bar = 2; //
43+
$bar = 2; //
44+
```
3945

4046
#### after
4147

42-
"$foo = 1";
43-
$foo = "string"; // M-x align-current
44-
$looooooooong = 1; //
48+
```php
49+
"$foo = 1";
50+
$foo = "string"; // M-x align-current
51+
$looooooooong = 1; //
4552

46-
$bar = 2; //
53+
$bar = 2; //
54+
```
4755

4856
### 3.
4957

5058
#### before
5159

52-
$variable = 1;
53-
$vars = array(); // M-x align-current
54-
if ($variable == $vars) {
60+
```php
61+
$variable = 1;
62+
$vars = array(); // M-x align-current
63+
if ($variable == $vars) {
5564

56-
}
65+
}
66+
```
5767

5868
#### after
5969

60-
$variable = 1;
61-
$vars = array(); // M-x align-current
62-
if ($variable == $vars) {
70+
```php
71+
$variable = 1;
72+
$vars = array(); // M-x align-current
73+
if ($variable == $vars) {
6374

64-
}
75+
}
76+
```
6577

6678
### 4.
6779

6880
#### before
6981

70-
$vars = array(
71-
1, 2, 3,
72-
4, 5, 6,
73-
7, 8, 9,
74-
10, 11, 12, // C-u M-x align-current
75-
);
82+
```php
83+
$vars = array(
84+
1, 2, 3,
85+
4, 5, 6,
86+
7, 8, 9,
87+
10, 11, 12, // C-u M-x align-current
88+
);
89+
```
7690

7791
#### after
7892

79-
$vars = array(
80-
1, 2, 3,
81-
4, 5, 6,
82-
7, 8, 9,
83-
10, 11, 12, // C-u M-x align-current
84-
);
93+
```php
94+
$vars = array(
95+
1, 2, 3,
96+
4, 5, 6,
97+
7, 8, 9,
98+
10, 11, 12, // C-u M-x align-current
99+
);
100+
```

0 commit comments

Comments
 (0)