How do I add code comments to a Thimble project?

Kukaan ei ole vielä auttanut kääntämään tätä artikkelia. Jos tiedät jo, miten SUMOssa lokalisoidaan, voit aloittaa kääntämisen nyt. Jos haluat oppia, miten SUMO-artikkeleita käännetään, aloita tästä.

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]

Oliko tästä artikkelista apua?

Odota hetki...

Seuraavat hienot ihmiset auttoivat kirjoittamaan tämän artikkelin:

Illustration of hands

Ilmoittaudu

Kasvata ja jaa asiantuntemustasi muiden kanssa. Vastaa kysymyksiin ja paranna tietämystämme.

Lue lisää