HN Hall of Fame Weekly email

A case against syntax highlighting (2007)

www.linusakesson.net Essays & writing Essays & articles Software engineering Candidate
Screenshot of www.linusakesson.net captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 2 of them.

submissions
5
submitters
5
observed span
2014–2021
peak thread · 88 comments
29 pts
latest 20+ return · 2021-09-11
25 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

>Well, no. One of the basic rules of thumb in typography is that, when writing a piece of text, you should choose one typeface and stick to it. Likewise, a splash of colour may grab the reader's attention, but it will inevitably decrease the legibility of the text. The natural flow of the text is broken, and it takes more brain effort to piece together the individual letters into words and semantics. Cognitively, the reading process becomes slightly less automatic…

This hardly makes a case at all. Only one section in the middle is actually dedicated to why syntax highlight is bad and it boils down to a baseless assertion about "biasing" the developer's mind toward syntax. I would counter that assisting developers in thinking about how code will be interpreted or compiled rather than bytes of text is closer to the semantic meaning than without. There's also a comparison to highlight syntax in fiction, which is absurd for many…

runaway·25-point thread·

> It encourages you to skim through code rather than understand it. Personally I find it allows me to skim through code so I can understand it. I'm not generally interested in syntactic overhead. I care about the names and structures of things. Occasionally I care about the type of things, but less often than I care about what I can actually do to that thing.

"Conclusions[...] Syntax highlighting doesn't improve legibility." Yes. And the author completely missed the point of syntax highlighting: it's not useful to read the code, it's useful to WRITE the code! It's when writing it that you want some early syntactic (and slight semantic) feedback. If you type a keyword and it highlight like a function name, you get a hint that you have a typo in your keyword. If you type a function name and it highlight as a type…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
62

reference only — not used in Hall rules or ranking

Total comments
171

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2014-03-21A case against syntax highlighting (2007)ingve11
2014-09-03A case against syntax highlightingjwdunne33
2014-11-14A case against syntax highlighting (2007)lelf42
2016-06-07A case against syntax highlighting (2007)First breakout · Best threadjb19912977
2021-09-11A case against syntax highlighting (2007)Latest 20+ point returnsvenfaw2588