Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-23 00:57:38

RenJonsin
Member
From: Tarpon Springs, FL USA
Registered: 2005-02-06
Posts: 103
Website

How do I comment out text in an aritcle?

How do I comment out something that I don’t want to show in an article? I tried the <code> <!— thing I want to hide —> </code> thing but it didn’t work. I did find out how to make an arrow in textile though.

Right now I’m hiding it by sticking what I don’t want to show in a if section name=“hidden” tag which works since I don’t have a section called hidden. Just wondering if there is an official way to do this?

Offline

#2 2006-01-23 02:15:14

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: How do I comment out text in an aritcle?

Hi RenJonsin

Try the anc_hide plug-in (I dont know if it works inside the article body).
Or you can try:

<code>< notextile ><!— thing I want to hide —>< /notextile ></code> (without the spaces)

or

<code>==<!— thing I want to hide —>==</code>

Last edited by maniqui (2006-01-23 02:19:21)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2006-04-06 17:53:37

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 150

Re: How do I comment out text in an aritcle?

Hi, I tried both <code>==</code> and the notextile tag. Neither works for me. I also tried inserting a space at the beginning of the line before the HTML comment tag, but the closing comment tag still gets parsed by Textile.

After some experimentation, I found something that works but unfortunately I could not get it to render correctly here in the forum. Not even PasteBin worked for me because it was deleting spaces. So here’s a verbal description of what I did:

Do the opening comment tag and text normally on its own line. Then follow that with a hard return and a space, then an opening angle bracket, then the closing comment tag, like this: <code> <—></code>

Kinda nasty but at least it hides the comment text in the browser.

Offline

#4 2006-04-06 18:23:43

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 150

Re: How do I comment out text in an aritcle?

Hi, I tried both <code>==</code> and the notextile tag. Neither works for me. I also tried inserting a space at the beginning of the line before the HTML comment tag, but the closing comment tag still gets parsed by Textile.

After some experimentation, I found something that works but unfortunately I could not get it to render correctly here in the forum. Not even PasteBin worked for me because it was deleting spaces. So here’s a verbal description of what I did:

Do the opening comment tag and text normally on its own line. Then follow that with a hard return and a space, then an opening angle bracket, then the closing comment tag, like this: <code> <—></code>

Kinda nasty but at least it hides the comment text in the browser.

Edit: for some inexplicable reason, this doesn’t work on some pages. RenJonSin’s approach is more reliable.

Offline

Board footer

Powered by FluxBB