How do I add code comments to a Thimble project?

Ingen har hjälpt till att översätta den här artikeln än. Om du redan vet hur översättning för SUMO fungerar, börja översätta nu. Om du vill lära dig hur man översätter artiklar för SUMO, vänligen börja här.

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]

Var den här artikeln till hjälp?

Vänligen vänta...

Dessa fina personer hjälpte till att skriva den här artikeln:

Illustration of hands

Bli volontär

Väx och dela din expertis med andra. Svara på frågor och förbättra vår kunskapsbas.

Läs mer