Skip to content

Commit 11526f7

Browse files
committed
docs: update usage, add screenshot
1 parent 6087842 commit 11526f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ use Ahc\CliSyntax\Highlighter;
1919

2020
// PHP code
2121
echo new Highlighter('<?php echo "Hello world!";');
22+
// OR
23+
echo (new Highlighter)->highlight('<?php echo "Hello world!";');
2224

2325
// PHP file
2426
echo Highlighter::for('/path/to/file.php');
2527
```
2628

29+
See [example](./example.php). Here's the screenshot too:
30+
31+
![adhocore/cli-syntax](https://imgur.com/wcNp3qJ.png)
2732

2833
## Contributing
2934

0 commit comments

Comments
 (0)