sharkdp / hexyl

A command-line hex viewer
Apache License 2.0
9.15k stars 230 forks source link

Bold output similar to xxd #227

Open v1gnesh opened 2 months ago

v1gnesh commented 2 months ago

In xxd version 2024-05-10 (and probably beginning from an earlier version), the bytes are shown in bold and 00 are duller, making content stand out. EDIT: Colour in xxd output probably came with vim 9.1 -> https://www.vim.org/vim-9.1-released.php

Can you please add similar differentiation to hexyl. Details here.

sharkdp commented 2 months ago

Sounds good. Let's maybe add this as a --emphasize or --bold option that takes a value. --emphasize=nothing would be the current setting. --emphasize=non-zero would be what you are suggesting. But other options could be added later.