3 ms·
I havent used syntax highlighting in 8 years or so (global-font-lock-mode 0) highly recommend it, if you could try. for example this code[1]: // the code
by throwaway47292 5y ago
I havent used syntax highlighting in 8 years or so (global-font-lock-mode 0)
highly recommend it, if you could try.
for example this code[1]:
// the code will run twice
bool panic = true
while (true) {
panic = !panic;
if (panic) break;
}
I can argue is easier to read without highlighting.
I think colors break the flow of code in unintended ways, and mistreat comments (either overvalue with some pink color or undervalue with some toned down gray), and almost all themes make keywords extremely important.
[1] https://github.com/jackdoe/programming-for-kids/issues/3#issuecomment-886025230 https://github.com/jackdoe/programming-for-kids/issues/3#iss...
- maccard 5y agoThat code is even easier to read with semantic highlighting than "basic" syntax highlighting. That said, syntax highlighting definitely helps when handling embedded strings, differentiating between value types, figuring out if something is a macro, function or global variable (which is important, as in a language like C++, the behaviour of `foo(x++)` depends on which of the above it is) Highlighting doesn't tell you what's important, it tells you what's different. You should find a scheme that roughly weighs what's important to you;
- packetlost 5y agoI've tried the no highlighting approach. It doesn't work for me. Glad it works for you, but I'll take my candy colors over nothing any day.