Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Help me with commenting


  #1  
Old Dec 7, 2009, 08: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 06:08 PM
Author comment background to appear the same in all levels of commenting perdox808 Comments, trackbacks & pings 0 Apr 21, 2009 06:19 AM


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


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