highlight-code-blocks
v1.0.0
Published
A port of highlight.js written using functional components for using with react framework
Downloads
18
Readme
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.