PDA

View Full Version : Code Cleaner?



ask
December 9th, 2002, 06:47 PM
Anyone know any ready made programs that clean code up? You know something to run code thru to format it coherently. I think I'm going to make my own, but if there is something already made for this it would save a lot of time.

I hate when people code like this:



if(var)

{

int a = 5;
}


Something to convert code like that into



if(var){
int a=5;
}

Jubba
December 9th, 2002, 07:17 PM
People actually code like that? They should be shot (watch...my coding probly looks like that...)

I know there is something that cleans up HTML, but I don't know about anything else... here is the link to that...

http://www.w3.org/People/Raggett/tidy/

I would try a search on google... you may come up with something

ask
December 10th, 2002, 12:23 AM
I've used tidy. It works well for html and decent for php, but I was looking for one for C++