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.

General Questions

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

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

Commenting out lines in .ss files


3 Posts   1001 Views


24 October 2009 at 9:54pm (Last edited: 24 October 2009 10:00pm), Community Member, 26 Posts

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!


24 October 2009 at 10:58pm Community Member, 901 Posts

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.


24 October 2009 at 11:02pm Community Member, 26 Posts

Good to know! Thanks for the tip. :)