Fair points. Those both highlight syntax with type choices instead of color, so you're still getting a lot of the benefit but in black-and-white.
I think I'm personally more likely to quickly suss the difference between black text and yellow text than between regular and italics, so I wouldn't personally use that approach. I appreciate that there are choices, though!
1: https://pygments.org/styles/
2: https://github.com/rougier/nano-emacs