test codeblocks¶
For full documentation visit mkdocs.org.
Code Annotation Examples¶
Codeblocks¶
Some code
goes here.
Plain codeblock¶
A plain codeblock:
Code for a specific language¶
Some more code with the py
at the start:
With a title¶
bubble_sort.py
def bubble_sort(items):
for i in range(len(items)):
for j in range(len(items) - 1 - i):
if items[j] > items[j + 1]:
items[j], items[j + 1] = items[j + 1], items[j]
With line numbers¶
Highlighting lines¶
def bubble_sort(items):
for i in range(len(items)):
for j in range(len(items) - 1 - i):
if items[j] > items[j + 1]:
items[j], items[j + 1] = items[j + 1], items[j]
Icons and Emojs¶