# Scripting comment

**URL:** https://community.mp3tag.de/t/scripting-comment/8746
**Category:** General Discussion
**Created:** [August 9, 2009, 1:45pm UTC](https://community.mp3tag.de/t/scripting-comment/8746 "2009-08-09T13:45:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 9, 2009, 1:45pm UTC](https://community.mp3tag.de/t/scripting-comment/8746/1 "2009-08-09T13:45:40Z")

</div>

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%

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 9, 2009, 1:58pm UTC](https://community.mp3tag.de/t/scripting-comment/8746/2 "2009-08-09T13:58:54Z")

</div>

> [@chrisjj](#):
>
> ... I would really like the Export scripting format to support comments. I have scripts that are way too complex not to need embedded documentation! ...

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

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 9, 2009, 2:31pm UTC](https://community.mp3tag.de/t/scripting-comment/8746/3 "2009-08-09T14:31:40Z")

</div>

> 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.
