From 172e44b899a4bbbcdd04bb74fa8be6b177316b19 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sun, 8 Dec 2024 08:05:13 +0100 Subject: [PATCH] Add syntax highlighter --- mkdocs.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 2e50ea64..e0c3220a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -25,10 +25,24 @@ theme: - navigation.footer - navigation.sections - navigation.expand + - content.code.copy extra_css: - assets/extra.css - assets/debugbar.css extra_javascript: - assets/debugbar.js markdown_extensions: - - admonition \ No newline at end of file + - admonition + - pymdownx.highlight: + use_pygments: true + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + extend_pygments_lang: + - name: php + lang: php + options: + startinline: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences \ No newline at end of file