Code: Select all
If true :
do_this
and_this
you can either press the code "button", then paste inside the tags, or you can paste the code, and while it is still highlighted press the code button.
regarding spaces versus tabs:
My own choice is to preferably instead of multiple spaces consequently use tabs instead. Some edit tools can change a specific number of spaces into a tab, or a tab into a specific number of spaces, you can use that to change all spaces in a code block to tabs, first select all text, then convert all tabs to spaces, then select all groups of (4 or 8 spaces) into tabs again, rinse and repeat, that should solve many "mixed spaces and tabs" problems. you can optically see when there is still a "lost space", or an excess tab, and remove it. the trick is to stay consistent.
Pasting inside a code block will work with spaces or tabs though.