WordPress.org

Ready to get started?Download WordPress

Forums

Displaying (readable) code in pages? (7 posts)

  1. jennikitten
    Member
    Posted 5 years ago #

    Hi, I'm trying to show code on pages but have been unsuccessful so far!! I've tried various plugins but they seem to be for posts only, and simply entering 'code' or 'pre' tags leaves me with either code that goes straight off the page or is full of spaces and ugly "

    I'm testing it out on this page: http://www.blossom.nu/x/link-blossomnu/

    And I'd prefer to find a solution that would fit with my blockquote usage if possible.

    Could anyone point me in the right direction please?? I'd just write it as a post if it were one page, but I have a lot of tutorials I'm in the process of recoding and I need a page solution.

  2. buddha trance
    Member
    Posted 5 years ago #

    I am using KB Backticks Comments, which works for both posts (when disabling the visual editor) and comments. Just tested it on a page, and it works fine.

    http://wordpress.org/extend/plugins/kb-backtick-comments/

  3. MichaelH
    Member
    Posted 5 years ago #

  4. jennikitten
    Member
    Posted 5 years ago #

    Thanks for the suggestions guys but neither of those worked.

    Backticks comments did technically work but displays in a horrible textarea/textarea looking scrollable box instead of displaying as in the examples, and also it messed up my page editor in the admin panel, even though I have the visual editor disabled.

    WP-Syntax just has the same problem with the code displaying on one line across the whole screen.

    So I'm thinking it must either be a problem with my layout or with a conflicting plugin?

  5. MichaelH
    Member
    Posted 5 years ago #

    Thanks for the suggestions guys

    Oops I believe you need to rephrase that statement on gender ;)

    I had no problem with the examples described at the wp-syntax plugin page using the WordPress Default theme. No other plugins installed.

  6. buddha trance
    Member
    Posted 5 years ago #

    @Michael,
    re: rephrasing... lol!

    @jennikitten,
    Regarding the kb-backticks plugin, my page editor works fine, so I don't know what could have caused the problem in your case.

    The look of how it displays can be changed, as I did, by editing to your liking the background color and other css stuff, in the one and only php file of the plugin. Just in case you want to give it another try.

  7. jennikitten
    Member
    Posted 5 years ago #

    I'll try it on another blog I have which has very little editing and see what happens.

    It was just a generic 'guys', didn't mean to imply gender, sorry if I offended anyone!!

Topic Closed

This topic has been closed to new replies.

About this Topic