Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
Re: Showing XML Code in an Article
Try the notextile block modifier.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
Pages: 1