Code Markup: a WordPress plugin

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

372 responses

Other comment pages: « 1 [2] 3 4 5 6 7 8 9 10 1119 »

  • Trackback | Alan’s Blogometer » Blog Archive » Code Example | 28 September 2005
    [...] This is example code using Code Markup. [...]
  • Great plugin. thanks!!

    mike | 7 December 2005
  • [...] Erfreulicherweise gibt es das Plugin Code Markup von Bennett McElwee. Das Plugin funktioniert fast einwandfrei, manche Dinge bekommt aber auch d[...]
  • Trackback | Brad’s Blog » Blog Archive » Blog code errors | 14 December 2005
    [...] Code samples are not displaying properly in WordPress as you can tell from my previous 2 posts. Will fix shortly after I install this plug-in (t[...]
  • [...] Code Makeup [...]
  • [...] Code Markup Code Snippet [...]
  • Hi,

    I’ve just installed your plugin and find it a great help. Thank you for producing it. There’s just one thing I can’t figure out: when there are two underscores in the code, WP interprets these as em-statements and transforms the text to italics. Even the code allow = none doesn’t help. Here is a link to a sample of this phenomenon where I mention the plugin wp_catalog_posts(). Any ideas?

    Example: http://www.waldmark.com/wordpress/?p=25

    Many thanks.

    Robert Esland | 29 December 2005
  • [...] Erfreulicherweise gibt es das Plugin Code Markup von Bennett McElwee. Das Plugin funktioniert fast einwandfrei, manche Dinge bekommt aber auch d[...]
  • Robert, This is one of the default WordPress text filters kicking in.) Code Markup does its best to undo the actions of WordPress default filters, but some are harder to catch than others. I need to investigate different strategies for doing this. Thanks for the pointer!

    Bennett | 1 January 2006
  • Trackback | ITPS Weblog » Blog Archive » Code snippets | 3 January 2006
    [...] more info at http://www.thunderguy.com/semicolon/wordpress/code-markup-wordpress-plugin/ [...]
  • [...] Code Markup Preserve Code Formatting Code Entities Code Viewer Code Display Code Autoescape** [...]
  • [...] Code Markup Code Snippet [...]
  • Bennett: just to find the cause, I temporarily disabled Markdown in the WP plugin admin and that solved the issue. Markdown converts two underscores close to each other and not separated by spaces, to a pair of tags. Ah well, as long as you remain committed to writing code, I am content writing posts about them in my tucked away corner of the web where nobody will notice that I substituted underscores for minus signs.

    Cheers!
    Robert

    Robert Esland | 8 January 2006
  • I can’t get Code Markup to work with Wordpress 2. It looks like it’s activated all right, but it has no effect when posting with tags. Are there any known issues with Wordpress 2?

    Martin Lorentzson | 12 January 2006
  • OK, I found the problem: TinyMCE. The solution was to disable it. Go to Users — Your Profile and uncheck “Use the visual rich editor when writing”.

    Martin Lorentzson | 14 January 2006
  • Thanks, Martin. I suspected that the WordPress 2 editor wouldn’t work with Code Markup. I’ll have to look into it more — I’m not sure if TinyMCE has the hooks I’d need to make it work. Only time will tell.

    Bennett | 14 January 2006
  • Trackback | ddhr.org - David Hosier | 17 January 2006
    [...] Enabled two plugins: Owen Winkler's Comment Quicktags (slightly edited) and Bennett McElwee's Code Markup. [ Mon, 16 Jan 2006 @ 12:01:45 | Upd[...]
  • I like your plugin, thanks! :-)
    Just a question: do you know if there is an easy way to modify it to have the resulting CODE section automatically put in a DIV, so that i can easily personalize the style (now i have to do it manually)? Thanks again.

    Zelig | 17 January 2006
  • No I do it manually too — I usually enclose my <code> blocks in <pre class=”code”>, and use the following styles:

    code,
    pre.code {
    font-family: ‘Lucida Console’, ‘Courier New’, Courier, monospace;
    }

    pre.code {
    color: #000;
    background-color: #eee;
    clear: both;
    }

    I have a private plugin that adds buttons to the editing screen, and I have a plan to incorporate this into Code Markup so there will be a simple button that will do the <pre class=”code”><code> all in one go (and close it automatically too). It’s on the list for the next version.

    Bennett | 17 January 2006
  • Thanks for the plugin. It’s made life a lot easier.

    Not sure if these are possible to implement (haven’t played with WordPress filtering much myself), but just a few things that came to mind: it would be nice if the allow attribute could be stripped out of the final output (ie. still displayed when editing an entry, but not included in the HTML output) as this seems to cause problems for the W3C validator (”there is no attribute ‘allow’”). Also, maybe the possibility of specifying a custom tag set inside the allow attribute value. At the moment, if I have a code block with an ‘a’ element which I don’t want rendered, but want to wrap ’span’ tags around a segment, I’m not able to do it.

    Other than that, it’s a very handy plugin. Thanks! :)

    Keyvan | 25 January 2006

Other comment pages: « 1 [2] 3 4 5 6 7 8 9 10 1119 »

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