Code Markup: a WordPress plugin

These are some readers' responses. Read the full article to see what all the fuss is about.

351 responses

Other comment pages: « 14 5 6 7 8 [9] 10 11 12 13 1418 »

  • Trackback | Barn Cover » WordPress and code?! | 22 May 2007
    [...] Download and install the WordPress code markup plugin. [...]
  • Uhm I don’t know if I’m missing something but your examples are plain black, no markup at all going on in them.

    (im using Firefox 2.x on WinXP Pro)

    Nathan | 25 May 2007
  • Nathan, that’s odd. In the examples, “What’s going on?” should be bold, “cout” should be red and “target-url” should be green. And indeed they are on every OS/browser I have tried, including FF2 on WinXP Pro. You could help me out by saving the source of this page to a file and emailing it to me, if you still don’t see the examples working. Thanks.

    Bennett | 25 May 2007
  • [...] was able to do this thanks to the Code Markup Plugin (Version 1.1.1), I found at Bennett McElwee’s Thunderguy site. Thanks for the plugin [...]
  • [...] how do you do it? It’s actually pretty easy, using the Code Markup WordPress plugin. You can download the plugin from that link, and uploa[...]
  • [...] http://www.thunderguy.com/semicolon/wordpress/code-markup-wordpress-plugin/ Tags: markdown, wordpress, blog, plugin, code, syntax, highligh[...]
  • [...] I sometimes write about code, I decided to install the Code Markup WordPress plugin. It works very well, and I am enjoying it a great deal (than[...]
  • [...] one of those things that should be simple, but ends up being a bit of a pain. I’ve used a Wordpress plugin in the past, but I was never fu[...]
  • [...] Code Markup: a WordPress plugin » Semicolon - Code Markup is a WordPress plugin that makes it easy to include program code samples in your[...]
  • [...] and execute your own functions in your posts. Code Markup makes it easy to include program code samples in your posts. You can even include HTML[...]
  • [...] http://www.thunderguy.com/semicolon/wordpress/code-markup-wordpress-plugin/ [...]
  • Trackback | WordPress Plugins | 2 July 2007
    [...] Code Markup [...]
  • [...] Code Markup Mit diesem Plugin kann man Code in Posts reihnholen und erstellen. [...]
  • [...] and execute your own functions in your posts. Code Markup makes it easy to include program code samples in your posts. You can even include HTML[...]
  • Nice stuff… :)

    I am PHP Programmer. I have a requirement from my client that needs to be fixed.
    He have a wordpress-mu (1.2.1) intalles and there are several blog sites are running under it. This is his feedback,
    ” We’ve had issues posting HTML into wordpress. Wordpress wants to format the html after we post an article. Even if we only use the “Code” tab, the wordpress system will try to format what was pasted in. Here are some examples of the formatting:
    formats out javascript tags
    adds after each carriage return
    changes — to –

    Please look into creating a plugin that will bypass *all* the formatting when we post an article through the Code tab.”

    Please suggest if this plugin works in this situation.

    Thanks
    Naveen

    Naveen | 4 July 2007
  • Naveen, that’s an interesting requirement, but it’s not what Code Markup does. It might be easy enough to write a plugin that does what you want. If I had time I might even do it…

    Bennett | 4 July 2007
  • Thanks Ben,

    If you can develop that will be cool stuff to many of us…

    :)

    Naveen | 5 July 2007
  • [...] Code Markup, I was able to do [...]
  • After installing the plugin, I had to scratch my head for a moment. Turns out these three rules are very important:

    1) The code tag *must* be in lowercase.
    2) Put the code block in a pre tag to preserve spacing.
    3) Let the filter convert characters into HTML entities for you.

    Walt Stoneburner | 6 July 2007
  • Walt, thanks for clarifying those points. XHTML requires tags to be in lowercase, but as you point out, you can use uppercase in HTML. It shouldn’t be too hard to make Code Markup case-insensitive. I also plan to automatically add a pre tag where appropriate.

    As for your third item: automatic management of HTML markup is the whole point of the plugin! The examples demonstrate how < is displayed verbatim without needing to escape it as &lt; and the same goes for & and other characters.

    Bennett | 6 July 2007

Other comment pages: « 14 5 6 7 8 [9] 10 11 12 13 1418 »

Post your comment | RSS feed for comments
Close
E-mail It