This is the place for questions about learning design and pedagogy; how to use different page types for different purposes.

Teaching HTML

  • anthonydlewis
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 months ago #3682 by anthonydlewis
Teaching HTML was created by anthonydlewis
I want to include HTML examples in the Xerte text content but it keeps treating it as HTML rather than text. Is there an easy way of stopping Xerte from treating the code as code?

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #3683 by ronm
Replied by ronm on topic Teaching HTML
Try any of the following:
Code:
<xmp>Wrap your code between </xmp> tags.
Code:
Or put your code inside <textarea></textarea> tags.
Code:
Or Convert all your ‘<‘ and ‘>’ to ‘&lt’ and ‘&gt’ respectively

HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
The following user(s) said Thank You: anthonydlewis

Please Log in or Create an account to join the conversation.

Moderators: ingdon
Time to create page: 0.124 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo