A simple, customizable, and extendable Syntax Highlighter in vanilla JavaScript.
Import the script with:
<script src="simple-syntax-highlighter.js"></script>or just copy-paste the code between your <script> tags.
All code between <pre><code> tags will then be automatically highlighted: