Urgent.News

What's breaking now, across thousands of outlets.

Tech

Highlighting My Code Based on How Much I Care

In the article by Nikita Prokopov, titled "Everyone is getting syntax highlighting wrong," the writer expresses their thoughts on the topic. Initially, they admit to never really considering how their code is highlighted, as they have used the default VSCode Dark Theme for a long time. Nikita points out that even with this familiar theme, they often couldn't remember the colors used for class names, indicating that the theme might not be functional.

The article discusses the idea of having an absolute minimum of colors in a theme, so that they all fit in one's head and are easily distinguishable. Nikita suggests that this could make the theme more functional and user-friendly. However, the writer acknowledges that creating a light theme with fewer colors can be challenging, especially when trying to achieve contrast against a white background.

Nikita concludes that while color highlighting is generally beneficial, there might be a way to achieve this without relying solely on color contrast. They propose experimenting with tones and shades to create a visually appealing and functional syntax highlighting scheme. Ultimately, the writer emphasizes the importance of balancing between standing out and blending in, tailoring the syntax highlighting to emphasize important elements over purely syntactical ones.

Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at hank.bond →

More in Tech

More from Friday 28 August →