hljs-enhance

esm Styles
Adds a little extra stuff to highlight.js
Keywords
highlightjsjavascriptsyntax-highlighting
INSTALL
Type:
<link href=" https://cdn.jsdelivr.net/npm/hljs-enhance@2.0.4/hljs-enhance.min.css " rel="stylesheet">
No default CSS file set by the package author so the URL is guessed. You can always browse all package files to use another one.
hljs-enhance
Adds a little extra stuff to highlight.js
Stuff
- Normalizes code indent to first column of display box
- Trims whitespace around code
- Adds border with option for caption (
<figcaption>
) - Adds hover effect to syntax highlighting
See It
https://center-key.github.io/hljs-enhance
Use It
From a CDN
In a project
$ npm install hljs-enhance