Skip to content

Commit 883a7e0

Browse files
committed
Enable syntax highlighting for XML
1 parent c091887 commit 883a7e0

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ composer require --dev leviy/coding-standard
1616

1717
Create a `phpcs.xml` file containing the following bootstrap code sniffer configuration:
1818

19-
<?xml version="1.0"?>
20-
<ruleset name="LEVIY">
21-
<description>LEVIY</description>
22-
23-
<arg name="extensions" value="php" />
24-
25-
<file>./src</file>
26-
27-
<exclude-pattern>*Test.php</exclude-pattern>
28-
29-
<rule ref="LEVIY"/>
30-
</ruleset>
19+
```xml
20+
<?xml version="1.0"?>
21+
<ruleset name="LEVIY">
22+
<description>LEVIY</description>
23+
24+
<arg name="extensions" value="php" />
25+
26+
<file>./src</file>
27+
28+
<exclude-pattern>*Test.php</exclude-pattern>
29+
30+
<rule ref="LEVIY"/>
31+
</ruleset>
32+
```
3133

3234
An annotated `ruleset.xml` configuration file can be found [here](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml)
3335
where you can see the complete range of features and configuration options that can be used to modify the configuration to your project needs.

0 commit comments

Comments
 (0)