highlight.js is a popular client-side syntax highlighter that supports a broad range of languages: https://highlightjs.org/
This extension makes it easy to add highlight.js to your website, it supports many themes and includes support for most common languages (html, css, javascript, cpp, php etc).