Skip to content

Highlight xxd, canonical hexdump, and HexViewer output - #3976

Open
Matei02355 wants to merge 2 commits into
sharkdp:masterfrom
Matei02355:hexdump-highlighting-1893-20260907
Open

Highlight xxd, canonical hexdump, and HexViewer output#3976
Matei02355 wants to merge 2 commits into
sharkdp:masterfrom
Matei02355:hexdump-highlighting-1893-20260907

Conversation

@Matei02355

Copy link
Copy Markdown
Contributor

Add the Hex Viewer syntax, adapted from facelessuser/HexViewer at commit 21b29f1882cc31e861f8898be41c719ae334256f, with its MIT license and source notice.

Support HexViewer's colon-delimited format, xxd byte groups, and canonical hexdump/Go hex.Dump output. Addresses, bytes, and ASCII columns use distinct standard scopes. Handle 64-bit offsets, repeated-line markers, short rows, embedded ASCII pipe characters, and recovery after malformed byte rows. Register .hxv, .xxd, and .hexdump without taking Intel HEX's .hex extension.

Validation: built a fresh syntax cache and checked three regression fixtures for exact text preservation, byte/address/ASCII colors, and recovery on the next line. Generated golden output with the repository's syntax-test options and checked the diff. HexViewer has over 214,000 Package Control downloads: https://packagecontrol.io/packages/HexViewer.

Fixes #1893.

@Matei02355
Matei02355 marked this pull request as ready for review September 7, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hexdump syntax

1 participant