Quote:
Originally Posted by cbkbud
just had an idea.
Since the tab button doesn't work in script editor its really hard to format code. So what about a button in the window that says 'Format Code' and does the command "/style weapon/npc/script name" or whatever the command is.
|
I guess I'll post a bug/warning about the "style" command:
If you have padding enabled on operators it will cause syntax errors if you use var @= "something"; as it places a space between @ and =.
Example:
HTML Code:
function onCreated() { this.var += 1;
this.test @= "test";}
Becomes:
HTML Code:
function onCreated()
{
this.var += 1;
this.test @ = "test";
}
(note the space between @ and =)
scriptstyle=spaces=2,padding=oper,brackets=break is used in this example.
I assume its the same for some other operators added in GS2.