2 ms·
Off topic rant: can anyone explain why the syntax highlighting of Zig on Github turns every single word brown? I know they incorporated tree sitter, and for som
by sph 3y ago
Off topic rant: can anyone explain why the syntax highlighting of Zig on Github turns every single word brown? I know they incorporated tree sitter, and for some reason the default syntax rules really dislike coloring identifiers in black.
Look at the code example in this project README or its source.
For a long time something bugged me about the language whenever I glanced at it, and it's all because Github and its stupid syntax coloring. I hate the rainbow vomit approach to syntax highlighting that's all the vogue these days. It should be a sprinkle on top, not the main course.
- naikrovek 3y ago> every single word I’m not seeing that.
- LoganDark 3y agoA better name for the color would probably be orange, at least in dark theme. Look at... variable names, field accesses, basically literally everything that is not a keyword or symbol. It's not all supposed to be colored. There's no plain white text anywhere!
- 38 3y agoyeah its awful. I fixed like this: /* ==userstyle== @name GitHub @namespace 3052 @version 2023.10.27 ==/userstyle== */ @-moz-document domain("github.com") { .pl-v { color: var(--color-fg-default) } }