Semantically, the PRE tag does not denote code, block-level or otherwise. All it does is, as it says, preserve line breaks. The CODE tag is a semantic tag which states, unsurprisingly, that the enclosed text is code.
Inline code gets the CODE tag; blocks of code get PRE & CODE, as used for a few code examples here: http://rickbeckman.org/how-to-intent-the-first-line-of-your-paragraphs-in-wordpress-25/ The lack of being able to use the CODE tag is a big omission. (The lack of being able to easily create Definition Lists [DL, DT, and DD tags] in TinyMCE is another omission I'm not at all happy about. At the very least, there should be an "Wrap with Tag" option -- highlight some text, select that option, and type in a tag. :-) -- Rick Beckman On Sun, May 4, 2008 at 5:40 PM, Alexander Beutl <[EMAIL PROTECTED]> wrote: > Which means we would need both. And it would be nice to be able to set > some > attributes too... > > I have both inside the plugin while I haven't added any tiny buttons and > have to admit I have no idea about how this has to be done for real tags > (I > could manage it for shortcodes when I'd spend a bit more time on it - > tried > it in a way more is done but my JS knowledge isn't anywhere near my php > knowledge so I didn't really understand how and what is done... (I am able > to use jQuery - and thats it. I am able to use some other stuff too - but > I > always need to look it up) > > 2008/5/4 Peter Westwood <[EMAIL PROTECTED]>: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Andrew Ozz wrote: > > | Peter Westwood wrote: > > |> Rick Beckman wrote: > > |> | I tried using an advanced TinyMCE plugin, which has let me add a > lot > > |> of tags > > |> | to its toolbars that have come in handy, but even it neglects to > > |> include the > > |> | CODE button. > > |> | > > |> | Is there some sort of CODE-stigma I'm unaware of? > > |> | > > |> > > |> Nope. It annoys me too. > > |> > > |> http://trac.wordpress.org/ticket/6331 > > |> > > |> Someone fancy cooking up a patch ;-) > > | > > | The <code> tag is an inline text tag, much like <em> and <strong>. All > > | it does in most browsers is to render the text with monospace font. > > | > > > > I know. I use it for inline text quite a lot in the weekly digest > > posts. Whenever I mention a new function name or hook name for example. > > > > westi > > - -- > > Peter Westwood > > http://blog.ftwr.co.uk | http://westi.wordpress.com > > ~ C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5 > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.7 (MingW32) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFIHiUdVPRdzag0AcURAuIDAJ0YnqE5UVxy1M7iezsU1YA4XToZmACgr0a6 > > KEKTNx1IyEbIwLcNFGvHl4I= > > =Os3j > > -----END PGP SIGNATURE----- > > > > _______________________________________________ > > wp-testers mailing list > > [email protected] > > http://lists.automattic.com/mailman/listinfo/wp-testers > > > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > -- Rick Beckman http://rickbeckman.org/ http://fellowship-hall.com/ _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
