Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-10-2008
Member
 
Join Date: May 2008
Posts: 130
C++ formatter/beautifier?

Hello

I am wondering if anybody can point me to a good, free C++ formatter/beautifier. I'm looking for something that offers the level of control that the Unix/Linux 'indent' program provides, but for C++ (indent has some quirks when applied to C++). I have spent a while Googling for something along these lines, but haven't come up with anything, only various very basic formatting programs like Artistic Style. It would be best if someone could point me to an open-source program, but I'm willing to work with something that's free .
Reply With Quote
  #2  
Old 25-10-2008
Member
 
Join Date: May 2008
Posts: 130
Re: C++ formatter/beautifier?

This is a parsing tool and a universal source code generator that interprets a scripting language. The language provides the function
'indentFile()'.

If you just have a file to indent, write a single-line script, called "indent.cws" for instance:
indentFile("my-C++-file.cpp");

and type:
codeworker indent.cws

If you have more files to indent, change "indent.cws" to:
forfile i in "*.cpp" indentFile(i);
forfile i in "*.h" indentFile(i);
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "C++ formatter/beautifier?"
Thread Thread Starter Forum Replies Last Post
Scrivener: Ebook formatter and converter? tHeDa! Ebooks 7 04-03-2012 12:27 PM


All times are GMT +5.5. The time now is 01:57 PM.