It is currently Sat Jan 23, 2021 2:28 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Indentation Settings
PostPosted: Tue Apr 12, 2016 9:01 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu May 11, 2006 1:04 am
Posts: 398
Location: Florida, USA
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:
;{ 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:
;{ 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 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Indentation Settings
PostPosted: Wed Apr 13, 2016 1:26 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Apr 16, 2007 3:57 am
Posts: 464
Location: Germany, NRW
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:
;> 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)


Top
 Profile  
Reply with quote  
 Post subject: Re: Indentation Settings
PostPosted: Wed Apr 13, 2016 9:25 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu May 11, 2006 1:04 am
Posts: 398
Location: Florida, USA
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 !


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye