# Code

> Code blocks, install commands and terminal output.

- [Code Block](https://assembli-rho.vercel.app/components/code-block.md): Tabbed code window with line numbers, highlighted lines, a lightweight built-in syntax highlighter (no dependency) and a copy button that confirms. Light and dark friendly.
- [Diff View](https://assembli-rho.vercel.app/components/diff-view.md): Unified code diff computed from two strings: line numbers on both sides, tinted additions and removals, a +/- summary, and unchanged stretches folded into expandable hunks.
- [Install Command](https://assembli-rho.vercel.app/components/install-command.md): Package-manager switcher for install snippets: npm, pnpm, yarn and bun tabs with a sliding indicator, the command swapping in place, and a copy button that confirms.
- [Terminal Replay](https://assembli-rho.vercel.app/components/terminal-replay.md): A terminal window that plays a scripted session: commands type out character by character, output lines stream in, then it offers a replay. Starts when scrolled into view; instant for reduced motion.

Back to [all components](https://assembli-rho.vercel.app/components.md).
