Search code examples
pythonyamlmarkdowndocumentationmkdocs

How to highlight code block with material mkdocs package?


I am using material mkdocs package and I want to to highlight lines 7-31 of a JSON code block and I am not sure how to do it. I been have looked through the documentation and have tried many things for a while and nothing has solved my problem.

Does anyone know how to solve this simple problem?


Solution

  • the solution was very simple yet not documented anywhere

    hl_lines="7-31"