FlexiCodeBlocks
Documentation menu
FlexiCodeBlocks renders code with syntax highlighting and line ranges. The block can show a fragment of a file without asking the writer to paste the whole file.
Why it exists
A code sample should look like code. Syntax highlighting helps readers find the part that matters, and line ranges keep a long file from taking over the page.
Where to use it
- Highlighted examples inside a guide.
- A focused fragment from a larger file.
- Code that needs a labelled source or language.
Where it fits
The extension is added to a Markdig pipeline through FlexiBlocks. It does not require a separate parser or a different file format. The source remains Markdown, and the block appears in the rendered document.
Related extensions
Browse the full extension catalogue or return to Getting Started.