Tambah Syntax highlighting Ke Blogspot
Many websites like this one feature a bunch of code snippets, which can be a pain when changing the theme, as you might have manually styled the code chunks. To avoid this, you can add the highlightjs library that does it for you - that way, when you change theme, you only need to tweak one gadget (instead of all of your posts and their snippets.) To add the needed JS and CSS, you can click the button below! The content of the gadget is shown below. Alternatively, you can head to the Layout tab for your blog, and add an HTML/Javascript gadget, with the following in the Content area. < link rel = "stylesheet" href = "//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/androidstudio.min.css" > < script src = "//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js" > </ script > < script > hljs.initHighlightingOnLoad(); </ script > In this example, we're using the an...