Primerjaj revizije

How do I add code comments to a Thimble project?

Revizija 110514:

Revizija 110514 uporabnika hannahkane dne

Revizija 297904:

Revizija 297904 uporabnika AliceWyman dne

Ključne besede:

Povzetek rezultatov iskanja:

Code comments do not show up when the page is rendered, and can be a helpful way to communicate information to people remixing your project.
Code comments do not show up when the page is rendered, and can be a helpful way to communicate information to people remixing your project.

Vsebina:

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== <code><<!-- -->!--your comment here--> <!-- --></code> ==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]
{warning}Mozilla made a decision to sunset Thimble over the course of 2018-2019. Read about the [https://www.mozillafoundation.org/en/artifacts/webmaker-thimble/#history history of Thimble] and see [https://medium.com/read-write-participate/a-note-about-thimble-b8ba0a51b8fd this Dec 18, 2018 blog post] to learn more.{/warning}<!-- https://github.com/mozilla/thimble.mozilla.org?tab=readme-ov-file#deprecation-notice --> 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== <code><<!-- -->!--your comment here--> <!-- --></code> ==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]

Nazaj v zgodovino