You can use Highliter syntax code to highlight code in blog posts. To do this, you need to install some code on the blogger page editHtml, you must add the Highlither syntax of the code to the blogger template.
Afger posts to your blog, if any html or java code appears, then you need to convert it with escaped code.
The main problem with this method is that all brackets must be HTML escaped, for example, all < must be replaced with < This will ensure proper rendering.
Set up SyntaxHighlighter on your blog.
source share