---
title: Node 26.8 Put Syntax Highlighting in the REPL
description: Node.js 26.8 added syntax highlighting to the REPL, so the interactive prompt now colours your code as you type it. A small node repl highlighting win worth having.
canonical: https://lukeocodes.dev/node-repl-highlighting
type: article
locale: en_GB
published: 2026-08-26T00:00:00.000Z
modified: 2026-08-26T00:00:00.000Z
authors:
  - Luke Oliff
section: JavaScript
tags:
  - JavaScript
  - TIL
  - node.js
  - v26
  - terminal
  - crypto
feed: https://lukeocodes.dev/rss.xml
search: https://lukeocodes.dev/search.json?q={query}
schema:
  - "@context": https://schema.org
    "@graph":
      - "@type": WebSite
        "@id": https://lukeocodes.dev/#website
        url: https://lukeocodes.dev
        name: Luke Oliff
        alternateName: lukeocodes
        inLanguage: en
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
        description: Personal blog and writing by Luke Oliff — developer relations, voice AI, developer experience.
        potentialAction:
          - "@type": SearchAction
            target:
              "@type": EntryPoint
              urlTemplate: https://lukeocodes.dev/blog/search?q={search_term_string}
            query-input: required name=search_term_string
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Engineer and developer relations leader. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Engineer and developer relations leader
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
  - "@context": https://schema.org
    "@graph":
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Engineer and developer relations leader. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Engineer and developer relations leader
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
      - "@type": BlogPosting
        "@id": https://lukeocodes.dev/node-repl-highlighting#article
        headline: Node 26.8 Put Syntax Highlighting in the REPL
        alternativeHeadline: Node 26.8 Put Syntax Highlighting in the REPL
        description: Node.js 26.8 added syntax highlighting to the REPL, so the interactive prompt now colours your code as you type it. A small node repl highlighting win worth having.
        datePublished: 2026-08-26T00:00:00.000Z
        dateModified: 2026-08-26T00:00:00.000Z
        url: https://lukeocodes.dev/node-repl-highlighting
        mainEntityOfPage: https://lukeocodes.dev/node-repl-highlighting
        inLanguage: en
        author:
          - "@id": https://lukeocodes.dev/authors/luke#person
        isPartOf:
          "@id": https://lukeocodes.dev/#website
        keywords: JavaScript, TIL, node.js, v26, terminal, crypto
        articleSection: JavaScript
        about:
          - "@type": SoftwareApplication
            name: Node.js
        abstract: Node.js 26.8.0, released 26 August 2026, brings syntax highlighting to the REPL. Start node, type, and keywords, strings and numbers colour in real time. It also lands GCM-SIV crypto and new zlib zip helpers.
        speakable:
          "@type": SpeakableSpecification
          cssSelector:
            - .post-tldr
            - h1
        image: https://lukeocodes.dev/og.png?h=Node+26.8+Put+Syntax+Highlighting+in+the+REPL&d=Node.js+26.8+added+syntax+highlighting+to+the+REPL%2C+so+the+interactive+prompt+now+colours+your+code+as+you+type+it.+A+small+node+repl+highlighting+win+worth+having.&e=Writing
        wordCount: 397
        timeRequired: PT2M
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
      - "@type": BreadcrumbList
        itemListElement:
          - "@type": ListItem
            position: 1
            name: Home
            item: https://lukeocodes.dev
          - "@type": ListItem
            position: 2
            name: Writing
            item: https://lukeocodes.dev/blog
          - "@type": ListItem
            position: 3
            name: Node 26.8 Put Syntax Highlighting in the REPL
            item: https://lukeocodes.dev/node-repl-highlighting
      - "@type": FAQPage
        "@id": https://lukeocodes.dev/node-repl-highlighting#faq
        mainEntity:
          - "@type": Question
            name: Which Node.js version added REPL syntax highlighting?
            acceptedAnswer:
              "@type": Answer
              text: Node.js 26.8.0, released on 26 August 2026, on the Current release line. If you want it on an LTS line you'll be waiting, since 24.x Krypton didn't get it. Run node --version to check what you're on before expecting the colours.
          - "@type": Question
            name: Do I need a flag to turn REPL highlighting on?
            acceptedAnswer:
              "@type": Answer
              text: No. Start an interactive session with node and it highlights as you type. It only applies to the interactive REPL, not to scripts you run with node file.js, so nothing about your actual program output changes.
---

[Luke Oliff.](/)

- [Blog](/blog)
- [CV](/cv)
- [Uses](/uses)
- [User manual](/user-manual)
- [Living with ADHD](/living-and-working-with-adhd)
- [RSS](/rss.xml)

[Luke Oliff · Writing](/blog)

# Node 26.8 Put Syntax Highlighting in the REPL

Aug 2026 · [JavaScript](/blog/category/javascript) · 2 min read · [Luke Oliff](/authors/luke)

**TL;DR:** Node.js 26.8.0, released 26 August 2026, brings syntax highlighting to the REPL. Start node, type, and keywords, strings and numbers colour in real time. It also lands GCM-SIV crypto and new zlib zip helpers.

Node.js 26.8.0 landed on 26 August 2026, and the change I noticed first wasn't in the changelog headline. It's node repl highlighting: the interactive prompt now colours your code as you type. Keywords, strings, numbers, all of it, live.

Small thing. I've wanted it for years.

If you live in the REPL to poke at an API response or sanity-check a regex, you know the old experience. Everything was one flat colour, and a missing bracket or a typo'd `const` looked exactly like valid code until you hit enter and got a `SyntaxError`. Now the mistake shows up while you're still typing it.

## Turning it on

There's nothing to turn on. Start a session and it just works.

```bash
node
> const files = ['a.txt', 'b.txt'].map(f => f.toUpperCase())
```

Type that and `const` reads as a keyword, the strings sit in their own colour, and the arrow function stops blending into the noise. It only touches the interactive REPL, so running `node script.js` is unchanged. Your program's output is your program's output.

One caveat worth saying out loud: this is on the Current line, not LTS. If your daily driver is 24.x Krypton you don't have it yet, and I wouldn't move a production runtime to Current just for prettier prompts. This is a "nice on my laptop" upgrade, not a "bump the Dockerfile" one.

## The parts that actually matter for prod

While the REPL colour is the fun bit, 26.8.0 shipped two things that matter more once you're past the prompt.

The crypto module gained AES-GCM-SIV. It's a nonce-misuse-resistant mode, which in plain terms means reusing a nonce degrades gracefully instead of catastrophically leaking your key stream the way plain GCM does. If you've ever lost sleep over nonce management in an encrypt-heavy service, this is the mode you reach for.

There's also new zlib support for reading zip archives directly, with `ZipEntry` and `ZipFile`, so unpacking a zip no longer means pulling a dependency for something the runtime can now do itself. I've shipped `unzipper` and `adm-zip` into projects for exactly this. One less line in `package.json` is one less thing to audit.

None of this is headline-grabbing. That's rather the point. The releases that quietly improve the day are the ones I end up relying on, and a REPL that catches my typos before I do is going straight into muscle memory.

[← Newer: When Python Case Folding Becomes a Security Bug](/python-case-folding)

[All posts](/blog) →

## Search this site

`GET https://lukeocodes.dev/search.json?q=<words>` returns matching posts as JSON, each with its page URL and its markdown URL. Add `&limit=<1-50>` for more than 10. How it works: [/blog/search](https://lukeocodes.dev/blog/search.md).

```sh
curl "https://lukeocodes.dev/search.json?q=developer+relations"
```

---

© 2026 Luke Oliff. Posts live at the root of this site.

- [GitHub](https://github.com/lukeocodes)
- [LinkedIn](https://www.linkedin.com/in/lukeocodes)
- [X](https://x.com/lukeocodes)
- [Bluesky](https://bsky.app/profile/lukeocodes.dev)
- [Email](mailto:luke@lukeoliff.com)
- [RSS](/rss.xml)

## Cookies

This site sets one analytics cookie, from Google Analytics, and only in a browser that accepts the cookie banner. A client that does not run scripts sets no cookies, so there is nothing to accept or decline here.

[Cookie policy](/cookies)
