Comment
Posted: Tue Apr 15, 2025 7:16 am
How to make a large piece of code comment?
Code: Select all
CompilerIf 0
a$="Hello"+#CRLF$
a$+"there"
MessageRequester("This block is ignored",a$)
CompilerEndIf
Code: Select all
;{ Here a big comment (Unfold to read in full)
; bla
; bla
; bla
;}
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 ;}
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 ;}
This is only my problem, since I use my tool to correct indentation