plainJS

Libraries / Other

mark.js

JavaScript keyword highlighting. Mark text with options that fit every application. Also available as jQuery plugin.

No-build verifiedStable0 dependenciesScript tagMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size16.5 KB minified, 5.7 KB gzipped (dist/mark.js)
LicenceMIT
Dependenciesnone
Last releasev8.11.1, January 2018
Last activity2025-06-17 (Stable)
Stars2,589 on GitHub
Formatsclassic script (global Mark)
CDN hits22.4 million a month on jsDelivr
npm downloads13.1 million a month
GatesG1 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.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mark.js"
        integrity="sha384-5np2pwU+XNAI3+nIwfLxmEnynSU2Gb1BZnsUZwp5laHQm2+mKUFdj4AP2giJa9Wk" crossorigin="anonymous"></script>
Advertisement

Entry 108 in the directory. Facts refreshed monthly; last run 2026-10-30.