[EDIT] I'n not sure if ";>" and ";<" are PBs defaults to force an indentation.
If not, please use indentation-keywords from your configuration.
In my case it's set to:
Code: Select all
;> before: 0 after: 2
;< before: 0 after: -2
Code: Select all
; Example WITHOUT indentation keywords - I assume, that's how it should be. (Hint: I use 2 x TAB before the ';')
(Code looks the same after typing and after reformatting it with 'format indentation (Ctrl-I))
If 1 ;
;
Else ;
;
EndIf
Select A ;
;
Case 1 ;
;
Case 2 ;
;
Case 3 ;
;
Default ;
;
EndSelect
; Example WITH indentation keywords - see messed up result after typing the code
; (Looks like, wrong cursor Position is set, after auto-aligning the Remarks (';'). Remark-Alignment should not effect cursor position for next code-part - shouldn't it?)
; (code alignment-routine seems to work ok on 'format indentation' but not after pressing ENTER.)
; [EDIT] I just crosschecked it with PB 5.22 - indentation after pressing ENTER is correct in older Versions and faulty since Remark-alignment was implemented.)
; [Hint;] ;> should increase indentation by 2 after the EOL, and ;< should decrease indentation by 2 after EOL
If 1 ;>
;<
Else ;>
;<
EndIf
Select a ;>
;<
Case 1 ;>
;<
Case 2;>
;<
Case 3 ;>
;<
Default ;>
;<
EndSelect
; Example WITH indentation keywords - result after Format Indentation (Ctr+I) - Indentation from ELSE, CASE, etc. is different to the case where no indentation was used (wrong?).
If 1 ;>
;<
Else ;>
;<
EndIf
Select a ;>
;<
Case 1 ;>
;<
Case 2 ;>
;<
Case 3 ;>
;<
Default ;>
;<
EndSelect