Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Help me with commenting


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Dec 7, 2009, 09:48 AM
Shepherd Jim's Avatar
Shepherd Jim
 
301 posts · Feb 2009
Bristol, midcoast Maine USA
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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Author comment background to appear the same in all levels of commenting perdox808 Comments, trackbacks & pings 6 May 1, 2009 07:08 PM
Author comment background to appear the same in all levels of commenting perdox808 Comments, trackbacks & pings 0 Apr 21, 2009 07:19 AM


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


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