Skip to content

Commit 844a16f

Browse files
committed
Documentation Updates
1 parent 7d0bf26 commit 844a16f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,22 @@ function foo($attributes, $content) {
7070
// return
7171
return '<span style="color:'.$color.'">'.$content.'</span>';
7272
}
73-
```php
74-
Add shortcode {foo color="red"}
7573
```
76-
Shortcode::add('foo', 'foo');
74+
75+
Add shortcode {foo color="red"}
7776
```php
78-
Usage:
77+
Shortcode::add('foo', 'foo');
7978
```
79+
80+
Usage:
81+
```php
8082
{foo color="red"}Hello World{/foo}
81-
```html
83+
```
84+
8285
Result:
86+
```html
8387
<span style="color: red">Hello World</span>
88+
```
8489

8590
### Check if a shortcode has been registered.
8691
```php

0 commit comments

Comments
 (0)