iode.write_code_block

iode.write_code_block(text: str, level: int = 1)[source]

Start a code block of the given level or end the block if level < 0

Parameters:
text: str

Text to print in the code block.

level: int, optional

Level of the code block. 1 is the highest level. Defaults to 1.