giangnguyen Posted March 24, 2016 Share Posted March 24, 2016 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 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 24, 2016 Moderators Share Posted March 24, 2016 @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 ericbartha 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
giangnguyen Posted March 25, 2016 Author Share Posted March 25, 2016 Well, I actually tested already and in some cases it worked, in some it did not. So I just wanna make sure Link to comment Share on other sites More sharing options...
Unc3nZureD Posted March 25, 2016 Share Posted March 25, 2016 (edited) Well, then you might have made something wrong. TABS are not changing the code execution in any way! They are 100% optional. Edited March 25, 2016 by Unc3nZureD Link to comment Share on other sites More sharing options...
giangnguyen Posted March 25, 2016 Author Share Posted March 25, 2016 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) Link to comment Share on other sites More sharing options...
Developers Jos Posted March 25, 2016 Developers Share Posted March 25, 2016 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 Dgameman1 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
giangnguyen Posted March 26, 2016 Author Share Posted March 26, 2016 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! Link to comment Share on other sites More sharing options...
Developers Jos Posted March 26, 2016 Developers Share Posted March 26, 2016 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 Dgameman1 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
giangnguyen Posted March 27, 2016 Author Share Posted March 27, 2016 OK thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now