AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Beta Online Auto-Indenter (https://forums.alliedmods.net/showthread.php?t=9267)

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.

Ramirez 01-11-2005 23:02

GREAT tool!
I will definetly use it for all my plugins!
Thanks a lot and good work :D

Geesu 01-12-2005 09:32

Any possible source code release? I just want to see how u did it

XxAvalanchexX 01-12-2005 13:44

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

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

EDIT: ...Link fixed.

f1del1ty.oXi 01-12-2005 13:46

lmao wrong url. :P

Much <3 ava :D

Geesu 01-12-2005 16:27

LOL :P

XxAvalanchexX 01-12-2005 21:57

Well, it worked for me when I tested it. =P It really works now.

Da Bishop 01-13-2005 11:52

:D don't think local address will work for the public tho... link works now tho

nightscreem 04-07-2005 17:10

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

v3x 04-07-2005 17:20

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 ..


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

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