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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1440 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
bummzack

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.

Avatar
mrwindupbird

Community Member, 26 Posts

24 October 2009 at 11:02pm

Good to know! Thanks for the tip. :)