Support PHP code snippets without opening <?php tag
authorMatthias Schmidt <gravatronics@live.com>
Fri, 8 Jan 2021 10:35:32 +0000 (11:35 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 8 Jan 2021 10:35:32 +0000 (11:35 +0100)
mkdocs.yml

index 3734f892920cb252d216a2b1e72375759d14f1dc..125860f53563bf5a89d93776c98120c8c4eb131c 100644 (file)
@@ -88,7 +88,13 @@ markdown_extensions:
         toc_depth: 4
     - admonition
     - abbr
-    - pymdownx.highlight
+    - pymdownx.highlight:
+        extend_pygments_lang:
+            -
+                name: php
+                lang: php
+                options:
+                    startinline: true
     - pymdownx.superfences
     - pymdownx.snippets:
           base_path: "snippets/"