Skip to content

Commit 1e6b3e5

Browse files
committed
Code blocks should now be syntax highlighted as PHP
1 parent a76c5c9 commit 1e6b3e5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

100644100755
+9-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ You can either download a release and `require_once('Slacker.php')`, or you can
66

77
## Usage
88
### Incoming webhooks and commands
9-
```
9+
```php
10+
<?php
11+
1012
$token = "MY_TOKEN';
1113
$trigger = 'MY_TRIGGER';
1214
$command = 'COMMAND';
@@ -35,7 +37,9 @@ if ($slack->isCommand() && ($slack->command() == $command)) {
3537
```
3638
### Adding attachments
3739
Inject a `Slacker\SlackAttachment` to the response with `SlackResponse->addAttachment($att)`.
38-
```
40+
```php
41+
<?php
42+
3943
$att = new Slacker\SlackAttachment();
4044
$att->setColor('good');
4145
$att->setTitle('Everything is fine');
@@ -44,7 +48,9 @@ $att->markdown(true, true, false);
4448
$someResponse->addAttachment($att);
4549
```
4650
### Incoming webhooks
47-
```
51+
```php
52+
<?php
53+
4854
$channel = 'CHANNEL';
4955
$username = 'USERNAME';
5056
$webhookUrl = 'GET YOUR OWN TOKEN';

0 commit comments

Comments
 (0)