Live data from Hacker News

Your hex editor should color-code bytes

simonomi.dev

161–165 of 165 posts

Re: Your hex editor should color-code bytes

#161

Everything should try do some basic syntax highlighting IMO. Not too much, or it just becomes a sea of formatting that doesn't help at all. It is surprising how much difference just a little splash of colour can make if it isn't overdone. If possible, always include configuration options for the user though, so those with colour-blindness issues can tweak things to their needs, those who are just fussy can make the o…

If it isn't possible to turn any syntax highlighting an the like off, I will personally look for alternatives.

Not reconfigure individual settings, turn off syntax highlighting all together.

It's not about style for me, it's about readability.

Re: Your hex editor should color-code bytes

#162

Earlier quoted context omitted.

Would it actually improve readability though? Seems likely! Highly unlikely. https://www.linusakesson.net/programming/syntaxhighlighting/ (Look at what else he's done, if you doubt the value of his opinion.)

Well, he argued in this 19 years old essay that syntax highlighting for programming languages is bad. Which might have been somewhat defensible in 2007, but is obviously completely false in 2026 AD.

Care to give any other arguments besides "it's old and thus must be wrong"?

Re: Your hex editor should color-code bytes

#163
post #2

Emacs's hexl-mode does this, incidentally, though annoyingly by default it makes all faces the same color. I never understood why it defines the faces but then doesn't customize them.

A gist I (claude) threw together that maps this color scheme on hexl-mode. https://gist.github.com/zacharyasmith/bcfd91c9685c6cec30385a...
Post reply on HN