Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-08 07:34:53

azw
Member
Registered: 2007-01-29
Posts: 279

How to add comment notes to my self in the page and form files

Hello,

I’m wondering if there’s an easy way to add comments so I can document what my code is doing.

I suppose I could use php comments:

<txp:php> /*   my notes */ </txp:php>

It seems like there should be an easier method. Is there?

I realize that I could use HTML comments:

<!--     my notes  //-->

But I’d rather not have the comments appear in the final code which is sent to the browser.

Offline

#2 2008-02-08 07:41:01

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How to add comment notes to my self in the page and form files

<txp:hide>this does stuff</txp:hide>

Offline

#3 2008-02-08 08:29:12

azw
Member
Registered: 2007-01-29
Posts: 279

Re: How to add comment notes to my self in the page and form files

Thanks, JM, that’s perfect!

Offline

Board footer

Powered by FluxBB