| XxAvalanchexX |
01-11-2005 22:00 |
Beta Online Auto-Indenter
http://www.avalanche.epherion.com/indenter/
This is a script I actually wrote for myself. When I started scripting, I used one-space-indenting, which is for every new if statement I delved into I would only add one extra space. Eventually I realized how ugly and hard to read this was. So, I used PHP to solve my problems, instead of going through 3,310 lines of code and re-indenting it myself.
I'm posting this for users to use as well. A few things to note: This is a beta, and that will probably be as far as it ever gets, so things can go wrong. If your code won't even compile without invalid indentation warnings in the first place then this will most likely not work correctly. If you use braces or comment blocks inside of a string it will probably generate an error. It should work with most coding styles, but the results may still be unwanted.
Also, if you find some way to abuse the uploader to attack my web host, good for you, but please don't use it. And yes, your indented SMA files are temporarily uploaded onto my host until they get cleared automatically, and I promise you I will not take a look at your code, but if you still feel unsafe then it woud be best not to use this in the first place.
Thank you.
|