How do I add code comments to a Thimble project?

Никой все още не е помогнал за превода на тази статия. Ако вече знаете как работи локализирането за SUMO, започнете да превеждате сега. Ако искате да научите как да превеждате статии за SUMO, моля, започнете от тук.

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]

Беше ли ви полезна тази статия?

Моля, изчакайте...

Тези добри хора помогнаха с написването на статията:

Illustration of hands

Помогнете

Развивайте и споделяйте своя опит с другите. Отговаряйте на въпроси и подобрете нашата база от знания.

Научете повече