tags:

views:

89

answers:

1

I'm going to be making changes to my version of GEdit. I would also like to submit some of my code to the actual GEdit team (bug fixes and stuff like that). GEdit uses a standard to format code like so:

static void hello( GtkWidget *widget,
                   gpointer   data )
{
    g_print ("Hello World\n");
}

Which I forget (can't stand) to use. I format my code like so:

static void hello(GtkWidget *widget, gpointer data)
{
    g_print("Hello World\n");
}

I was just wondering if there was a program that I could run on my code that would format my code to comply to GEdit's standards?

+5  A: 

I think GNU indent (http://www.gnu.org/software/indent/) is what you need.

vs
Thank you so much! This will be a big help!
Lucas McCoy