I am sorry, but everyone is getting syntax highlighting wrong

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A critical examination of syntax highlighting design principles argues that most color themes fail by highlighting too many elements, making nothing stand out. The author advocates for minimalist approaches using only 3-4 memorable colors, highlighting sparse elements like constants and top-level definitions rather than ubiquitous ones like variables and keywords. Key recommendations include making comments prominent instead of grey, using background colors for light themes, and prioritizing readability over uniform color distribution. The piece demonstrates these principles through the author's Alabaster theme, showing step-by-step how reducing visual noise improves code navigation and comprehension.

9m read timeFrom tonsky.me
Post cover image
Table of contents
I am sorry, but everyone is getting syntax highlighting wrongChristmas Lights DiarrheaEnough colors to rememberWhat should you highlight?Comments are importantTwo types of commentsLight or dark?Bold and italicsMyth of number-based perfectionLet’s design a color theme togetherShameless plug time
27 Comments

Sort: