Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-10-31 14:49:36
- rif
- New Member
- Registered: 2006-07-28
- Posts: 3
Control whitespace and paragraphs?
Is it possible to get textile to suppress automatic paragraphs and (especially) turning textile carriage returns into <br />‘s? I’m trying to import raw XHTML (to display MATHML), but with the current textile, I have to make sure it’s all on one line, which is tough to read and edit.
Also, is there any way to see the (X)HTML a page is going to generate other than publishing it Live and viewing the actual site?
Offline
Re: Control whitespace and paragraphs?
Hi,
You can turn off textile per article, it’s under Advanced Options on the left hand side.
To the right of where you’re entering your text, are three tabs labeled TEXT, HTML and PREVIEW.
Math, my favorite subject :)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#3 2006-10-31 15:37:47
- rif
- New Member
- Registered: 2006-07-28
- Posts: 3
Re: Control whitespace and paragraphs?
Thanks!
Is there anyway to control more finely? To turn off just the automatic generation of <p> and <br />, or to turn off textile just for certain parts of an article?
Offline
Re: Control whitespace and paragraphs?
You can turn off textile like so:
<notextile>
Don't mess with this
</notextile>
Correction, in 4.0.4 things have changed.
notextile.
Don't mess with this
In the past you could wrap a whole block of text, even if it had blank lines in between. I don’t know how we could accomplish the same thing now.
Last edited by hcgtv (2006-10-31 15:49:02)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Control whitespace and paragraphs?
Same as with bq..
and bc..
– you use two dots, and all following paragraphs will be untextiled, until you explicitly start a paragraph with p.
again.
Example:
this line started with notextile.. *test* another line *another test* last line _last test_The end
And this is what I typed:
notextile.. this line started with notextile.. *test*
another line *another test*
last line _last test_
p. The *end* [though I typed no space at the beginning of this line]
Last edited by Sencer (2006-10-31 16:05:35)
Offline
Re: Control whitespace and paragraphs?
Sencer to the rescue ;)
So most textile tags can be used with the 2 dots, nice to know.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#7 2006-11-03 05:08:13
- Roughy
- New Member
- From: Melbourne
- Registered: 2004-07-05
- Posts: 7
Re: Control whitespace and paragraphs?
Are there any other tricks with this? When I try it all I get is “notextile..” showing up in my article. I’m running Textpattern · 4.0.4
Offline
#8 2006-11-03 05:35:54
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Control whitespace and paragraphs?
Make sure you’ve got a space between ..
and the first character. i.e:
notextile.. this
notextile..not this
Offline
Re: Control whitespace and paragraphs?
Did you leave a space after the 2 periods following notextile? notextile.. Start content
. Also, leave a blank line above the notextile..
.
Edit: Took too long trying to format a sample with a leading paragraph!
Last edited by jm (2006-11-03 05:47:52)
Offline
#10 2006-11-03 05:54:59
- Roughy
- New Member
- From: Melbourne
- Registered: 2004-07-05
- Posts: 7
Re: Control whitespace and paragraphs?
Thankyou Mary and jm – that fixed it!
Offline
Pages: 1