Posting code examples rendered like text

When writing my last post I had a problem that parts of the code was parsed into the page, meaning that the result, instead of the actual code, was seen. As you can see in the post, I solved the problem, and here’s how:

By replacing the lesser than symbol (<) with “&lt;“, the greater than symbol (>) with “&gt;” and the ampersand symbol (&) with “&amp;“.

The solution to this, and a lot of very handy cheat sheets can be found at ILoveJackDaniels.com


Posted

in

,

by

Comments

By posting a comment, you consent to our collecting the information you enter. See privacy policy for more information.

This site uses Akismet to reduce spam. Learn how your comment data is processed.