These are some readers' responses. Read the full article to see what all the fuss is about.
-
Popular
Categories
- .Net & C# (1)
- Architecture (3)
- C++ (5)
- Coding (4)
- Copyright, etc. (3)
- HTML/CSS (2)
- Java (14)
- JavaScript (6)
- JUnit (3)
- Recommendations (10)
- Risks (8)
- Software projects (2)
- SQL (4)
- Testing (6)
- Tools (5)
- Usability (2)
- Web (5)
- Web publishing (16)
- Windows (1)
- WordPress (27)
372 responses
Other comment pages: « 1 [2] 3 4 5 6 7 8 9 10 11 … 19 »
Great plugin. thanks!!
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, 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: 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
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?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”.
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.
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.
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.
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!
Other comment pages: « 1 [2] 3 4 5 6 7 8 9 10 11 … 19 »