Note: remember to always paste the text of the entry in text mode rather than visual mode, it'll make work easier.
Since the editor deletes consecutives line breaks and spaces, here are two pieces of code I use for them to show correctly:
Line breaks (enters):
method (line breaks):
That was all I could think of for now. If anyone uses any tricks, please post them here :)