You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements #154 - Add ability to highlight code differences within lines
Features:
- New diff mode toggle in controls panel
- Automatic detection of + and - prefixed lines
- Visual styling with green background for additions
- Visual styling with red background for deletions
- Diff markers (+ and -) displayed at line start
- URL state persistence for diff mode
- Works seamlessly with existing line highlighting
Technical implementation:
- Added diffModeAtom to store for state management
- Extended Shiki transformer to detect and style diff lines
- Created DiffModeControl component with Switch UI
- Added CSS styling for diff-add and diff-remove classes
- Integrated with existing code highlighting system
0 commit comments