News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Setting Whitesmith-like indenting style

Started by nightlight, October 04, 2010, 05:33:18 AM

Previous topic - Next topic

nightlight

Is it possible to configure formatting style that is almost like Whitesmith's, except that function braces are not indented i.e. like this:

int func(int a,int b)
{ int c;

   if (a>=b)
     {
      c=a-b;
      if (a==b)
         {
          ...
          }
      ... other code...
      }
   else
     {
      c=b-a;
      ...
     }
   return c;
}

I tried variety of settings, but it seems that function braces are always treated as any other braces. Can this be configured some way (maybe some other way to configure Artistic Style plugin)?