Code Display

This plugin has officially been killed as there are much better plugins out there.

Here’s a list of some of them: http://codex.wordpress.org/Plugins/Syntax_Highlighting

10 Comments On This Page

  1. Great idea :) I saw the comments in the code about regex and wrote a PCRE version of it.

  2. Nice work. That’s a hell of a lot cleaner. :) Not sure if it’s faster or not though. I’ve been told regex is actually fairly slow and using substr and such may be quicker. But regardless, again, it’s way cleaner. :D

  3. I just realized that if you use non-allowed tags inbetween tags, such as

    , it gets stripped from the comment still.

    There is however a plugin that fixes this. Rather than just recommend that that plugin be run alongside mine, I’m just going to combine the two and make life easier all around. Stay tuned.

    Oh, and thanks to Ozh for pointing this out.

  4. Actually, it seems that plugin is just a more sophisticated version of my plugin.

    The non-allowed HTML tags are stripped out BEFORE they are inserted into the database, so unless WordPress changes this, some code file editing or making this comment form post to a seperate file.

    However, now that I think of it, that actually may work quite well. Just clone wp-comments-post.php and have this plugin process on the comment content before it’s inserted into the database.

    Ooo, I like it. Off to code that or something like it. :)

  5. I typed this in exactly as it appears:

    I’m the table
  6. Ah, some improvements here :)
    How is this one doing then ?
    < ?php echo "

    works fine ! :)

    “; ?>

  7. Indeed, works fine :)
    Now you “just” have to make it compatible with the comment Live Preview so that code displays properly right when typing it ;)

  8. Shouldn’t be hard to do, but I tired editing Live Comment Preview and I couldn’t get it to work right. :(

  9. New version - v2.01. Code Display was operating on the feeds and that’s a no-no as it creates invalid code. All better now (hopefully).

  10. This plugin is no longer under development. Hell, version 2 of it was just mostly the code from another plugin.

    Check out this plugin for a much better replacement.

Sorry, but the comments are closed on this page and therefore you cannot reply.

Discussion Elsewhere

#