@episodeyang/react-highlight.js

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i @episodeyang/react-highlight.js

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • episodeyang