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

react-syntax-highlighter

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

Install

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

Overview

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

Dependencies (5)

Dev Dependencies (36)

Peer Dependencies (1)

Badge

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
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/react-syntax-highlighter)
  • 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>