Rainbow Syntax Highlighter
Simple syntax highlighting library written in javascript
BuildlessDormant1 dependencyScript tagApache-2.0
Facts
| Size | 21.2 KB minified, 7.0 KB gzipped (dist/rainbow.min.js) |
|---|---|
| Licence | Apache-2.0 |
| Dependencies | [email protected] |
| Last release | v2.1.7, September 2020 |
| Last activity | 2023-09-24 (Dormant) |
| Stars | 3,295 on GitHub |
| Formats | classic script (global Rainbow) |
| CDN hits | 5,432 a month on jsDelivr |
| npm downloads | 629 a month |
| Gates | G1 failed (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 v2.1.7 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/rainbow.min.js"
integrity="sha384-1FCya97T+WFvkAiK3RBJjHYBNqGf2jts54myBAdxa23K/TZdJYs6hxZunEtajgTw" 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 3 in the directory. Facts refreshed monthly; last run 2026-10-30.