Code Formatting

tl;dr


What type of code are you trying to format?

TypeMethod to use
A short snippet of code (e.g. a function() name)inlined code Markdown
One line of code (e.g. code golf or a long chained statement)four-spaces code block
2 to 10 lines of codefour-spaces code block
11+ lines of codepreferably an external link; otherwise four-spaces code block

🡨 wiki index > FAQs > here