I'm writing a guide and putting code examples. If I use the visual editor the code indentation is lost. It will also take some code and strip it out. If I use the text editor I can't ever switch to the visual editor again or the formatting and markup is lost.
This doesn't happen in other editors like Discourse.
I'm using Geishi syntax highligher.
Is there anyway to prevent this?