Highlight.js
Created on January 28, 2025 — updated on November 7, 2026
Enable and Disable
- Default: false
theme:
highlightjs: false
Highlight.js with languages
theme:
highlightjs: true
hljs_languages:
- yaml
- python
Supported Languages
The theme supports syntax highlighting for multiple languages. Currently configured:
- YAML: For configuration files
- Python: For code examples and scripts
To add more languages, add them to the hljs_languages list in mkdocs.yml.
Remote loading
Highlight.js is loaded from cdnjs and unpkg. Setting
remote_assets: false disables it, see Fonts.