I would really like the Export scripting format to support comments. I have scripts that are way too complex not to need embedded documentation!
To retain script compatibility 100%, I suggest:
[[ start comment, extending to end of line
e.g.
$loop(%dummy%)[[ this is a comment
$loop(%dummy%)'[[' this is NOT a comment
Or lose compatibility with any script using the nonsense but legal construct [[...]], for the much better
[[ start comment, extending to next ]] else end of line
e.g.
$loop(%dummy%)[[ this is a comment
$loop(%dummy%)'[[' this is NOT a comment
$loop(%dummy%)[[ this is a comment ]]
%album%
$loop(%dummy%)[[ this is a comment ']]' including this too]] |
%album% |
1 Like
Yes, to have a native comment facility in export scripts is badly needed.
Well, I did it so far by $puts(REM,'This is a comment.')
chrisjj, do you found a nice trick to do this with square brackets?
What's about using of a string like %title% in the "[[..." resp "[[...]]" comment area, should it to be escaped to '%title%' or what???
DD.20090809.1758.CEST
Well, I did it so far by $puts(REM,'This is a comment.')
Nice trick...
but does it work in loops? only kidding! 
What's about using of a string like %title% in the "[[..." resp "[[...]]"
comment area, should it to be escaped to '%title%' or what???
In my proposal [[ %title% ]] is a comment. There is no need to escape anything - escaping would be a real PITA.