Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-03 20:16:39

MonkeyChap
New Member
Registered: 2007-01-03
Posts: 7

Showing XML Code in an Article

I need to be able show excerpts of XML Code (an OWL Ontology in this case) on my site. I first tried to use the amphesand encoding – < and > but these only seem to work if there is whitespace before and after the encoded characters. This renders the displayed XML invalid. Is there a way to show legal XML in an article ?

Offline

#2 2007-01-03 21:50:30

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Showing XML Code in an Article

Try the notextile block modifier.

Offline

#3 2007-01-03 21:53:41

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Showing XML Code in an Article

Prefix your XML code with bc.. , switch back to normal text by starting the subsequent paragraph with p.

Offline

#4 2007-01-04 08:53:44

MonkeyChap
New Member
Registered: 2007-01-03
Posts: 7

Re: Showing XML Code in an Article

Thanks – the bc. approach worked fine !

Offline

Board footer

Powered by FluxBB