Does Reading Text Like Code Work? What the Research Says
In early December 2026 a developer with ADHD, @natemcgrady, posted on X that big paragraphs are hard to read, while hundreds of lines of code are easy. Within hours @oynickj had built a quick tool that reformats pasted text into code layout, and @kyanyang_ shared it far and wide.
A lot of people replied that they felt the same. The obvious next question is whether the format does anything measurable. There is research on something very close to it, and the answer is more mixed than the timeline suggests.
What reading text like code actually means
You take a block of prose and lay it out the way an editor lays out a program. Each clause gets its own line, sub-clauses are indented under the clause they belong to, and the words that steer a sentence (and, but, because, not) get a colour. The words stay exactly the same.
You can try it on your own text with our free read text like code converter. It runs in your browser and nothing you paste is uploaded.
The idea of cutting text at phrase boundaries and cascading it down the page is not new. The best-studied version has a name: visual-syntactic text formatting, or VSTF.
Visual syntactic text formatting is the closest cousin
VSTF was developed by Randall Walker, who created a product called Live Ink. Software parses each sentence, breaks it at phrase and clause boundaries, and stacks the pieces in a cascade so the shape of the sentence shows on the page. Tate and colleagues describe it as fitting each row of text into one or two eye fixations, using the cascade to show hierarchy, and colouring active verbs.
That is very close to what a code-style reformatter does. If anything is going to tell us whether "read text like code" works, it is the VSTF literature.
The early trials looked very good
The first major paper is a 2007 conference paper by Walker and colleagues, "Visual-Syntactic Text Formatting: Theoretical Basis and Empirical Evidence for Impact on Human Reading". It describes yearlong randomised trials in a US school district, using electronic history textbooks with 10th and 11th grade students. Reading sessions ran for 25 minutes, twice a week.
The abstract reports that VSTF students beat controls on standardised reading tests, with effect sizes from 0.41 to 0.69 standard deviations. In the data tables, the 10th grade group had 84 students and the 11th grade group had 60.
Those are big numbers for a reading intervention. Two things temper them.
The sample was small, a single district and a few teachers. And several of the authors worked for Walker Reading Technologies, the company that sells the format. That does not make the results wrong, but it is the kind of link a careful reader wants to know about before leaning on them.
A much larger independent trial found a much smaller effect
In 2019 a University of California, Irvine team (Tate, Collins, Xu, Yau, Krishnan, Prado, Farkas and Warschauer) published a bigger test in Scientific Studies of Reading. It was a within-teacher randomised trial, meaning each teacher taught both VSTF and standard-format classes. According to the What Works Clearinghouse record, it covered 4,266 students in grades 7 and 8 in an urban California district.
Students read VSTF text for an average of 44 minutes a week for a school year. The intended dose was 50 minutes, but teachers reported using 44.
Here is what the authors found:
| Outcome | Result |
|---|---|
| Overall English Language Arts score | Small gain, effect size 0.05 (p < .05) |
| Writing assessment | Small gain, effect size 0.07 (p < .01) |
| Gifted, special education, English learner groups | No difference in effect between groups |
| Students at or near grade level | Modest benefit |
The authors thank Randall Walker for creating Live Ink and report no conflict of interest. An effect size of 0.05 is tiny. It is real enough to register in a trial this size, but nobody would notice it in a single classroom.
The What Works Clearinghouse rated the study as meeting its standards with reservations. Its own summary lists the reading comprehension subtest as an indeterminate effect, with the intervention and comparison groups roughly level. So the headline is a small gain on the overall English score, and no clear gain on the reading comprehension part specifically.
Who might benefit, and who probably will not
The most useful finding is the subgroup one. The authors suggest the format helped students who were near or at grade level, probably because they could read the texts and had room to benefit from clearer structure. Students far below grade level may need more than a layout change.
Note what was not tested. The participants were typically developing and English-learning teenagers reading school texts on school devices. Nobody in these trials was recruited as an adult with ADHD, or as a developer, or as a person reading a long article on a phone.
That is the gap between the viral thread and the evidence. The format helps a few people a little in a big trial, and the people the thread was about have not been studied with it yet.
What phrase-cued text does for younger readers
There is a related, older line of work on phrase-cued text. LeVasseur, Macaruso, Palumbo and Shankweiler (2006) asked children aged 7, 8 and 9 to read passages aloud under two formats, one that kept major syntactic boundaries intact and one that did not. Reading under the structure-preserving format was rated as more fluent, but the format had no effect on reading rate in words correct per minute.
We only read the abstract of that paper, so treat it as a pointer, not a settled result. It does fit a pattern in this area: layouts that follow the structure of a sentence tend to make reading sound or feel smoother, and measurable speed gains are harder to find.
Why short lines should help in theory
The theoretical case rests on working memory. Cowan's 2001 review in Behavioral and Brain Sciences argues that people can hold about three to five chunks of information in mind at once, a lower figure than the older "seven" rule of thumb.
A long sentence with several nested clauses can ask you to keep a subject in mind while three more ideas pile up before the verb arrives. Breaking it into one clause per line gives you the pieces one at a time.
Cowan studied memory, not reading, so this is a reasoned link and not a tested one. It is also the same argument Walker's team makes for VSTF, which is worth knowing when you weigh how much it adds.
An honest verdict on reading text like code
Here is how we would sum up the evidence.
- Plausible: the format matches sound ideas about sentence structure and working memory.
- Mixed: a small early trial from the format's developers found large gains, and a much larger later trial found small ones.
- Narrow: the better evidence is for students near grade level reading school texts, not for adults with ADHD.
- Unproven for the viral use case: nobody has tested code-style prose with developers or ADHD readers.
None of that says it will not work for you. It says the claim that it works is stronger than the proof, and anyone selling it as a fix is ahead of the science.
The cost of trying it is close to zero. Paste something you have been putting off into the text to code converter and see whether you get through it more easily. If you want to compare approaches, the bionic reading converter changes the words instead of the layout, and there is a plain explainer on bionic reading too.
If a wall of text is the problem, you can also remove the wall. The RSVP reader shows one word at a time at a speed you pick. And if the real trouble is remembering what you read, our guide to reading comprehension covers methods that have more evidence behind them.
Sources
- Tate et al. (2019), "Visual-Syntactic Text Format: Improving Adolescent Literacy", Scientific Studies of Reading (DOI). Supports the design, 44 minutes a week, effect sizes 0.05 and 0.07, subgroup findings and the description of VSTF including coloured verbs. Open copy: eScholarship.
- What Works Clearinghouse study page, Tate et al. (2019). Supports the 4,266 student sample, the "meets standards with reservations" rating and the indeterminate reading comprehension result.
- Walker et al. (2007), "Visual-Syntactic Text Formatting: Theoretical Basis and Empirical Evidence for Impact on Human Reading", IEEE IPCC. Supports the early trials, the effect sizes of 0.41 to 0.69, the group sizes and the authors' affiliation with Walker Reading Technologies.
- LeVasseur et al. (2006), "Syntactically cued text facilitates oral reading fluency in developing readers", Applied Psycholinguistics. Supports the findings for children aged 7 to 9 (abstract only).
- Cowan (2001), "The magical number 4 in short-term memory", Behavioral and Brain Sciences. Supports the three to five chunk working memory limit.