Each feature page covers the meta string syntax, Go API, configuration options, and CSS variables for that feature. Features are engine-level toggles controlled at construction time, with per-block behavior adjustable through the meta string or the Options struct.
Syntax Highlighting
Language-aware code coloring powered by a pluggable highlighter.
Frames & Titles
Editor frames, terminal frames, title bars, and auto-detection from language.
Toolbar
Copy, fullscreen, wrap toggle, and theme toggle buttons.
Line Numbers
Display line numbers with configurable start number and auto-width gutter.
Line Markers
Highlight, insert, and delete lines with colored backgrounds and optional labeled ranges.
Inline Markers
Mark text and regex matches within lines using highlight, insertion, and deletion styles.
Focus Lines
Dim all lines except the ones that matter.
Word Wrap
Wrap long lines while keeping wrapped continuations aligned with the code's indentation.
Collapsible Sections
Collapse long code blocks or specific line ranges with threshold-based and range-based folding.
Code Groups
Tabbed code block interface with synced selection across groups.
Output Panel
Separate command output from syntax-highlighted source code in a toggleable panel.
Diff Highlighting
Unified diff with full syntax highlighting in the original language.
ANSI Rendering
Render terminal output with ANSI escape sequences as colored, styled code blocks.
Mermaid Pass-through
Pass Mermaid diagram source through unchanged for client-side rendering.
Links
Add clickable hyperlinks inside code blocks using annotation syntax.
Icons
File icons in the title bar and language badges with optional icon slots.
Content Exclusion
Prevent documentation-site prose styles from leaking into code blocks.
Terminal Comment Stripping
Remove shell comments from the copy payload while keeping them visible in the code.
Localization
Configure the locale and override UI strings for non-English deployments.