How to format code snippets in blogger posts (2024)
· 2 min read
If you want to show code snippets in your blog like this one:
var edad = 17;
if (edad >= 18) {
print('Es mayor de edad');
} else {
print('Es menor de edad');
}
You can use highlight.js. To add it to your blog, you must edit the HTML: