Last updated: 2026-01-19
| Feature | Description | Complexity |
|---|---|---|
| Line Annotations | Tooltips/callouts on specific lines | Medium |
| External File Loading | Load code from URL via src attribute |
Low |
| Line Linking | Deep link to lines via URL hash | Low |
| Feature | Description | Complexity |
|---|---|---|
| Step-Through Mode | Animate through highlighted lines | Medium |
| Keyboard Shortcuts | Copy, expand/collapse, tab navigation | Low |
| Terminal Mode | Special styling for shell commands | Medium |
| Editable Mode | Allow users to edit code directly | High |
| Feature | Description | Complexity |
|---|---|---|
| Print Styles | Optimized CSS for printing | Low |
| Language Auto-Detection | Detect language from content | Medium |
| Code Execution | Run JS/CSS with live preview | High |
| Tab Diffing | Visual diff between tabs | High |
| SSR Support | Pre-highlight at build time | High |
- Focus Mode: Dim/blur non-highlighted lines with
focus-modeattribute. Includes CSS custom properties--cb-focus-dim-opacityand--cb-focus-blurfor customization. - Additional Languages (partial): Added Python, Bash/Shell, TypeScript to highlight.js bundle
-
Live Site: https://profpowell.github.io/code-block/
-
npm Package: https://www.npmjs.com/package/@profpowell/code-block