How to code highlight yaml? #7243
-
Hello I cant find a way to get yaml highlighted in my documentation. i have a snippet like:
and mkdocs.yml containing:
it seems no highlighting is present |
Beta Was this translation helpful? Give feedback.
Answered by
kamilkrzyskow
Jun 4, 2024
Replies: 1 comment 1 reply
-
Hello @vekexasia,
read the docs again, you need to put them in markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.superfences https://www.mkdocs.org/user-guide/configuration/#markdown_extensions |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vekexasia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @vekexasia,
those are not features of the
theme
:read the docs again, you need to put them in
markdown_extensions
:https://www.mkdocs.org/user-guide/configuration/#markdown_extensions