Vice City: Multiplayer

Off-Topic => Off-Topic General => Topic started by: Kewun on Sep 15, 2016, 07:43 AM

Title: Code Spaces fixer?
Post by: Kewun on Sep 15, 2016, 07:43 AM
as here http://imgur.com/a/Crh6R

there is

function onKeyDown(player,key)
{
if (key == blah blah)
{
Message("meh")
}
        if(key==blah2)
                   { 
       Message("shit")
    }
}

is there any tool to fix the spaces to make it normal format? or have to do it manually?
i mean a tool to fix this

function onKeyDown(player,key)
{
if (key == blah blah)
{
Message("meh")
}
        if(key==blah2)
                   { 
       Message("shit")
    }
}

to

function onKeyDown(player,key)
{
          if ( key == blah blah )
          {
                    Message("meh")
          }
          if ( key == blah2)
          {
                    Message("shit")
          }
}

any tool to do it ? or i have to do this manually?
Title: Re: Code Spaces fixer?
Post by: KAKAN on Sep 15, 2016, 12:22 PM
http://jsbeautifier.org/
Title: Re: Code Spaces fixer?
Post by: Kewun on Sep 15, 2016, 02:18 PM
thx.. i was looking for this for 5 months