It is sometimes difficult to add code snippets your blog, for example using Blogger/Blogspot. Code involving xml or html tags might get parsed if you simply try to use the <pre> tag. A simple solution is to copy and paste your code snippet into this website, which transforms it to "readable" code. You may then enclose the resulting code in <pre> tags as usual.
For example, when I needed to write <pre> in the previous paragraph, I went to the above website, entered <pre>, and got <pre> back in return, which I simply copy and pasted back into the Blogger editor.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment