qp-react-highlight.js
v1.0.9
Published
A lightweight React wrapper around the Highlight.js syntaxt highlighting library
Downloads
2,497
Readme
Demo
See the demo here.
Installation
Install qp-react-highlight.js using NPM:
npm install qp-react-highlight.js --save
And then use qp-react-highlight.js to display your text like so:
import Highlight from 'qp-react-highlight.js';
<Highlight language={language}>
{content}
</Highlight>
License
qp-react-highlight.js is available under the MIT License.