Embed snippets from source code on GitHub using highlight.js and web components. All client side, all free and open source.
<script type='module' src="https://nrktkt.github.io/sauce/sauce.js"></script>
You can find a list of themes here.
The theme name is between the last /
and the .min.css
.
Previews of themes are here.