How do I add code comments to a Thimble project?

Tsy mbola nisy olona nanampy t@ fandikana an'ity lahatsoratra ity. Raha efa fantatrao ny fandehan'ny fandikanteny ho an'i SUMO, dia manomboha mandika izao. Raha te-hianatra ny fomba fandikana lahatsoratra ho an'i SUMO ianao, dia manomboha eto azafady.

Code comments do not show up when the page is rendered, and can be a helpful way to communicate information to remixers, directly in the code, in context. This could include instructions for things to remix, coding tips, etc.

To add a comment to an HTML file, use this syntax

<!--your comment here-->

To add comments to a CSS file, use this syntax

 /* your comment here */

To add a single-line comment to a JavaScript file, use this syntax

// your comment here [be sure to include a line break at the end of your comment]

Nanampy ve ity lahatsoratra ity?

Andraso azafady…

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Learn More