all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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
[parent not found: <mailman.3121.1102005569.27204.help-gnu-emacs@gnu.org>]

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 --
2004-12-02 15:32 code beautification 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
     [not found] <mailman.3121.1102005569.27204.help-gnu-emacs@gnu.org>
2004-12-02 22:22 ` Thomas Ruschival

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.