ReIndent Selection

Syntax highlighting, code folding, brace matching, code indenting, and function list

Re: ReIndent Selection

Postby dleach » Tue May 29, 2007 12:44 pm

Okay, now when I reindent the following:

Code: Select all
function a ()
{
    if (a==1)
    {
         b = 1;
     }
     else
     {
         c = 2;
     }
}

I get the following:

Code: Select all
function a ()
{
    if (a==1)
    {
         b = 1;
     }
else
     {
         c = 2;
     }
}
User avatar
dleach
Newbie
 
Posts: 3
Joined: Thu May 24, 2007 11:00 pm

Re: ReIndent Selection

Postby Mofi » Tue May 29, 2007 1:56 pm

Sorry, but if you use different coding styles within your source files you will have never luck to get an UltraEdit indent/unindent setting which works. Maybe you better use some regular expression search and replaces to convert your code into the same coding style and don't mix it anymore in future.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: ReIndent Selection

Postby dleach » Tue May 29, 2007 3:27 pm

I found a tool from Crossbow Software called SourceFormatX which seems to be very robust and handles any convolution of coding... Guess I'll integrate that one into UE...
User avatar
dleach
Newbie
 
Posts: 3
Joined: Thu May 24, 2007 11:00 pm

Re: ReIndent Selection

Postby toddm » Wed Jun 06, 2007 12:57 pm

Did you try Artistic Style? I have used it in quite a while, but it comes integrated with UE and worked well for me in the past. I think it supports C++ and Java.
User avatar
toddm
Advanced User
Advanced User
 
Posts: 83
Joined: Wed Jul 28, 2004 11:00 pm

Previous

Return to Syntax Highlighting