# Prism

Lightweight, extensible JavaScript syntax highlighter for code blocks in web pages, which can also run in Node.js.


Source: https://findsoftware.frbit.cloud/prismjs/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://prismjs.com
- repository: https://github.com/PrismJS/prism
- docs: https://prismjs.com/

### Identity

- status: active
- maintainer: Lea Verou
- maintainerType: unknown
- parent: unknown
- firstRelease: 2015
- hqCountry: unknown

### Kind

- category: library
- hosting: node
- language: javascript
- runtime: node
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm, script tag, download

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2025-03-10

### Adoption

- githubStargazers: 13070
- packagistDownloads: not applicable
- npmWeeklyDownloads: 47943622
- contributors: 368
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 218739
- dependentPackages: 6937

### Sources

- urls: https://prismjs.com (read 2026-11-16)
- urls: https://prismjs.com (read 2026-11-16)
- urls: https://api.github.com/repos/PrismJS/prism (read 2026-11-16)
- maintainer: https://github.com/PrismJS/prism/blob/v2/LICENSE (read 2026-11-16)
- firstRelease: https://api.github.com/repos/PrismJS/prism/tags (read 2026-11-16)
- category: https://prismjs.com (read 2026-11-16)
- language: https://api.github.com/repos/PrismJS/prism (read 2026-11-16)
- runtime: https://prismjs.com (read 2026-11-16)
- installMethod: https://prismjs.com (read 2026-11-16)
- installMethod: https://prismjs.com (read 2026-11-16)
- installMethod: https://prismjs.com (read 2026-11-16)
- license: https://github.com/PrismJS/prism/blob/v2/LICENSE (read 2026-11-16)
- licenseModel: https://github.com/PrismJS/prism/blob/v2/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/PrismJS/prism/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/PrismJS/prism/releases (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/prismjs (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/PrismJS/prism (read 2026-11-16)
- contributors: https://api.github.com/repos/PrismJS/prism/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/prismjs (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/prismjs (read 2026-11-16)

## Notes

Prism is a JavaScript syntax highlighter for code shown in web pages. A page includes its CSS and JavaScript files, or loads them from a CDN, and Prism highlights the code elements that carry a language class. It can also be installed from npm for use with a bundler, and it can be used with Node.js.

## Worth knowing

The homepage lists two limitations: Prism is regex-based, so it fails on certain edge cases, and any pre-existing HTML inside the code is stripped off. The README says the maintainers accept only security-relevant pull requests for the time being while they work on a new major version.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
