OrganizedFellow Posted February 24, 2013 Posted February 24, 2013 I've noticed how several other users have mentioned their use of ExpressionEngine. While I was not an incredibly advanced user of their CMS, one of the features I liked was the ability to create comments in the code and the parsing engine would not print them out in the HTML. For example: {!-- this is a comment that would not get parsed nor printed in a template --} <!-- but this comment would --> I can think of many situations that this would come in useful. I don't know if this would be possible with some module. What do you think?
apeisa Posted February 24, 2013 Posted February 24, 2013 Just add php comments like this: <?php // this won't be in page source code ?> Edit: fixed, thanks diogo 2
teppo Posted February 24, 2013 Posted February 24, 2013 You should also see PHP manual page about comments for more comprehensive guide (especially multi-line comments come in handy when commenting out stuff in templates.)
diogo Posted February 24, 2013 Posted February 24, 2013 Apeisa, the interrogation mark is missing... 1
Pete Posted February 24, 2013 Posted February 24, 2013 <?php // this is a single line comment $somevar = 'somevalue': // you can add one after a line of code /* Or you can span multiple lines */ ?> 1
OrganizedFellow Posted February 24, 2013 Author Posted February 24, 2013 LMAO I feel lame today. So simple. Thanks fellas!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now