Type definitions are available in the @types/react-syntax-highlighter package


  • Version 15.5.0
  • Published
  • 2.52 MB
  • 5 dependencies
  • MIT license


npm i react-syntax-highlighter
yarn add react-syntax-highlighter
pnpm add react-syntax-highlighter


syntax highlighting component for react with prismjs or highlightjs ast using inline styles

Dependencies (5)

Dev Dependencies (36)

Peer Dependencies (1)


To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/react-syntax-highlighter.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/react-syntax-highlighter"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>