It's syntax highlighting. Makes it easier to see what is going on. Indents are apart of stylising: makes it easier to read. I could do
PHP Code:
function onCreated() { statement1; statement2; statement3; }
But I prefer to do
PHP Code:
function onCreated()
{
this.test = "string!";
if (this.test == "string!")
{
echo("YAY!");
}
}
Just nicer

.