HexView now supports lightweight annotations and side-by-side diff highlighting.
The control exposes:
AnnotationsAnnotationMovedAnnotations are rendered as highlighted byte ranges with optional labels.
Use HexAnnotationStorage to persist them:
HexAnnotationStorage.Save(path, annotations);
var loaded = HexAnnotationStorage.Load(path);
The sample viewer adds:
Ctrl+drag repositioning inside the controlThe diff sample computes a sorted set of changed offsets, then assigns:
HexViewControl1.DifferencesProvider = (start, end) => _diffOffsets.GetViewBetween(start, end);
HexViewControl2.DifferencesProvider = (start, end) => _diffOffsets.GetViewBetween(start, end);
That lets both controls highlight the same changed bytes while keeping their own overlay state.
The diff sample also shows a higher-level behavior: edits in one view can be mirrored into the other overlay before recomputing diff offsets.