If you maintain a blog about web development or programming, or another type of blog where you have to show some code to your readers, you already faced problems trying to paste code into wordpress text editor. If the piece of code is not deleted by the editor filters, it will be screwed up by changing the tags. 

The best solution I found for this is to use pastebin. pastebin is a web application that allows you to share code or any other data with others. After you create your “paste”. Then, you can embed it using an iframe into your post. That’s it!