Socket
Socket
Sign inDemoInstall

react-highlight.js

Package Overview
Dependencies
9
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-highlight.js

A lightweight React wrapper around the Highlight.js syntaxt highlighting library


Version published
Weekly downloads
8.1K
decreased by-20.49%
Maintainers
1
Install size
1.62 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 09 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc