anishshobithps / anishshobithps/snipshot
Line highlighting, focus/dim, and word highlight
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Add line-level emphasis using Monaco's built-in **decorations** (`createDecorationsCollection` / `deltaDecorations`) — no extra rendering engine needed:
- `--highlight 3,5-8` — emphasized line backgrounds
- `--focus 10-20` — dim everything else (inverse decorations)
- `--highlight-word ` — word/token highlight via find matches or decorations
- [ ] Highlight ranges via decorations
- [ ] Focus / dim
- [ ] Word highlight
Builds on Monaco staying local (#6).
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start with the Monaco-local approach described in issue #6, then review createDecorationsCollection and deltaDecorations. Implement the three requested modes: line ranges, inverse focus decorations, and word/token highlighting. Done means all three checklist items work for the --highlight, --focus, and --highlight-word options.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100