Monday, October 17, 2022

Adding syntax highlighter in the blogger posts

To add syntax highlighting to the code in the post:
Add following script tag in the head tag of the html of the template
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>



Refer the link below for more details:
https://github.com/googlearchive/code-prettify

No comments:

Post a Comment