Comments

Proper commenting helps code readability. There are three types of comments you can use in your LZX applications.

  1. XML comments: <!-- -->

  2. OpenLaszlo comments <?ignore ... ?>

  3. Script comments (used in scripts), which are the same as JavaScript comments:

    // or /* */

For example, the code in Listing 1.7 uses two of the three comment types:

Listing 1.7. Using comments
<!-- the main file -->
<canvas height="100">
    <?ignore you can select one of three cities ?>
    <radiogroup>
        <radiobutton text="New York"/>
        <radiobutton text="Chicago"/>
        <radiobutton text="Seattle"/>
    </radiogroup>
</canvas>

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset