Issue with putting IfModule code on page

I am attempting to write a guide on my WordPress site however I am facing an issue with text even if it’s inside [code] brackets

However on the webpage it shows up looking like

What is the work around to this?