Author Topic: Setting Whitesmith-like indenting style  (Read 2703 times)

Offline nightlight

  • Multiple posting newcomer
  • *
  • Posts: 21
Setting Whitesmith-like indenting style
« on: October 04, 2010, 05:33:18 am »
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)?