highlight-code-blocks
highlight-code-blocks is library aimed at react developers who want to implement highlight.js in their project.
Installation
Use the npm package manager to install highlight-code-blocks.
npm install highlight-code-blocks
Usage
import CodeHighlighter from "highlight-code-blocks";
<CodeHighlighter>---code block as string---</CodeHighlighter>;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.