Page 1 of 1

Folding for Multi-Line Comments

Posted: Fri Feb 03, 2017 7:30 pm
by c4s
Automatically add the folding option to multiple lines that only consist of comment -- meaning more than one line of any number of spaces/tabs plus "; [...]" like:

Code: Select all

; This is a fancy multi-line comment
; explaining the following procedure.
; Here I would like to have the folding
; option on the left, please. :)
Procedure MyProc()
EndProcedure

; Here too! Having to use ;{ and ;} would look kind of
; ugly. Especially for "PbDoc"-like procedure comments as above.

#MY_CONST_1 = 1      ; Not here though.
#SECOND_CONST = 2   ; It's not just space in front of it

Re: Folding for Multi-Line Comments

Posted: Fri Feb 03, 2017 8:16 pm
by User_Russian

Code: Select all

;{ This is a fancy multi-line comment
; explaining the following procedure.
; Here I would like to have the folding
;} option on the left, please. :)

Re: Folding for Multi-Line Comments

Posted: Fri Feb 03, 2017 8:20 pm
by c4s
User_Russian wrote:

Code: Select all

;{ This is a fancy multi-line comment
; explaining the following procedure.
; Here I would like to have the folding
;} option on the left, please. :)
Thanks for your input. :) But as I said above (in the code block) I think it looks very ugly in my use-case, no?! Wouldn't it be great if comment-blocks would be detected automatically as in other IDEs?

Re: Folding for Multi-Line Comments

Posted: Wed Feb 08, 2017 9:26 pm
by Tenaja
c4s, which other IDE's recognize blocks of comments that are commented only by individual lines, as in PB?

Re: Folding for Multi-Line Comments

Posted: Sun Feb 12, 2017 6:05 pm
by c4s
Tenaja wrote:c4s, which other IDE's recognize blocks of comments that are commented only by individual lines, as in PB?
IntelliJ IDEA for example. But I have to admit that I thought/felt more support it (just checked VS Code, Notepad++ and Eclipse).