Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you put it into the visual editor?
yeah but then I try and add DIV tags to it in the html editor and it all messes up
Possibly you need a plugin if you want to actually show code:
http://ww.wp.xz.cn/extend/plugins/wp-code-highlight/
Thank you to the two people who actually bothered to reply, but I ‘eventually’ found it out for myself.
to display html as html without it activating install this plugin:
http://coffee2code.com/wp-plugins/preserve-code-formatting/
download, then install via wordpress in the plugin section, then all you do is add [code] YOUR HTML [/code] to the page (but with <> instead of [] ), apparently this is buggy when switching to visual editor so just turn that off, ( i don’t use it anyway)
hope this helps other people who were in my situation 🙂