giangnguyen

Syntax

9 posts in this topic

Does whitespace matter in AutoIt? If it doesn't, I can remove them all to reduce script size right? 
By whitespace I mean the Tab character. IN the image the red part represents the tab just to make things clear

Capture.PNG.e7d7ed1601ffa5c58f3f9b6cfd08

Share this post


Link to post
Share on other sites



@giangnguyen it probably took you more time to type that post that it would have to test it out. Try it and see for yourself ;)

 

1 person likes this

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Well, I actually  tested already and in some cases it worked, in some it did not.

So I just wanna make sure

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Well, then you might have made something wrong. TABS are not changing the code execution in any way! They are 100% optional.

Edited by Unc3nZureD

Share this post


Link to post
Share on other sites

Thanks! I will remove all of the tabs to reduce size
I probably made a mistake somewhere, my code was HUGE (The source only was around 700kb)

Share this post


Link to post
Share on other sites

You don't what to reduce the size and simply make it readable. Use Tidy to make it readable again.
You could use au3stripper to strip your script back to the essentials and the aut2exe compiler takes the whitespace out anyways so there is nothing to worry about.

Jos

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks for the sugestion
However, I only do this before compiling since I will be hosting the file on a limited server, and need to reduce the size as much as possible.

Anyway I will look for more ways to help optimize my script. Thanks for creating an awesome language!

Share this post


Link to post
Share on other sites
1 minute ago, giangnguyen said:

However, I only do this before compiling since I will be hosting the file on a limited server, and need to reduce the size as much as possible.

,... and I am telling you that this is not needed as aut2exe strips the white spacing for you! ;)

Jos

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

OK thanks

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now