Earlier quoted context omitted.
> Everything should try do some basic syntax highlighting IMO. Interesting idea. So even syntax–highlighting natural language. Grammar highlighting, as it were. Prepositions, verbs, question marks, etc. An LLM could do it. Would it actually improve readability though? Seems likely!
I always enjoy to find people who think so drastically differently than myself. This sounds like an absolute nightmare to me and I would gauge my eyes out.
Your hex editor should color-code bytes
121–130 of 165 posts
Re: Your hex editor should color-code bytes
#122Earlier quoted context omitted.
Most color blind men are mildly color blind, plenty even go through their lives without noticing. Yours is on the much stronger side of the things.
A cousin of mine found out in his late 20's that he is red-green color blind.
Re: Your hex editor should color-code bytes
#123Re: Your hex editor should color-code bytes
#124When (rarely) using hex editors, one thing constantly comes to my mind: isn't base 16 arabic-roman numerals a bit awkward for "skimmable" overview? Color-coding indeed helps immensely there, but wouldn't simply letting bits and bops shine in eight bit clusters, resembling the "physical" shape of the eight-bit byte, be somewhat more readable? We even have characters in the Unicode for representing 0..255 variations, a…
By the way, the "octants" representation is unreadable to me and I have HN at like 140% zoom.
Re: Your hex editor should color-code bytes
#125I find it funny that I found the "single C0" pretty much instantly. I grant that the post largely has a point, mind you. But scanning for a needle in a haystack is something that you just don't often do? I am, of course, now very curious how often folks are using hex editors. And itching for an excuse to open a file that way. :D
Re: Your hex editor should color-code bytes
#126Any good neovim plugin recommendation for hex editing?
I came to scan for the same thing, basically. Is there a vi(m) hex editor? Hexmode https://github.com/fidian/hexmode or vim-deadc0de https://www.vim.org/scripts/script.php?script_id=6033 With decent color support? No.
Re: Your hex editor should color-code bytes
#127If you just want to see patterns, and don't actually need to see the values, you can go a step further and simply visualize the data as a bitmap, e.g. dd if=/dev/urandom bs=$[256*256] count=1 | display -size 256x256 -depth 8 GRAY:- You can do the same thing with audio, which makes different sorts of patterns obvious, e.g. dd if=/dev/urandom bs=$[256*256] count=1 | aplay -c 1
Re: Your hex editor should color-code bytes
#128Earlier quoted context omitted.
as far as i can tell, no it does not. it only desaturates 00 in particular. the other colors you see in the screenshots come from matched formats/patterns. it does not do direct coloring based on byte value.
Under the Edit menu select "Highlighting Rules..." and you can define or load any set of rules you can imagine.
How many rules would it take to create 256 different colors for 00..FF?
Re: Your hex editor should color-code bytes
#129Different colouring schemes for different types of data.
Re: Your hex editor should color-code bytes
#130Earlier quoted context omitted.
I'd recommend for every developer to get one or more colourblind friends. I have some, and regularly send them screenshots of what I'm working on to get feedback what they can see and what they can read/can't read. They've been absolutely invaluable for making sure their kind of people can't use my apps properly.
8% of the male population has some form of colorblindness (for women it’s around 0.5%). I have deuteranomaly colorblindness. If you search for images on the internet related to that type of colorblindness you’ll find representations of how we see color and how we see the world. It is not a fun condition to have, and leads to lots of problems in my everyday life. This blog post accidentally accentuated that issue, sin…