logoalt Hacker News

Your hex editor should color-code bytes

587 pointsby tobrlast Tuesday at 9:52 AM153 commentsview on HN

Comments

wang_liyesterday at 3:00 PM

Color coding is a simplistic, half-assed way of doing semantic analysis. Go full assed and make an /etc/magic aware file decoder that decodes and highlights anomalies.

shmerlyesterday at 2:44 PM

Any good neovim plugin recommendation for hex editing?

TheRealPomaxyesterday at 3:53 PM

It'd be nicer if the hex coloring actually matched the "ascii" coloring as well. Orange on the left but green on the right does not help find things.

samzong_yesterday at 8:55 AM

[dead]

ralferooyesterday at 11:00 AM

I actually stopped reading after the intro because I fundamentally disagreed with its premise. The "find the C0" took me about 1/4 second with uncoloured. Looking at the coloured took my eyes about 3 seconds to recover from the colour overload, then I was scanning down and found the colours so distracting with the constant switching between orange, pink and yellows than it took me a total of about 5 seconds to scan down as far as the blue C0. Maybe if it was all uncoloured and blue just for that, I might have actually noticed it looking different earlier.

It's been a while since I used hexedit on Linux, but I think that highlighted search results in reverse colours, just like less does for text search. Personally, I'd prefer that to colours.

show 1 reply