# EnlighterJS/EnlighterJS

:high_brightness: an open source syntax highlighter written in pure javascript

Repository: https://github.com/EnlighterJS/EnlighterJS
Canonical: https://ross.abutalabs.com/products/enlighterjs
Homepage: https://enlighterjs.org/
Language: JavaScript
License: MPL-2.0
License Family: copyleft
Topics: highlighting, syntax-highlighter, syntax-highlighting, enlighterjs, javascript, javascript-library, theme-support
Last push: 2024-04-30T04:25:52+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4894, "days_push": 855, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1052, forks 212 (observed 2026-08-28T04:03:23.359717+00:00)

## What it is
EnlighterJS is an open-source syntax highlighter written in pure JavaScript with zero dependencies, supporting 40 languages and 12 themes. It highlights code blocks on web pages with a single command and offers official plugins for WordPress, TinyMCE, and Gutenberg.

## Use cases
- highlight code blocks on a website
- syntax highlighting for blog posts
- display code snippets with themes
- add codegroups with tabs to a page
- highlight inline code in HTML
- syntax highlighting for WordPress

## When to choose
- you need a dependency-free, lightweight browser-side highlighter
- you want many built-in language grammars and customizable themes
- you run WordPress or a TinyMCE/Gutenberg editor and want an official plugin

## When to avoid
- you need server-side rendering or Node.js highlighting
- you want a highlighter with active frequent development
- you need IDE-grade parsing of complex languages

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, frontend-framework
- domain: web-development, frontend, developer-tools, documentation
- platform: browser
- tags: syntax-highlighting, code-highlighter, zero-dependencies, themes, tokenizer, wordpress-plugin, javascript

## Member repositories
- EnlighterJS/EnlighterJS (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:23.359717+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:59:40.722999+00:00, confidence not recorded.
  - readme: https://github.com/EnlighterJS/EnlighterJS (fetched 2026-08-28T04:03:23.359717+00:00, sha 34b9390b8acd)
  - homepage: https://enlighterjs.org/ (fetched 2026-08-29T13:01:03.526610+00:00, sha 6c71a3004c31)
  - registry_npm: https://registry.npmjs.org/enlighterjs (fetched 2026-08-29T13:01:03.535816+00:00, sha ba108eceea56)
- Data as of 2026-08-30T08:39:29.467469+00:00.
