Including Angle Brackets In Pre Sections

If you’re just trying to display them in a page or a post, you could try using their character entities. In the Text view in the editor, type &lt; instead of < and &gt; instead of >.

So, for instance, in your editor’s Text view (not the Visual mode), you’d type:

<pre>
private HashMap&lt;String, HashMap&lt;String, Integer&gt;&gt; featureCounts;
</pre>

And that should do it.

Leave a Comment