Report any technical problems you discover and discuss solutions.

Including code

  • Neil Pollock
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Lees meer
7 jaren 5 maanden geleden #5731 door Neil Pollock
Including code werd gestart door Neil Pollock
Not a huge priority in terms of bugs, but still an annoyance. I need to include some HTML on a page, so tried to include it in source view as:
Code:
<code>&lt;h1&gt;Example&lt;/h1&gt;</code>

Unfortunately, when you leave the editor page then return, it converts it to actual HTML like this:
Code:
<h1> <code>Test </code> </h1>

Now, there is a workaround by adding <span> tags, but it starts to become a little verbose:
Code:
<code>&lt;<span>h1</span>&gt;Test&lt;<span>/h1</span>&gt;</code>

I suspect this is an issue with the WYSIWYG editor, but is there any way this can be fixed?

Graag Inloggen of een account aanmaken om deel te nemen aan het gesprek.

Lees meer
7 jaren 5 maanden geleden #5732 door ronm
Beantwoord door ronm in topic Including code
Hi Neil
as a workaround for now does using a textarea work for you e.g.
Code:
<p><textarea>&lt;h1&gt;Example&lt;h1&gt;</textarea> </p>
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/

Graag Inloggen of een account aanmaken om deel te nemen aan het gesprek.

Moderators: ronm, julten, JohnSmith
Tijd voor maken pagina: 0.173 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo