From 5e64423a88fbc9e4bca32244da6519037bba6b5c Mon Sep 17 00:00:00 2001
From: Sean Madsen <sean@seanmadsen.com>
Date: Sun, 12 Feb 2017 19:10:03 -0700
Subject: [PATCH] enabling PHP syntax highlighting by passing custom options to
 the pygments PHP lexer, now that this is possbile with pymdown-extensions 2.0

---
 mkdocs.yml | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/mkdocs.yml b/mkdocs.yml
index 8e5b6fdb..ccccb433 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -7,10 +7,19 @@ markdown_extensions:
   - attr_list
   - admonition
   - def_list
-  - codehilite(guess_lang=false)
-  - toc(permalink=true)
-  - pymdownx.superfences
-  - pymdownx.inlinehilite
+  - toc:
+      permalink: true
+  - pymdownx.highlight:
+      guess_lang: true
+      extend_pygments_lang:
+        - name: php
+          lang: php
+          options:
+            startinline: true
+  - pymdownx.superfences:
+      css_class: codehilite
+  - pymdownx.inlinehilite:
+      css_class: codehilite
   - pymdownx.tilde
   - pymdownx.betterem
   - pymdownx.mark
-- 
GitLab