Prism
Lightweight, robust, elegant syntax highlighting.
No-build verifiedActive0 dependenciesScript tagMIT
Facts
| Size | 19.2 KB minified, 7.2 KB gzipped (prism.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v1.30.0, March 2025 |
| Last activity | 2026-10-15 (Active) |
| Stars | 13,059 on GitHub |
| Formats | classic script (global _self;Prism) |
| CDN hits | 90.1 million a month on jsDelivr |
| npm downloads | 133.2 million a month |
| Gates | G1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v1.30.0 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism.js"
integrity="sha384-IfXV8q9IOAE+W1GXzqnINhrSCZlBZr69tB8V4IEhv9CCAzJ3eL+4UpAuHk30yRx8" crossorigin="anonymous"></script>Advertisement
Related libraries
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Speckle.js A JavaScript plugin that adds responsive, stylized speckles to any element; with no dependencies.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 24 in the directory. Facts refreshed monthly; last run 2026-10-30.