Fix yaml formatting in README.md
diff --git a/README.md b/README.md
index b96f44f..ca4eef7 100644
--- a/README.md
+++ b/README.md
@@ -13,12 +13,13 @@
 
 Add this to your `.pre-commit-config.yaml`
 
-    -   repo: https://github.com/pre-commit/pre-commit-hooks
-        rev: v2.5.0  # Use the ref you want to point at
-        hooks:
-        -   id: trailing-whitespace
-        # -   id: ...
-
+```yaml
+-   repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v2.5.0  # Use the ref you want to point at
+    hooks:
+    -   id: trailing-whitespace
+    # -   id: ...
+```
 
 ### Hooks available