chequer-io / qp-react-highlight.js

A simple React wrapper around the Highlight.js library

Home Page:http://bvaughn.github.io/react-highlight.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple React wrapper around the Highlight.js library

http://bvaughn.github.io/react-highlight.js/

License:MIT License


Languages

Language:JavaScript 97.6%Language:CSS 2.4%