highlightjs
Highlight.js is a JavaScript library that provides syntax highlighting for code blocks on web pages. It runs in the browser and can automatically detect the programming language of code blocks, or apply a specified language. Highlight.js applies syntax highlighting through CSS classes, which are styled by themes.
Features include broad language support, automatic detection, extensive themes, and no external dependencies. It can be
Usage typically involves including the library and a CSS theme, then calling a function such as hljs.highlightAll()
Highlight.js was created by Ivan Sagalaev and released as an open-source project. It has grown into a
Licensing: It is released under a permissive open-source license.