A web app for comparing two text blocks with character and word-level diff highlighting.
Live: https://0-nira-0.github.io/text-diff-tool/
- React 18 + TypeScript
- Vite 5
- CSS Modules
- Myers diff algorithm (custom implementation, no external libraries)
- Character and word level diff
- Split and unified view modes
- Synchronized scrolling in split mode
- Ignore whitespace option
- Drag and drop file input
- Export diff as plain text
- Print-friendly view
- Local storage persistence
- Keyboard shortcuts:
Ctrl+Enter— run diff,F3/Shift+F3— search navigation
npm install
npm run dev
npm run build
Output goes to docs/ — ready for GitHub Pages (deploy from branch, /docs folder).