By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,952 Members | 1,411 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,952 IT Pros & Developers. It's quick & easy.

Source code formatter?

P: n/a
Hello,
Are there any good open source C/C++ source code formatter?

Thanks for your help.
--
Surendra Singhi
http://www.public.asu.edu/~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
`----

Nov 22 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Sourcestyler is a better tool for c\c++ source file style.
"Surendra Singhi" <ef*******@netscape.net>
??????:ir**********@netscape.net...
Hello,
Are there any good open source C/C++ source code formatter?

Thanks for your help.
--
Surendra Singhi
http://www.public.asu.edu/~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
`----

Nov 22 '05 #2

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

http://msdn.microsoft.com/vstudio/express/visualc/

--
EventStudio System Designer 2.5 - http://www.EventHelix.com/EventStudio
Sequence Diagram Based System Design and Object Modeling Tool

Nov 22 '05 #3

P: n/a

EventHelix.com wrote:
Visual C++ 2005 Express Edition has a pretty good source formatter
built into it. It is available for $0.00.
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.
From the website:

"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.scintilla.org/

Nov 22 '05 #4

P: n/a
look for the "astyle" package at sourceforge.

Nov 22 '05 #5

P: n/a
Surendra Singhi <ef*******@netscape.net> wrote:
Hello,
Are there any good open source C/C++ source code formatter?


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

--
Marcus Kwok
Nov 22 '05 #6

P: n/a
Surendra Singhi wrote:
Hello,
Are there any good open source C/C++ source code formatter?


What about GNU indent?

Nov 22 '05 #7

P: n/a
Surendra Singhi wrote:
Hello,
Are there any good open source C/C++ source code formatter?

Thanks for your help.


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.
Nov 22 '05 #8

P: n/a
"Stewart Gordon" <sm*******@yahoo.com> wrote in message
news:dl**********@sun-cc204.lut.ac.uk...
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.


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
Nov 27 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.