Code Blocks¶
Extensions: pymdownx.highlight, pymdownx.superfences, pymdownx.inlinehilite
Features: content.code.copy, content.code.annotate
Syntax Highlighting¶
Line Numbers and Highlighted Lines¶
Code Annotations¶
- The name displayed in the browser tab and header.
- Material for MkDocs provides the theme engine.
- Bifrost supports
teal,purple,pink, andyellow.
Inline Code Highlighting¶
- Python:
range(10)generates numbers 0 through 9 - JavaScript:
console.log("hello")writes to the console - Bash:
echo $PATHprints the PATH variable