1.0.7 • Published 7 years ago

react-highlight.js v1.0.7

Weekly downloads
19,446
License
MIT
Repository
github
Last release
7 years ago

Demo

See the demo here.

Installation

Install react-highlight.js using NPM:

npm install 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 react-highlight.js to display your text like so:

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

License

react-highlight.js is available under the MIT License.

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago