Jump to:

23380 Posts in 18307 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Commenting out lines in .ss files

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

Page: 1
Go to End
Author Topic: 976 Views
  • mrwindupbird
    Avatar
    Community Member
    26 Posts

    Commenting out lines in .ss files Link to this post

    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!

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Commenting out lines in .ss files Link to this post

    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.

  • mrwindupbird
    Avatar
    Community Member
    26 Posts

    Re: Commenting out lines in .ss files Link to this post

    Good to know! Thanks for the tip.

    976 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.