Skip to content

Code Examples

Code annotation Examples

Codeblocks

Some code goes here.

Plain codeblock

A plain codeblock:

Some code here
def my_function():
    print("Hello, world!")

Code for a specific language

Some more code with the py at the start:

def my_function():
    print("Hello, world!")

With title

my_function.py
def my_function():
    print("Hello, world!")

With title and line numbers

my_function.py
def my_function():
    print("Hello, world!")

With line numbers and line highlighting

my_function.py
def my_function():
    print("Hello, world!")

Icons and Emojis

😄