Page 1 of 1

Question to indentation sheme

Posted: Wed Jun 04, 2025 7:03 am
by es_91
The keyword sensitive indentation follows a ruleset wich can be changed to support curly brackets only. Personally i like the idea to use the curlies as indentors.

Trying to write a procedure with ;{;}-block inside however fails.

Code: Select all

procedure test ()

;{
	; first line after the bracket is indented

Code: Select all

procedure test ()

;{
; first line after the bracket was indented but is no more
; second line changed the indentation
Seems to work with every PB keyword but not with the brackets. Settings used:

Image

WARNING !!! DON'T MISINTENTIONALLY WASTE YOUR INDENTATION KEYWORD SETTINGS !!!

Re: Question to indentation sheme

Posted: Wed Jun 04, 2025 7:43 am
by HeX0R
;{ and ;} are preset for folding functionality, I guess you have to remove them from there first (Preferences / Editor / Folding)

Re: Question to indentation sheme

Posted: Wed Jun 04, 2025 8:05 am
by es_91
HeX0R wrote: Wed Jun 04, 2025 7:43 am ;{ and ;} are preset for folding functionality, I guess you have to remove them from there first (Preferences / Editor / Folding)
Using 6.20 x64 that didn't change anything. Besides i think that the 'curlies' really belong to the source line folding, since they can do blocks as well as any block keyword.

It seems, however, the bracket blocks work fine in the main scope. Without any keyword block around them they act properly.

But if i try to put them in a if/endIf or procedure/endProcedure block they do not indent automatically on-the-fly. Using Ctrl+i for format indentation, however, sets everything fine.

I am starting to think this really is a bug in the IDE's scintilla processing. Or maybe i don't get this one.


/edit:

Image

Re: Question to indentation sheme

Posted: Wed Jun 04, 2025 8:20 am
by es_91
Could be in correspondance to this one: viewtopic.php?p=630710