Calmcode - mkdocs: codehilite

CodeHilite

1 2 3 4 5 6 7 8 9

First we need to install a dependency.

pip install pygments

The contents of mkdocs.yml now are listed below.

site_name: My Docs
theme:
  name: material
  palette:
    primary: purple
    accent: cyan
  font:
    text: Ubuntu
  logo:
    icon: cloud
markdown_extensions:
  - codehilite:
      linennums: true