mark.js
JavaScript keyword highlighting. Mark text with options that fit every application. Also available as jQuery plugin.
No-build verifiedStable0 dependenciesScript tagMIT
Facts
| Size | 16.5 KB minified, 5.7 KB gzipped (dist/mark.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v8.11.1, January 2018 |
| Last activity | 2025-06-17 (Stable) |
| Stars | 2,589 on GitHub |
| Formats | classic script (global Mark) |
| CDN hits | 22.4 million a month on jsDelivr |
| npm downloads | 13.1 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 v8.11.1 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]/dist/mark.js"
integrity="sha384-5np2pwU+XNAI3+nIwfLxmEnynSU2Gb1BZnsUZwp5laHQm2+mKUFdj4AP2giJa9Wk" crossorigin="anonymous"></script>Advertisement
Related libraries
- super-workers Distribute load on front-end via parallelism
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 108 in the directory. Facts refreshed monthly; last run 2026-10-30.