Is This STILL The Way to Make Notes / Comments in Shopify Theme Code?

I haven’t done any coding to a Shopify Theme in awhile now.

Just a quick, easy, and probably STUPID question:

Is This Still a Valid / Good Way to Make Notes / Comments in Shopify Template Code:

/* Write whatever you wand here - it will be greyed out and won’t affect anything - it is just for your own personal reference and making notes */

Basically just putting text inside these tags: /* text here */

It still appears to work just fine. Is this STILL the Way to Add Notes to your Code?

Thanks.

@Beyblade-Gamer - yes, it is called commenting the code, and it is correct way to add notes to your code.

When editing the code in liquid files, you can use standard HTML comments, which will not display on the page itself but your customers will be able to see if they click “view source” to view the code of the page they are looking at:


For comments that do not appear to the customer at all, use the Liquid comment tag:

{% comment %}Enter your comments here{% endcomment %}