highlightjs/highlight.js
JavaScript syntax highlighter with language auto-detection and zero dependencies. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 85
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 49
- age_days: 5723
- days_rel: 21
- days_push: 9
- n_releases_24m: 4
Adoption not part of the score
24985 stars · 3748 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Highlight.js is a zero-dependency JavaScript syntax highlighter supporting 193 languages with automatic language detection and 516 themes. It works in the browser, on the server (Node.js/Deno), and with any JS framework or HTML markup.
Use cases
- highlight code snippets on a blog or docs site
- add syntax highlighting to a web page
- auto-detect the language of a code block
- render colored code in Node.js or Deno
- highlight code in a Vue or React app
- theme code blocks with CSS styles
When to choose
- you need broad language coverage with automatic detection
- you want a zero-dependency, framework-agnostic highlighter
- you need both browser and server-side highlighting
When to avoid
- you need editor-grade highlighting with full IDE features
- you need extremely precise tokenization for complex languages
- you want highlighting inside a native code editor component
Facets
library · maturity stable
ui-components frontend-framework developer-tools markdown web-development frontend developer-tools documentation browser cross-platform syntax-highlighting code-highlighting language-detection zero-dependencies themes nodejs deno web-server
2 sources
- readme: https://github.com/highlightjs/highlight.js · fetched 2026-08-28 · df78c9e7c5ae
- homepage: https://highlightjs.org/ · fetched 2026-08-29 · 5f1fd27d58e5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| highlightjs/highlight.js | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="highlightjs/highlight.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem