1.0.3 • Published 8 years ago

@episodeyang/react-highlight.js v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

Demo

See the demo here.

Installation

Install @episodeyang/react-highlight.js using NPM:

npm install @episodeyang/react-highlight.js --save

Choose a highlight.js theme and make sure it's included in your index file.

<link rel='stylesheet' href='https://highlightjs.org/static/demo/styles/railscasts.css'/>

And then use @episodeyang/react-highlight.js to display your text like so:

<Highlight language={language}>
  {content}
</Highlight>

License

@episodeyang/react-highlight.js is available under the MIT License.