Comment
Re: Comment
Select it and press Ctrl+B. To uncomment, select it and press Shift+Ctrl+B.
Or, wrap it with "CompilerIf 0" and "CompilerEndIf" like this:
Or, wrap it with "CompilerIf 0" and "CompilerEndIf" like this:
Code: Select all
CompilerIf 0
a$="Hello"+#CRLF$
a$+"there"
MessageRequester("This block is ignored",a$)
CompilerEndIf
Last edited by BarryG on Tue Apr 15, 2025 9:59 pm, edited 1 time in total.
Re: Comment
...and to make it foldable, prefix and suffix the first and last lines with ;{ and ;}
Code: Select all
;{ Here a big comment (Unfold to read in full)
; bla
; bla
; bla
;}
Re: Comment
This is a great imitation when you want to disable part of the code, but at the same time it remains readable. I think it would be possible to add special tags CommStart - CommEnd or ;cs ;ceBarryG wrote: Tue Apr 15, 2025 8:22 amCode: Select all
CompilerIf 0 a$="Hello"+#crlf a$+"there" MessageRequester("This block is ignored",a$) CompilerEndIf
This method has problems: if you perform "Code Formatting", the indentation disappears and the code becomes almost unreadable.Marc56us wrote: Tue Apr 15, 2025 8:44 amCode: Select all
;{ Here a big comment (Unfold to read in full) ; bla ; bla ; bla ;}
Re: Comment
Hi,AZJIO wrote: Tue Apr 15, 2025 2:41 pmThis method has problems: if you perform "Code Formatting", the indentation disappears and the code becomes almost unreadable.Marc56us wrote: Tue Apr 15, 2025 8:44 amCode: Select all
;{ Here a big comment (Unfold to read in full) ; bla ; bla ; bla ;}
By "Code Formatting", you mean Ctrl + i ?
If Yes, I never have problem, indentation remain OK
(Windows version)
Re: Comment
This is only my problem, since I use my tool to correct indentation
Re: Comment
The only time I've seen the auto-indent in the IDE seriously screw up indentation of comments is if you have a comment after something like a global variable, then another comment on the line under it. It will try to align your comment with the first one 
