The “code” you see in the Visual editor is most likely shortcodes, and the WordPress Visual editor cannot interpret shortcodes, it displays them as-is. If you don’t like that then you’ll have to take it up with WordPress because it has nothing at all to do with the Razor theme, the article editor is part of WordPress itself.