# Code editors and highlighters

Show and edit source code in the browser, with colors for its syntax. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Shiki](https://elestia.ai/opensource/code-editors/shiki/index.md) | 8.5 | 5.2 | 8.8 | 8.6 | 7.2 | 8.1 | 7.4 | Docs sites, blogs, markdown pipelines and AI chat UIs that need VS Code-quality highlighting, ideally rendered on the server or at build time. |
| 2 | [CodeMirror](https://elestia.ai/opensource/code-editors/codemirror/index.md) | 8.4 | 4.5 | 8.7 | 7.6 | 6.5 | 8.4 | 8.1 | Teams that want to embed a light, customizable code editor in a web app, including on mobile, rather than ship a full IDE. |
| 3 | [Monaco Editor](https://elestia.ai/opensource/code-editors/monaco/index.md) | 7.5 | 3.8 | 8.0 | 7.6 | 6.7 | 7.7 | 7.2 | Teams building a desktop-browser IDE, playground or schema-validated JSON/TypeScript editor that should feel like VS Code. |
| 4 | [highlight.js](https://elestia.ai/opensource/code-editors/highlightjs/index.md) | 6.9 | 5.3 | 7.3 | 5.9 | 8.5 | 7.5 | 8.0 | Pages, CMSs and server code that need simple runtime highlighting with language auto-detection and no build step. |
| 5 | [Sugar High](https://elestia.ai/opensource/code-editors/sugar-high/index.md) | 6.5 | 4.6 | 6.6 | 6.6 | 3.9 | 4.6 | 8.0 | Next.js or React blogs and docs that mostly show JS/TS code and want a highlighter of a few KB with no dependencies. |
| 6 | [starry-night](https://elestia.ai/opensource/code-editors/starry-night/index.md) | 6.1 | 4.1 | 6.9 | 6.2 | 3.1 | 4.6 | 7.5 | Static sites and Markdown pipelines (unified/rehype) that want code to look exactly like it does on GitHub, highlighted at build time. |
| 7 | [Ace](https://elestia.ai/opensource/code-editors/ace/index.md) | 5.8 | 4.0 | 6.7 | 6.3 | 5.0 | 5.6 | 8.0 | Teams that already run Ace, or that want a dependency-free drop-in editor with many language modes and no build setup. |
| 8 | [Prism](https://elestia.ai/opensource/code-editors/prism/index.md) | 5.8 | 5.3 | 6.5 | 4.7 | 7.0 | 6.6 | 7.0 | Projects that need light, fast highlighting at runtime in the browser, with Prism's plugins, and can accept a frozen v1. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Shiki | 154M | ×9.7 | 14k | 148 | Nov 2026 | 0 |
| CodeMirror | 95M | ×7.1 | 7.8k | 4 | Oct 2026 | 0 |
| Monaco Editor | 54M | ×5.2 | 47k | 229 | Sept 2026 | 0 |
| highlight.js | 213M | ×4.4 | 25k | 139 | Aug 2026 | 0 |
| Sugar High | 1.7M | ×10 | 1.4k | 243 | Nov 2026 | 0 |
| starry-night | 644k | ×5.9 | 1.8k | 18 | Aug 2026 | 0 |
| Ace | 8.4M | +96% | 27k | 57 | Oct 2026 | 0 |
| Prism | 192M | ×3.9 | 13k | 83 | Mar 2025 | 1 |

All categories: https://elestia.ai/opensource/index.md
