Artistic Style modification

General and specific configuration/INI settings

Artistic Style modification

Postby kishjeff » Thu Apr 19, 2007 6:15 pm

Hi.

I'd like to find out how to tweak the artistic style setting so that my c++ code is formatted a tiny bit differently.

Can someone point me in the right direction? Right now I see indents seem to be happening at length 2, though the minimum I put in was 4.

thanks
Jeff
User avatar
kishjeff
Newbie
 
Posts: 3
Joined: Wed Jun 28, 2006 11:00 pm

Re: Artistic Style modification

Postby Mofi » Fri Apr 20, 2007 12:49 pm

It was the first time that I played with the Artistic Style tool today. So I first read the Artistic Style Formatter dialog help page and also the homepage of Artistic Style.

After first run I have seen that I can see the command line used by UltraEdit when calling Artistic Style in the prompt area (left side) in the status bar at bottom of the UltraEdit window. So I looked on the homepage of Artistic Style what all of them means and the last one -s# was the most interesting one because it specifies the indent spaces. But where does this value come from because it cannot be specified in the dialog?

The help page of UltraEdit for the dialog does not explain it - I will report that omission to IDM support (help was updated).

But I quickly thought in the right direction. The indent spaces value used is the value of Indent Spaces specified in the configuration dialog at Editor - Word Wrap / Tab Settings for the current file extension which was c on my tests with UE v13.00a.

See for example the forum topic extension based tab settings problem how to specify the tab stop value(s) and the number of indent spaces individually for files based on their extensions.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Configuration/INI Settings

cron