unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* code beautification
@ 2004-12-02 15:32 Thomas Ruschival
  2004-12-02 16:27 ` Henrik S. Hansen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Thomas Ruschival @ 2004-12-02 15:32 UTC (permalink / raw)


I got a lot of old code that was produced by some IDE. 
the IDE used this indentation style
if(1>2)
{
	printf("Hello World!");
}

I personally prefer the K&R c-style over this and furthermore I have the habit of putting curly braces after each if,for,while,do I don't like code like 
if (2<3)
	printf("hello world");

My problem is now I don't know how to build a regexp that works over several lines with backrefs.

The "missing" Curly Braces are not important but changing the syle would be nice. 

Anyone an idea how to reformat code in that way?

Thomas

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-02 23:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3121.1102005569.27204.help-gnu-emacs@gnu.org>
2004-12-02 22:22 ` code beautification Thomas Ruschival
2004-12-02 15:32 Thomas Ruschival
2004-12-02 16:27 ` Henrik S. Hansen
2004-12-02 22:27   ` Thomas Ruschival
2004-12-02 16:28 ` EScott
2004-12-02 23:09 ` Leonardo Boiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).