Code
1 min readStableBeginner
Every code-related feature lives here. Each page shows a quick default, a mixed example, and an advanced example.
Code blocks
Syntax highlighting for 65+ languages with line numbers and copy.
Line highlighting
Emphasize lines with {1,3-5} syntax.
Line numbers
Automatic numbering with configurable start.
File title
Show a file path header above a block.
Diff highlighting
Inline add/remove markers.
Word highlighting
Highlight a pattern with /pattern/.
Collapsible code
Collapse long blocks with expandable.
Code groups
Tabbed blocks for package managers and languages.
Was this page helpful?