I just upgraded from UE ver 13.? to ver 14.10.0.1024 I understand stuff changed, yada yada yada. That all said, I reduced my issues to the lowest common denominator, and this is what I have.
New language file added to WORDFILE.UEW
(Yes it's only three lines long)
As I type an "if/else" statement with a nested "if" under the "else" the auto indents work perfectly. The code shows up as:
Now I highlight the text, select "Format"->"ReIndent Selection", the code converts to:
Why does it work correctly when typing, but not with "ReIndent Selection"?
I've tried everything I can think of to get the proper indentation, but nothing works. Can anyone please help? I'm totaly anal about proper indentation, and this is slowing sapping my will to live.
I promised I did look around the forum for a solution, but couldn't find the exact problem I'm seeing. If I missed it, please reply with the proper link. Thanks in advance for your time and consideration!
New language file added to WORDFILE.UEW
Code: Select all
/L15"MyTest" Line Comment = # File Extensions = TCL TK
/Indent Strings = "{"
/Unindent Strings = "}"
As I type an "if/else" statement with a nested "if" under the "else" the auto indents work perfectly. The code shows up as:
Code: Select all
if {$x == 100} {
puts "Line 1"
} else {
if {$x == 200} {
puts "Line 2"
}
}
Code: Select all
if {$x == 100} {
puts "Line 1"
} else {
if {$x == 200} {
puts "Line 2"
}
}
I've tried everything I can think of to get the proper indentation, but nothing works. Can anyone please help? I'm totaly anal about proper indentation, and this is slowing sapping my will to live.
I promised I did look around the forum for a solution, but couldn't find the exact problem I'm seeing. If I missed it, please reply with the proper link. Thanks in advance for your time and consideration!