Sie sind nicht angemeldet.

1

Donnerstag, 21. April 2011, 23:25

comments in actions

This may sound trivial, but I would love to have a way to insert comments into actions. Not just for my own readability, or for explanations when I create an example for one of my plugins, but also to be able to quickly swap out code.

Line-comments (eg any line starting with # or //) would be a great start, but block comments would be awesome! (/* .... */).

2

Donnerstag, 21. April 2011, 23:48

Hi,

just use the xml comments: <!-- and -->

and internally there is a // comment already available but because of the removing of all whitespaces during xml parsing, it works only to the next ';' character, not the full line like in other languages,

e.g.

Quellcode

1
2
3
trace(1);
//trace(2);
trace(3);

shows:

Quellcode

1
2
1
3


and

Quellcode

1
trace(1);//trace(2);trace(3);

shows also:

Quellcode

1
2
1
3


best regards,
Klaus

3

Freitag, 22. April 2011, 21:14

I figured commenting must have been part of krpano already.
Awesome, thanks