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


Reply


3 Posts   1039 Views

Avatar
mrwindupbird

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!

Avatar
banal

Community Member, 901 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.

Avatar
mrwindupbird

Community Member, 26 Posts

24 October 2009 at 11:02pm

Good to know! Thanks for the tip. :)