How to write code

If you want to write code, and be sure that the spacing and stuff will come out right, put it between code tags. Here's how:

<code>
fn example_code() -> bool {
    return true;
}
</code>

If you're used to using HTML, think of the code tag on here as combining HTML's code and pre tags, and also taking care of escaping for you. If you need to write a code tag inside of the code tag, you can double or triple up on the brackets, like this:

<<code>>
<code>
<table>
<thead>
<td>column 1.
<td>column 2.
<td>column 3.
<td>column 4.
<tbody>
<td>Row 1, column 1.
<td>Row 1, column 2.
<td>Row 1, column 3.
<td>Row 1, column 4.
<tr>
<td>Row 2, column 1.
<td>Row 2, column 2.
<td>Row 2, column 3.
</table>
</code>
<</code>>

This example will produce a code block with all of the other code inside of it, like you would expect.