Posts: 970
Threads: 77
Joined: Jun 2002
[salesman]Have you ever posted code on a forum or sent it to a person and they said your code was sloppy? Ever tried to get help and then told that your code was not understandable?
Well you can fix that now with the ease of copy/paste. Here's what you do.
With those five steps, your code will go from looking like this:
Code:
for x = 1 to 20
if r = 2 then
x = x + 2
end if
next x
To this:
Code:
for x = 1 to 20
if r = 2 then
x = x + 2
end if
next x
Auto-Indentor created by Zap. Hosted on
qbtk's hosting, but with no mention of
qbtk's on the site.
Thanks
Posts: 1,166
Threads: 62
Joined: Apr 2003
looks like something ColinWurks did years ago, only his was a VB program.
am an asshole. Get used to it.
Posts: 2,771
Threads: 96
Joined: Oct 2003
Posts: 970
Threads: 77
Joined: Jun 2002
Quote:looks like something ColinWurks did years ago, only his was a VB program.
Yeah, there used to be a qb version IIRC.
Posts: 292
Threads: 31
Joined: Apr 2003
Wow! An "Aga -- The Rest of Us" translater! Someone should send him a copy.
:rotfl:
Posts: 2,771
Threads: 96
Joined: Oct 2003
unfortunately for aga, it does not remove:
- Line numbers
- gotos
- wierd looping styles
hehe
Hey... where is aga? COME BACK AGA! dont leave us! I just realised I havent seen him in ages!
Posts: 3,343
Threads: 83
Joined: Mar 2003
Hey cool, this gives me an idea for my new project... rrrrrrrrrsssssshhhh
I see you're using a <pre> for it though. Do you want code to indent using instead?
Posts: 6,419
Threads: 74
Joined: Mar 2002
Yeah, where's Agamemnus? It would be a pitty to lose one of the best coders here. He may code in the AGA WAY, but he gets the job done, and quite well. We need him back.
Sumo: Great app
Posts: 970
Threads: 77
Joined: Jun 2002
Don't praise me. Zap does the php stuff. He coded quickhost and this from scratch. I'm just the slavedriver.
Posts: 838
Threads: 17
Joined: Jan 2002
Quote:looks like something ColinWurks did years ago, only his was a VB program.
Yeah I got the idea because someone at qbtk, not mentioning names to keep Dr_ds privacy, didn't know how to indent code properly, and then he said that there used to be a program that could that stuff. Yet none of us could remember where it had been, so I went coding it in QB, then translated it to php to share with all
Oracle: I thought about that, but it seems more qb-stylish to use <pre>. I know it could have been done using css and stuff, but I'm in the middle of exams, so it would have to wait. I'm adding a "View Code" link later today so anyone interested can see how it's done, cuz it's really fairly easy.
And thanks everyone.
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta