User:Patient Zero/sandbox

Formatting JavaScript code
In the editor, precede your JavaScript code with this:

and it will turn out looking something like this: