473,594 Members | 2,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Source code formatter?

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
8 5459
Sourcestyler is a better tool for c\c++ source file style.
"Surendra Singhi" <ef*******@nets cape.net>
??????:ir****** ****@netscape.n et...
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
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

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
look for the "astyle" package at sourceforge.

Nov 22 '05 #5
Surendra Singhi <ef*******@nets cape.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
Surendra Singhi wrote:
Hello,
Are there any good open source C/C++ source code formatter?


What about GNU indent?

Nov 22 '05 #7
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
"Stewart Gordon" <sm*******@yaho o.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 "prettyprin ter" seem equally used for this type of program,
across many different languages.

-- IDB
Nov 27 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7010
by: farseer | last post by:
Hi, does anyone out there use Eclipse 3.0.1 as their Java Editor? >From menu "Window->Preferences->Java->Code Style->Code Formatter", i created a new Code Formatter profile and set it up how i want. However, when editing code in eclipse i do not see any of the formatting specifications being applied in my code. For instance, this code: public Component getIndicator(int x, int y);
1
2565
by: M.E.Farmer | last post by:
Hello c.l.py!, I have just finished this and decided to share. PySourceColor is a module to convert Python source into colored html. Yes it has been done before, but I like this better:) You can easily define your own colorscheme. example usage: # Highlight PySourceColor.py python PySourceColor.py or # Show help
15
3374
by: Enzo | last post by:
Hi Ng, It's possible to protect the source code of a js file? With PHP? Thanks in advance! Enzo
1
4421
by: CLEAR-RCIC | last post by:
I have a piece of code that works in C# but when I convert it to VB.Net I get the following error: "Cannot deserialize the message passed as an argument. Cannot recognize the serialization format." C# Code ----------- System.Messaging.MessageQueue myInputQueue = new System.Messaging.MessageQueue(@".\Private$\InputQueue"); ((XmlMessageFormatter)myInputQueue.Formatter).TargetTypes = new Type{typeof(Order)};
4
5972
by: Patrick De Ridder | last post by:
Which library should I include for the formatter in formatter.Serialize(output, record); Many thanks. -- Patrick De Ridder ngmail@freeler.nl
2
2420
by: alexandre martins | last post by:
Every time i try to make Deserialize the computer gives me the folowing error: "End of Stream encountered before parsing was complete" the code that i'm running is simple and is based on an MSDN example. The CODE is BELOW this lines. If you see something wrong or missing please answer. Class declaration:
0
1277
by: apexi.200sx | last post by:
Just wondering if anyone could give me advice on handling potential error conditions in python, it seems that exceptions are used alot more for this stuff than in other languages. I have provided a code sample giving an example of a first attempt at using them (in python anyway) and also I have given an example of using the logging module I intend to use to replace all the print statements... it seems hassle to set up, but I think...
1
1288
by: CMOS | last post by:
hi, is there a source formatter available that sorts .h file contents according to access? CMOS
2
1714
by: Ole Mercano | last post by:
When I insert a new Eventhandler or function VS 2005 does this automatically with an indent which I don't like. Furthermore I would change the curly bracket handling. Is there soemthing like a built-in source code beautifier which re-arranges the source code according to my personal preferences ? Ole
0
8255
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8010
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8242
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6665
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5739
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5413
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3868
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.