Skip to content
Alex Kovalev

NotebookLM Code Highlighter

Adds syntax highlighting, line numbers and a copy button to code blocks in Google's NotebookLM.

NotebookLM is great at answering questions about your sources, but the code in its answers comes out as flat grey text. This extension colors it, the way any code editor would.

What it does

  • Highlights code automatically. It detects the language of each code block (25+ languages) and colors it as soon as the answer appears.
  • Pick the language yourself. If the guess is wrong, choose the language from the picker in the corner of the block. It remembers your choice for that block.
  • Line numbers that don’t get copied along with the code.
  • One-click copy of the whole block.
  • Six themes: GitHub, VS Code and Atom One, each in light and dark. It follows your system’s light or dark mode.
  • Long blocks stay tidy. Set a maximum height and long code scrolls inside its block.

Private by design

It only runs on notebooklm.google.com, works entirely in your browser and sends nothing anywhere. No analytics, no tracking, no ads. Details are in the privacy policy.

Privacy policy

I’ll chirp when there’s a new post

One email per new post, usually on a Friday. Nothing else, and you can unsubscribe anytime.

Prefer a feed reader? There’s an RSS feed.

© Alex Kovalev. All rights reserved. · Privacy Policy