WordPress.org

Ready to get started?Download WordPress

Forums

Best way to display copyable code in a WordPress page? (4 posts)

  1. Wendel Brume
    Member
    Posted 4 years ago #

    I want to show people how to insert an iFrame to my site on their website by showing them the code to create the iFrame. But when I enter the code on the WordPress page, it opens the iFrame itself.

    I tried wrapping it like this:

    <pre><code><iframe src ="http://minigiggles.com/#mg" width="468" height="333" scrolling="no" frameborder="0">
      <p>Your browser does not support iframes.</p>
    </iframe></code></pre>

    But it still opens the iFrame.

    I really just want this to show:

    <iframe src ="http://minigiggles.com/#mg" width="468" height="333" scrolling="no" frameborder="0">
      <p>Your browser does not support iframes.</p>
    </iframe>

    So they can copy and paste.

    Is there a 'best' way to do this?

    Thanks

  2. Len
    Member
    Posted 4 years ago #

    Hi Wendel,

    Have a look at Writing Code in Your Posts

  3. Wendel Brume
    Member
    Posted 4 years ago #

    Thanks!

    The site at HTMLizer Data is perfect!

  4. Wendel Brume
    Member
    Posted 4 years ago #

    Well, now HTMLizer Data is offline. Does anyone know of a similar site?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags