Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Commenting out lines in .ss files

Go to End

3 Posts   1335 Views


Community Member, 26 Posts

24 October 2009 at 9:54pm

Edited: 24/10/2009 10:00pm

How do you comment out lines in .ss files? I searched the forum and docs pages but didn't find the answer. I know it's out there somewhere, probably right under my nose, must be looking for the wrong search terms..

// nor /* aren't doing the trick as I had hoped..

**edit - just figured out it's treated as html so <!-- --> works. Never made a webpage before so figuring this all out as I go... Sorry for the extraneous post!


Community Member, 904 Posts

24 October 2009 at 10:58pm

Yes, correct. Since .ss files are usually being rendered as HTML, you can use the exact same markup as for HTML. You should be aware that these comments are also being part of the generated HTML, everybody can see them by looking at the Page source in the Browser.


Community Member, 26 Posts

24 October 2009 at 11:02pm

Good to know! Thanks for the tip. :)