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! (/* .... */).

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

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


    shows:

    Code
    1
    3

    and

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


    shows also:

    Code
    1
    3

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!