Folding for Multi-Line Comments

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Folding for Multi-Line Comments

Post 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
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User_Russian
Addict
Addict
Posts: 1520
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Folding for Multi-Line Comments

Post 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. :)
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Folding for Multi-Line Comments

Post 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?
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Folding for Multi-Line Comments

Post by Tenaja »

c4s, which other IDE's recognize blocks of comments that are commented only by individual lines, as in PB?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Folding for Multi-Line Comments

Post 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).
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Post Reply