highlight.js is a library created in 2006.
git clone https://github.com/highlightjs/highlight.js
Syntax highlighting for the Web
View source