highlight.js, JavaScript syntax highlighter with language auto-detection and zero dependencies:
-
highlight.js test notes: https://www.sitels.nl/devnotes/code-display/highlight.js.html
-
Sourcecode syntax highlighting in html with highlight.js: https://dev.to/coderallan/sourcecode-syntax-highlighting-in-html-with-highlightjs-2nm2
-
https://codesandbox.io/p/sandbox/highlightjs-demo-kj82h3?file=%2Findex.html