Syntax Highlighter can be used to format code snippets.
This is a Vanilla JS Component.
https://nectar.website/demo/components/syntax-highlighter/arrow-up-right
You can refer to the code present in /partials/components/syntax-highlighter.html file and use it accordingly.
/partials/components/syntax-highlighter.html
https://highlightjs.org/usagearrow-up-right
Last updated 3 years ago