An error occurred while saving the commentMatthew Fearrington commented
I'm writing a wiki for my job and I had the same question. There is this monospace thing which functions very close to a code snippet, with overflow scrolling and stuff.
At the top of the wiki in teams click the Paragraph dropdown and change it to Monospace. Attached is a screenshot.
Really hope this helps someone out!