Tags replacer:
replaces the less-then and greater-then symbols with entities.

Tags replacer

To write a tutorial it is necessary to publish the code used which means replacing all the "<" and ">" symbols with entities (&lt; and &gt;). The code would then be readable because the browser would not try to interpret it as active code.

The all characters option will translate all HTML characters into entities, including quotes (&#039;).

Whitespace and new lines will be preserved either by using <br /> tags or by wrapping <pre> tags around the code (<pre> tags preserve the whitespace).

More about it..

<br /> tags
the "<" and ">" symbols will be replaced by entities (&lt; and &gt;) and the carriage returns by <br />

After clicking the submit button, view the source of the page and copy it.