Raised This Month: $ Target: $400
 0% 

Beta Online Auto-Indenter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-11-2005 , 22:00   Beta Online Auto-Indenter
Reply With Quote #1

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode