Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

React Syntax Highlighter

React component for syntax highlighting code with Prism.js or Highlight.js.

Markdown, editors and content npm MIT

Used in agent projects
110
0.9% of 12,697 public repos built with AI coding agents
Rank in markdown, editors and content
#5 of 46
by use in those projects
Downloads
7.8M
npm, last 7 days, react-syntax-highlighter
GitHub stars
4,674
last push Oct 8, 2026

How React Syntax Highlighter is used

React Syntax Highlighter is a dependency in 110 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.9%), #5 of 46 in markdown, editors and content. The most used alternative there is react-markdown. Projects that use it most often also use Tailwind Merge (85.5%), clsx (84.5%), Class Variance Authority (81.8%).

Often used with React Syntax Highlighter

Tailwind Merge85.5% of React Syntax Highlighter projects · 5.1× more than average
clsx84.5% of React Syntax Highlighter projects · 4.8× more than average
Class Variance Authority81.8% of React Syntax Highlighter projects · 5.8× more than average
Lucide React80.0% of React Syntax Highlighter projects · 4.0× more than average
Radix UI74.5% of React Syntax Highlighter projects · 6.2× more than average
Tailwind CSS95.5% of React Syntax Highlighter projects · 2.7× more than average
Framer Motion63.6% of React Syntax Highlighter projects · 4.7× more than average
next-themes62.7% of React Syntax Highlighter projects · 7.1× more than average

By coding agent

Cursor1.3% of projects set up for it
Claude Code0.8% of projects set up for it
GitHub Copilot0.8% of projects set up for it
Devin Desktop2.6% of projects set up for it
Gemini CLI1.6% of projects set up for it

Share of public repos configured for each agent that list React Syntax Highlighter as a dependency.

Install

Packagenpm install react-syntax-highlighter
Main stacksNext.js (79), TypeScript / JavaScript (27), Python (4)
Example projectsding113/claude-code-hub, ask-the-hive/the-hive, TheSolaAI/sola-application, Some1Uknow/learn-solana, WTFAcademy/frontend

Alternatives to React Syntax Highlighter

All markdown, editors and content

Tool Used in agent projectsDownloads / wk GitHub starsLicense
react-markdown npm
React component for rendering markdown with customizable component handling.
360 (2.8%) 37.2M 15.9K MIT
remark-gfm npm
Remark plugin adding GitHub Flavored Markdown support for tables and strikethrough.
288 (2.3%) 44.5M 1,249 MIT
Jinja2 pypi
Fast and expressive template engine for Python with powerful flexibility.
175 (1.4%) 145M 11.8K —
Marked npm
Fast, efficient markdown parser for converting markdown to HTML.
148 (1.2%) 83.8M 37.2K MIT
gray-matter npm
Parser extracting YAML/JSON front matter from markdown and text files.
106 (0.8%) 10.6M 4,490 MIT
Tiptap npm
Headless Vue/React rich text editor framework with customizable extensions.
105 (0.8%) 18.7M 38.7K MIT
Pygments pypi
Syntax highlighting library for code in Python supporting hundreds of programming languages.
97 (0.8%) 239M 2,213 —
Shiki npm
Beautiful syntax highlighter powered by TextMate grammars with superior accuracy.
89 (0.7%) 24.9M 13.9K MIT
Is React Syntax Highlighter right for your project? Ask AgentGid →