Question to indentation sheme

Working on new editor enhancements?
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Question to indentation sheme

Post 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 !!!
Last edited by es_91 on Wed Jun 04, 2025 7:58 am, edited 1 time in total.
:mrgreen:
User avatar
HeX0R
Addict
Addict
Posts: 1187
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Question to indentation sheme

Post by HeX0R »

;{ and ;} are preset for folding functionality, I guess you have to remove them from there first (Preferences / Editor / Folding)
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: Question to indentation sheme

Post 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
:mrgreen:
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: Question to indentation sheme

Post by es_91 »

Could be in correspondance to this one: viewtopic.php?p=630710
:mrgreen:
Post Reply