Source code formatter?

Source code formatter?

Post by Surendra S » Fri, 18 Nov 2005 11:52:23


Hello,
Are there any good open source C/C++ source code formatter?

Thanks for your help.
--
Surendra Singhi
http://www.yqcomputer.com/ ~sksinghi/index.html

,----
| "O thou my friend! The prosperity of Crime is like unto the lightning,
| whose traitorous brilliancies embellish the atmosphere but for an
| instant, in order to hurl into death's very depths the luckless one
| they have dazzled." -- Marquis de Sade
`----
 
 
 

Source code formatter?

Post by apex. » Fri, 18 Nov 2005 11:55:20

Sourcestyler is a better tool for c\c++ source file style.
"Surendra Singhi" < XXXX@XXXXX.COM >
??????: XXXX@XXXXX.COM ...

 
 
 

Source code formatter?

Post by EventHelix » Fri, 18 Nov 2005 12:24:04

Visual C++ 2005 Express Edition has a pretty good source formatter
built into it. It is available for $0.00.

http://www.yqcomputer.com/
 
 
 

Source code formatter?

Post by Michael O' » Fri, 18 Nov 2005 13:12:43


The requirement was 'open source', not free, so much as I like VC for
basic tasks like formatting, compiling, managing projects (just the
basics, I don't need the wizards) it doesn't meet the minimum
standards.

This one is distributed with some of the the Ruby downloads, and also
seems popular for C++, and many other languages, according to their
"related projects" page. Judging from the 'look and feel' it seems to
borrow quite a bit from Emacs, and note under "Documents" the reference
to the book "The Craft of Text Editing", about Emacs.

"Scintilla is a free source code editing component. It comes with
complete source code and a license that permits use in any free project
or commercial product."

http://www.yqcomputer.com/
 
 
 

Source code formatter?

Post by nitroamo » Fri, 18 Nov 2005 13:23:22

look for the "astyle" package at sourceforge.
 
 
 

Source code formatter?

Post by ricecak » Fri, 18 Nov 2005 23:07:28


Vim ( http://www.yqcomputer.com/ ) has one by using the '=' command, and the
source is available.

--
Marcus Kwok
 
 
 

Source code formatter?

Post by Andreas Mi » Sat, 19 Nov 2005 03:18:03


What about GNU indent?
 
 
 

Source code formatter?

Post by Stewart Go » Tue, 22 Nov 2005 20:05:40


Has "formatter" caught on since my time as a synonym for "beautifier"?
At first I thought you were talking about utilities that translate
source code into some document format with syntax highlighting (like
code2html). But all the other replies seem to be talking about
beautifiers. Is this what you meant?

Stewart.

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS-
PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.
 
 
 

Source code formatter?

Post by Ira Baxte » Mon, 28 Nov 2005 09:57:41


People make up names for tools. The terms "formatter", "beautifier"
and "prettyprinter" seem equally used for this type of program,
across many different languages.

-- IDB