highlight-code-blocks
Version:
A port of highlight.js written using functional components for using with react framework
30 lines (17 loc) • 668 B
Markdown
# highlight-code-blocks
highlight-code-blocks is library aimed at react developers who want to implement highlight.js in their project.
## Installation
Use the npm package manager to install highlight-code-blocks.
```bash
npm install highlight-code-blocks
```
## Usage
```javascript
import CodeHighlighter from "highlight-code-blocks";
<CodeHighlighter>---code block as string---</CodeHighlighter>;
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)