Must show off my web-based C++ code beautifier!

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
Hey, all... I am so proud of something I made that I just have to show it off:

C++ Code Beautifier

I made this for my high school's Computer Science classes, but anyone on the Internet can use it freely.
Feel free to make any suggestions on how I can improve it.
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>151</b><br />
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>155</b><br />
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>159</b><br />
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>163</b><br />
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>167</b><br />
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>171</b><br />
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>175</b><br />
// Beautified on Sunday, June 23, 2002 at 5:51 PM.
// http://www.gigacluster.net/indent/
<br />
<b>Warning</b>: Wrong datatype for second argument in call to in_array in <b>/usr/local/apache2/http/html/indent/proc.php</b> on line <b>47</b><br />

 

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
Hmm, perhaps you could tell me what you did to cause that to happen?

edit: I see, you tried to upload a binary file.
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Originally posted by: GigaCluster
Hmm, perhaps you could tell me what you did to cause that to happen?

edit: I see, you tried to upload a binary file.

I don't think so. It was a Windows Text File (C++ source).

 

darkjester

Golden Member
Aug 14, 2001
1,424
0
0
I haven't tried the beautifier (yet), but your Anandtech Quotes page isn't working.

FYI (and bump! :))
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Originally posted by: GigaCluster
Hey, all... I am so proud of something I made that I just have to show it off:

C++ Code Beautifier

I made this for my high school's Computer Science classes, but anyone on the Internet can use it freely.
Feel free to make any suggestions on how I can improve it.

Nice!
But the bit about adding '*' to the left of multiline comments didn't work when I tried it.
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
Originally posted by: singh
Originally posted by: GigaCluster
Hmm, perhaps you could tell me what you did to cause that to happen?

edit: I see, you tried to upload a binary file.

I don't think so. It was a Windows Text File (C++ source).

Same here. Maybe tabs (ASCII 9) make it freak out?
This was regular dos ASCII, with 13/10 EOL delimiters, and I selected DOS/Windows as source.