Welcome Guest.   Make a donation to an author on the site February 09, 2010, 09:10:51 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Wanted: Comparison of code beautifiers  (Read 536 times)
Tuxman
Supporting Member
**
Posts: 316


View Profile WWW Give some DonationCredits to this forum member
« on: November 15, 2009, 08:37:46 AM »

I am currently digging through stuff like astyle, but I don't really have the time and knowledge to see which of the several code beautifiers does the most interesting stuff. Is there some kind of a comparison?
Logged

MilesAhead
Member
**
Posts: 1,331



View Profile Give some DonationCredits to this forum member
« Reply #1 on: November 19, 2009, 04:32:54 PM »

LIkewise if anyone knows of good ones for AHK I'd appreciate it.  Right now the closest I've found is Auto-Syntax-Tidy v12.  But it's not consistent.

I'm looking for a beautifier, preferably in-editor, to hit a button and reformat the code sort of like DelForEx in Delphi... not just syntax highlight.

Auto-Syntax-Tidy v12 does it, but sometimes it indents the braces so that they don't line up with the first character in the statement above(it indents the braces an extra level sometimes, sometimes not. If I have to go back and out-dent manually then that kills the reason for using it.)

Logged

“Do not fear mistakes. There are none."
- Miles Davis
wraith808
Supporting Member
**
Posts: 630



"In my dreams, I always do it right."

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: November 20, 2009, 02:31:39 PM »

No comparison, but I've used SourceFormatX for a while, and I really like it.  Decently priced, a GUI with preview for tweaks to how it handles formatting, and a decent editor...

http://www.sourceformat.com/code-formatter.htm
Logged

Tuxman
Supporting Member
**
Posts: 316


View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: November 20, 2009, 02:52:36 PM »

For that I'd recommend the UniversalIndentGUI which is actually free:

http://universalindent.sourceforge.net

It includes a bunch of code beautifiers but doesn't actually compare them...
Logged

MilesAhead
Member
**
Posts: 1,331



View Profile Give some DonationCredits to this forum member
« Reply #4 on: November 20, 2009, 04:45:55 PM »

For what it's worth I did use astyle a bit with Visual C++ 6.  It did the job from the command line but I never figured a way to have it work in the IDE.  I got so used to DelForEx checking my code in Delphi that it's tough to do without something similar.  Visual Studio had a built-in one that worked on selected blocks.  I got by with that.  But for reformatting a whole file, such as code found on web sites or done in a different style, astyle was ok.

For AHK I found that by backing off Scite to 1.73 and disabling folding, I could run the Tidy utility I mentioned to take care of capitalization, then use the built-in Indent Checker command to fix the braces if needed.  2 steps but better than loading an output file and renaming.
« Last Edit: November 20, 2009, 04:47:51 PM by MilesAhead » Logged

“Do not fear mistakes. There are none."
- Miles Davis
Pages: [1]   Go Up
  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
SMF © 2006-2009, Simple Machines LLC

social bookmark this page