Let's get started...
eeintech Wagtail May 5, 2020 (Updated on Dec. 12, 2022)
python
wagtail
Let's compare two popular Wagtail code blocks:
# This is python code
import random
first = bool(random.getrandbits(1))
print('Welcome', end='')
if first:
pass
else:
print(' back')
# This is python code
import random
first = bool(random.getrandbits(1))
print('Welcome', end='')
if first:
pass
else:
print(' back')
My preference goes to wagtailcodeblock as it shows the line numbers.