Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

highlight.js

Syntax highlighting library with automatic language detection for code blocks.

Markdown, editors and contentNPM

GitHubWebsite

1. License

License from npm.

github.com/highlightjs/highlight.js

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What highlight.js does

Syntax highlighting library with automatic language detection for code blocks.

highlight.js popularity

77 / 100
Gid Score, #147 overall
58.1M
downloads a week, npm
25K
GitHub stars
66
agent projects use it
highlight.js: downloads per weeknpm, highlight.js 58,071,730
highlight.js: GitHub starshighlightjs/highlight.js 25,018

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How highlight.js is used

  • highlight.js is a dependency in 66 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.4% of the 4,867 JavaScript/TypeScript ones), #8 of 149 in markdown, editors and content.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 200; those are left out of every share on this page.
  • The most used alternative in our scan is Shiki (85 projects).
  • Projects that use it most often also use Marked (42.4%), Vite (57.6%), TypeScript (93.9%).

By coding agent

47 projects, 1.4%
35 projects, 1.2%
24 projects, 1.0%
9 projects, 2.7%
6 projects, 1.3%
6 projects, 1.7%

Often used with

In 42.4% of its projects
In 57.6% of its projects
In 93.9% of its projects
In 33.3% of its projects
In 43.9% of its projects
In 31.8% of its projects
In 30.3% of its projects
In 50.0% of its projects

More about highlight.js

Head to head
More in Markdown, editors and content

Alternatives

highlight.js This page

BSD-3-ClauseGid 7758.1M/wk

Shiki

Beautiful syntax highlighter powered by TextMate grammars with superior accuracy.

MITGid 7642.6M/wk

Compare highlight.js with another tool

Get started

Install it.

npm install highlight.js

No step-by-step start for highlight.js yet: we have not written its hand-checked card.