3 ms·
Similarly, I made a custom colour scheme that only highlights comments and TODOs: https://imgur.com/zp4GarX https://imgur.com/zp4GarX I feel like my ability to
by spatulon 7y ago
Similarly, I made a custom colour scheme that only highlights comments and TODOs: https://imgur.com/zp4GarX https://imgur.com/zp4GarX
I feel like my ability to read code improved from disabling any other highlighting, but I have no real way of testing whether that's true.
- Narishma 7y agoIs that 0x1_0000 a typo? Shouldn't it be 0x1_000 or 0x10_000 instead?
- 1_player 7y agoIt makes sense to group hexadecimal numbers by two (nibbles). In this case 0x1_0000 is the least-significant bit of the third byte. If that's a bit flag encoded in a 32bit value, I also like 0x0001_0000 for clarity.
- spatulon 7y agoNote that it's not my code, nor am I familiar with it. I just had it lying around on my disk to try out Alacritty. Here's the line in question: https://github.com/jwilm/alacritty/blob/master/alacritty_terminal/src/renderer/mod.rs#L499 https://github.com/jwilm/alacritty/blob/master/alacritty_ter... I agree 0x1_000 or 0x10_000 would make more sense, but it doesn't look like the actual value used is hugely significant.