[Pmwiki-users] Re: Comments?
Patrick R. Michaud
pmichaud
Fri Jan 21 07:50:50 CST 2005
On Thu, Jan 20, 2005 at 01:47:49PM -0900, Chris Lott wrote:
> On Thu, 20 Jan 2005 13:44:34 -0900, Chris Lott <chris.lott at gmail.com> wrote:
> > OK, I know I've seen this before but I'm not finding it... what markup
> > can I use to comment out text on a page (so material in blocks either
> > doesn't appear or appears in HTML comments on the rendered page)?
>
> I found that the answer is (?)
> (:if false:)
> comments
> comments
> etc
> (:if:)
>
> Strange thing is, the comment still appears when previewing!? However
> it is gone on the "real" rendered page...
There's several ways to do comments in PmWiki:
1. One can use the %comment% wikistyle, which uses CSS's "display:none"
attribute to cause the comment to not be displayed on the browser
(it still appears in the page source, however).
2. There's the (:comment ... :) directive -- anything placed before the
trailing ":)" is treated as a comment and removed entirely when converted
to HTML.
3. There's the conditional-markup form you mentioned above, with
(:if false:)
stuff to be ignored
more stuff to be ignored
(:ifend:)
Pm
More information about the pmwiki-users
mailing list