FossilRepo

Syntax highlighting in diffs

Open

dd0ae61cdb6a7b7… · opened 4 days, 12 hours ago

Type
Feature_Request
Priority
Minor
Severity
Resolution
Subsystem
Created
April 7, 2026 1:41 a.m.

Description

Diff lines are plain monospace text with no language-aware coloring. Should use highlight.js on diff content for readability.

Acceptance Criteria

  • [ ] Detect language from file extension
  • [ ] Apply highlight.js to diff line content (not the +/- prefix)
  • [ ] Works in both unified and split modes
  • [ ] Doesn't break diff line coloring (add=green, del=red)

Priority: P2 — Polish

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button