diff --git a/README.md b/README.md index ac077b3..213f032 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,22 @@ -# `highlightjs-huff` +# `prismjs-huff` -Huff syntax highlighting for [highlight.js](https://highlightjs.org/). +[Huff](https://huff.sh/) syntax highlighting for [react-syntax-highlighter](https://github.com/react-syntax-highlighter/react-syntax-highlighter#readme). + +Huff is a low level assembly language for the EVM. See [documatation](https://docs.huff.sh/) ## Installation ```bash -npm install highlightjs-huff +npm install prismjs-huff ``` -> Please note that this package requires `highlight.js` as a peer dependency. - ## Usage ```javascript -import hljs from 'highlight.js'; -import huff from 'highlightjs-huff'; +import { PrismLight } from 'react-syntax-highlighter'; +import huff from 'prismjs-huff'; -hljs.registerLanguage('huff', huff); -hljs.highlightAll(); +PrismLight.registerLanguage('huff', huff); ``` ## License diff --git a/package.json b/package.json index 6663e54..74d8064 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "prismjs-huff", "private": false, - "version": "1.1.0", + "version": "1.1.1", "description": "Huff syntax highlighting for prism.js", "main": "src/index.js", "types": "src/index.d.ts", @@ -10,7 +10,7 @@ ], "repository": { "type": "git", - "url": "git+ssh://git@github.com/JeremyTheintz/prismjs-huff.git" + "url": "git+ssh://git@github.com/swiiny/prismjs-huff.git" }, "keywords": [ "Huff", @@ -22,7 +22,7 @@ "author": "Jeremy Theintz", "license": "MIT", "bugs": { - "url": "https://github.com/JeremyTheintz/prismjs-huff/issues" + "url": "https://github.com/swiiny/prismjs-huff/issues" }, - "homepage": "https://github.com/JeremyTheintz/prismjs-huff" + "homepage": "https://github.com/swiiny/prismjs-huff" }