Closed jmeridth closed 13 years ago
FYI - i tried to use the pre clas="brush: ruby" for my blog post today, and it's not showing up. your obviously aware of this, hence the ticket exists. just wanted to confirm it's not working. :)
I confirm. My brush:ruby isn't working either. example post: http://lostechies.com/jasonmeridth/2009/02/26/design-patterns-in-ruby-by-russ-olsen/
I came across a discussion of this problem for an older version here: http://ellisweb.net/2008/08/using-syntaxhighlighter-to-format-code-in-wordpress/
We shouldn't have to do this though. I'm not sure what might be conflicting, but I don't have this problem on my site. My plugins are: Akismet Conditional CAPTCHA for Wordpress FeedBurner FeedSmith SyntaxHighlighterPro WordPress Importer
It also appears that I am using the TinyMCE editor because I see the Visual/Html tabs. The really weird thing is the stripping of the pre tags would seem to be related to the visual editor, but I can't even post from Live Writer without these getting stripped.
my forums post http://wordpress.org/support/topic/tinymce-text-editor-stripping-name-and-class-attributes-from-pre-tag?replies=2
the function I tried to use add_filter('tiny_mce_before_init', create_function( '$a','$a["extended_valid_elements"] = "pre[name|class]"; return $a;') );
Have you seen this?
http://lynnepope.net/stop-wordpress-mangling-code http://lynnepope.net/stop-wordpress-mangling-code
On Sun, Apr 10, 2011 at 12:23 PM, armmer < reply@reply.github.com>wrote:
my forums post
the function I tried to use add_filter('tiny_mce_before_init', create_function( '$a','$a["extended_valid_elements"] = "pre[name|class]"; return $a;') );
Reply to this email directly or view it on GitHub: https://github.com/lostechies/wordpress/issues/3#comment_980319
Derek Greer Email: dbgreer@gmail.com dbgreer@gmail.comTwitter: @derekgreer http://twitter.com/derekgreer Blog: http://aspiringcraftsman.com
Jason
On Mon, Apr 11, 2011 at 12:20 PM, derekgreer < reply@reply.github.com>wrote:
Have you seen this?
http://lynnepope.net/stop-wordpress-mangling-code http://lynnepope.net/stop-wordpress-mangling-code
On Sun, Apr 10, 2011 at 12:23 PM, armmer < reply@reply.github.com>wrote:
my forums post
the function I tried to use add_filter('tiny_mce_before_init', create_function( '$a','$a["extended_valid_elements"] = "pre[name|class]"; return $a;') );
Reply to this email directly or view it on GitHub: https://github.com/lostechies/wordpress/issues/3#comment_980319
Derek Greer Email: dbgreer@gmail.com dbgreer@gmail.comTwitter: @derekgreer http://twitter.com/derekgreer Blog: http://aspiringcraftsman.com
Reply to this email directly or view it on GitHub: https://github.com/lostechies/wordpress/issues/3#comment_984832
I think I just discovered why I haven't been experiencing the same formatting issues on my blog. I'm using the iBlog theme and here is what it has in one of it's theme files:
<?php
// Removes default WP styling in page/post content and excepts.
if(pagelines('no_wp_format')){
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wpautop');
remove_filter('the_excerpt', 'wptexturize');
}
?>
On Mon, Apr 11, 2011 at 12:38 PM, armmer < reply@reply.github.com>wrote:
I had not and will check it out.
Jason
On Mon, Apr 11, 2011 at 12:20 PM, derekgreer < reply@reply.github.com>wrote:
Have you seen this?
http://lynnepope.net/stop-wordpress-mangling-code http://lynnepope.net/stop-wordpress-mangling-code
On Sun, Apr 10, 2011 at 12:23 PM, armmer < reply@reply.github.com>wrote:
my forums post
the function I tried to use add_filter('tiny_mce_before_init', create_function( '$a','$a["extended_valid_elements"] = "pre[name|class]"; return $a;') );
Reply to this email directly or view it on GitHub: https://github.com/lostechies/wordpress/issues/3#comment_980319
Derek Greer Email: dbgreer@gmail.com dbgreer@gmail.comTwitter: @derekgreer http://twitter.com/derekgreer Blog: http://aspiringcraftsman.com
Reply to this email directly or view it on GitHub: https://github.com/lostechies/wordpress/issues/3#comment_984832
Reply to this email directly or view it on GitHub: https://github.com/lostechies/wordpress/issues/3#comment_984927
Derek Greer Email: dbgreer@gmail.com dbgreer@gmail.comTwitter: @derekgreer http://twitter.com/derekgreer Blog: http://aspiringcraftsman.com
Fixed.
well done sir
Use a wp-plugin, but get it working. javascript conflict?