Skip to content

Commit 29f6de9

Browse files
authored
Update README.md
1 parent f927c7c commit 29f6de9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
# `highlightjs-huff`
1+
# `prismjs-huff`
22

3-
Huff syntax highlighting for [highlight.js](https://highlightjs.org/).
3+
[Huff](https://huff.sh/) syntax highlighting for [react-syntax-highlighter](https://github.com/react-syntax-highlighter/react-syntax-highlighter#readme).
4+
5+
Huff is a low level assembly language for the EVM. See [documatation](https://docs.huff.sh/)
46

57
## Installation
68

79
```bash
8-
npm install highlightjs-huff
10+
npm install prismjs-huff
911
```
1012

11-
> Please note that this package requires `highlight.js` as a peer dependency.
12-
1313
## Usage
1414

1515
```javascript
16-
import hljs from 'highlight.js';
17-
import huff from 'highlightjs-huff';
16+
import { PrismLight } from 'react-syntax-highlighter';
17+
import huff from 'prismjs-huff';
1818

19-
hljs.registerLanguage('huff', huff);
20-
hljs.highlightAll();
19+
PrismLight.registerLanguage('huff', huff);
2120
```
2221

2322
## License

0 commit comments

Comments
 (0)