Raised This Month: $ Target: $400
 0% 

Beta Online Auto-Indenter


Post New Thread Reply   
 
Thread Tools Display Modes
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
Ramirez
Member
Join Date: Aug 2004
Old 01-11-2005 , 23:02  
Reply With Quote #2

GREAT tool!
I will definetly use it for all my plugins!
Thanks a lot and good work
Ramirez is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-12-2005 , 09:32  
Reply With Quote #3

Any possible source code release? I just want to see how u did it
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-12-2005 , 13:44  
Reply With Quote #4

Sure, although I could've done a better job.

http://avalanche.epherion.com/indenter/source.php

EDIT: ...Link fixed.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 01-12-2005 , 13:46  
Reply With Quote #5

lmao wrong url.

Much <3 ava
__________________
f1del1ty.oXi is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-12-2005 , 16:27  
Reply With Quote #6

LOL
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-12-2005 , 21:57  
Reply With Quote #7

Well, it worked for me when I tested it. =P It really works now.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 01-13-2005 , 11:52  
Reply With Quote #8

don't think local address will work for the public tho... link works now tho
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best

~live by it
Da Bishop is offline
Send a message via MSN to Da Bishop
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-07-2005 , 17:10  
Reply With Quote #9

sry don't really get what it does maybe an examples what it does because i used it but I don't see a diffrent maybe only a little diffrence
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-07-2005 , 17:20  
Reply With Quote #10

Quote:
Originally Posted by nightscreem
sry don't really get what it does maybe an examples what it does because i used it but I don't see a diffrent maybe only a little diffrence
What's there to get? You stick your sma file in there, it indents it for you ..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply


Thread Tools
Display Modes

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