hljs-enhance

center-key
esm Styles
hljs-enhance JS library on GitHub hljs-enhance JS library on npm Download hljs-enhance JS library

Adds a little extra stuff to highlight.js

Version 2.0.4 License MIT Vulnerabilities 0
hljs-enhance has no homepage
hljs-enhance JS library on GitHub
hljs-enhance JS library on npm
Download hljs-enhance JS library
Keywords
highlightjsjavascriptsyntax-highlighting

hljs-enhance

logo

Adds a little extra stuff to highlight.js

License:MIT npm Build

Stuff

  1. Normalizes code indent to first column of display box
  2. Trims whitespace around code
  3. Adds border with option for caption (<figcaption>)
  4. Adds hover effect to syntax highlighting

See It

https://center-key.github.io/hljs-enhance

Use It

From a CDN

instructions.txt

In a project

$ npm install hljs-enhance

MIT License