Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Help me with commenting (http://forum.bytesforall.com/showthread.php?t=4748)

Shepherd Jim Dec 7, 2009 08:48 AM

Help me with commenting
 
I'd really like to FINALLY and COMPLETELY understand making BLOCK comments in the "WordPress code" (ie. templates.php) that don't wind up being seen. I find "leaving" OBVIOUS comments for myself is absolutely necessary. Both so I can WHERE I have changed something, and, even more importantly, WHY!

Whenever I Google commenting in php I find that every line of comment can just supposedly be started with "//" (double quotes ignored) -- but when I do that the lines show up in the rendered website.

Do the "//"s have to be contained within "<?php"s like this?
<?php
/** EC3 comment ----------------------
** This is comment text
//
//
**
** and some more commenting
** END comment -----------------------
**
<?php

And how about the following? When does this work ...and NOT work?
<!-- comment start +++++++++++++++++++++++++++++++++ -->
ACTIVE CODE GOES IN HERE
<!-- comment end +++++++++++++++++++++++++++++++++++ -->
Is there any way that I can comment a block (multiple lines) of code by inserting a "<begin comment>" at the first line of the comment and a "<end comment>" after the last line? OR is it always necessary to have something at the start of EVERY line?

I never had all these trouble with good, old, plain HTML (or even BASIC or dBase "in the day")

HELP! Thank you! Jim


All times are GMT -6. The time now is 04:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.