Standard and Code Blocks#
Standard Block#
Indented block (old way!)
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
Triple ticks (new way!)
Code Block#
Highlight in an inline block range() is used to generate a sequence of numbers
Some code with the file.py or py extension at the start:
My cool header
"""some_file.py"""
import tensorflow as tf
def highlighted_block():
self.destruct()
def not_highlighted():
pass
def highlighted_line():
pass
with code annotation
I'm a code annotation! I can contain
code, formatted text, images, ... basically anything that can be written in Markdown.
- Look ma, less line noise!
- Look ma, more noise!
Tab-Linked code blocks#
C code linked tab
C++ code linked tab