code block

Formatted source text

A code block is a section of programming code displayed as a distinct visual unit, typically set apart by indentation, special formatting, or delimiters.

In documentation and online communication, code blocks preserve exact spacing and use monospace fonts to distinguish code from regular text: Wrap your example in a code block so the formatting stays intact.

In programming languages, a code block groups statements that execute together, often enclosed by braces or defined by indentation.

Related

fenced · nesting · bracket · encapsulation · line · markdown · multiline · procedure · statements · folding · colon · parameters · compile · programming · script · debug · comment · copy paste

Categories
Opposites
content format

code blockprose

Unversified language

body text · plain text · paragraph · body copy · expository writing

technical vs. natural language

code blockprose

Unversified language

natural language · plain English · narrative · everyday language

structured vs. unstructured content

code blockstream of consciousness

Narrative mimicking uninterrupted thought

Family

block, code, decode, blockage, blocks, blockade, coding, unblocked, blockbuster

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G