(by AXDS)
Displaying some HTML code, inside of a post that renders out HTML, is tricky.
In order to display the code for viewing rather than to run, we need to wrap WordPress tags around it.
Example:
Displays:
<div class="exampleDiv">Hello World</div>
The language can be selected to allow for syntax highlighting. The common languages are available such as ‘html’,’javascript’,’css’,’csharp’ etc. More are online.