Syntax highlighting using Highlight JS

HighlightJS library offers syntax highlighting for over 170 languages. It can provide many attractive styles . The bare minimum for using highlight.js on a web page is linking to the library along with one of the styles and calling initHighlightingOnLoad: <link href=”styles/arta.css” rel=”stylesheet” type=”text/css” /> <script src=”highlight.pack.js” type=”text/javascript”></script> <script type=”text/javascript”> hljs.initHighlightingOnLoad() </script> To add a Continue Reading