Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-14 17:14:44

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Inserting HTML code into an article... how?

You want to display HTML code, or input HTML directy?

For the first, try the bc. and bc.. block modifier.

For the second, there are numerous possibilities:

  1. Just input it directly, Textile doesn’t replace HTML it exists alongside
  2. Use <notextile> </notextile> pair inline tag # Use notextile.@ and notextile.. block tag
  3. Disable Textile for the one article, in it’s advanced prefs

Offline

#2 2007-06-18 16:49:44

Tinshack
Member
From: South Africa
Registered: 2005-12-04
Posts: 18
Website

Re: Inserting HTML code into an article... how?

Somewhere I read that putting a space at the begining of a line causes textile to leave that line as is. This works very well for small things like putting a horizontal rule in your article.

I’ve never really tried it out with huge blocks of HTML so your milage might vary.

If this doesn’t work you could put your html in a textpattern form and use the output_form inside your textiled article to output your untextiled html code.

Offline

#3 2007-06-18 18:44:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Inserting HTML code into an article... how?

Starting with a space omits the <p> formatting that block of text using <br />s


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB