Indentation Settings

Working on new editor enhancements?
User avatar
Mohawk70
Enthusiast
Enthusiast
Posts: 400
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Indentation Settings

Post by Mohawk70 »

For some reason I'm having an issue withe PB 5.42 ( Windows ) 32 & 64 indentation settings in the IDE

I have multiple versions of PB including 4.61 - with the same settings in each version - however 5.42 does

not work correctly.

Example : in 4.61

Code: Select all

;{ Section Name / Description
  For i = 1 To 100
   j = j + 1
  Next
  ;[ Sub-Section Name / Description
    For i = 1 To 100
     j = j + 1
    Next
    ;( Sub-Sub-Section Name / Description
      For i = 1 To 100
       j = j + 1
      Next
      ;< Sub-Sub-Sub-Section Name / Description
        For i = 1 To 100
         j = j + 1
        Next
      ;>
    ;)
  ;]
;}
Display in 5.42

Code: Select all

;{ Section Name / Description
For i = 1 To 100
 j = j + 1
Next
;[ Sub-Section Name / Description
For i = 1 To 100
 j = j + 1
Next
;( Sub-Sub-Section Name / Description
For i = 1 To 100
 j = j + 1
Next
;< Sub-Sub-Sub-Section Name / Description
For i = 1 To 100
 j = j + 1
Next
;>
;)
;]
;}
Anybody else have this issue or a fix ?
PureLust
Enthusiast
Enthusiast
Posts: 477
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: Indentation Settings

Post by PureLust »

Mohawk70 wrote:Anybody else have this issue or a fix ?
1st of all, I think you use the ";>" and ";<" the wrong way, because ";>" usualy increases the indent and ";<" decrease the indent.
Further I did not get the same result as you, because ";{", ";[" and ";(" are not defined as standard PB-Indentations (as far as I know) and so they are not defined in my BP-IDE to generate an indentation.

But I detected a very annoying behavior as well, since the IDE auto-aligns semicolon.

Foldable code like this does not generate the result you would expect from it:

Code: Select all

;> Section Name / Description
	For i = 1 To 100
		j = j + 1
	Next
	;<
;> Sub-Section Name / Description
	For i = 1 To 100
		j = j + 1
	Next		;<
;> Sub-Sub-Section Name / Description
	For i = 1 To 100
		j = j + 1
	Next
	;<
I already asked on the german forum for a way to disable this really obstructive 'feature', but no one seems to have a solution to deactivate it any more.
Maybe this new 'miss'-feature is also responsible for the Problems you've mentioned.
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
User avatar
Mohawk70
Enthusiast
Enthusiast
Posts: 400
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: Indentation Settings

Post by Mohawk70 »

Was not aware of the auto aligning of semi-colons in the editor. I have always used semi-colon and the curly brackets , square brackets , parentheses , and lt / gt as custom keywords for folding AND indentation - it is a great way to visually separate and label sections of code in the editor - to easily find specific sections of code and as a way of commenting / documenting source code. I much prefer the old way , but oh well. Guess it is time to create my own editor for the IDE !
Post Reply