I saw that the "monospace" thing in tinys dropdownlist in the second bar allows for adding pre allready - I think adding code too wouldn't be much of an issue - but it wouldn't allow for any attributes which may be not such great.
Coming back to my plugin which allows for attributes (but needs typing instead of clicking - which is not too bad up to my opinion since most of the coders should be able to type quite fast while jumping to the mouse is time consuming as well...): I added /tab (which I'm convertting to three non-breaking-spaces with a span since the tabstop is much to large for webpages and up to my knowledge can not be changed via css - but that span CAN be changed via css up to everyones needs) because wordpress will strip spaces when they are not encapsed inside a real pre. I added conversion for “ to " ” to " ’ to ' ‘ to ' and am adding (optional) syntax highlighting for PHP, HTML, CSS, Java, JavaScript, SQL, Phyton, Texy (whatever that is) via fshl which is licensed GPL too. I added optinal line numbering as well - it is done via ordered list since this is (up to my knowledge) the best way to do it. And since I may want to show the usage of shortcodes in my blog I added a [nsc] shortcode wich will preserve its contained shortcodes from being executed. (Which really is a needed option - since plugin authors will want to tell their readers how to use the plugins while they will also want to include examples and therefore have that plugin installed - and it is not good to have to lookup the right ASCII Codes for [ and ]) As I said before I'll update the download this evening - can not upload anything until ~20:00 (8pm) (*UTC*:+02:00) Any additional ideas/whishes? 2008/5/5 Alexander Beutl <[EMAIL PROTECTED]>: > Awesome plugin! > > > Thanks ;-) > > > > The only problem I see with it is that WordPress still converts any > > quotes > > within [code] blocks into curly quotes, which is entirely undesirable. > > Using > > the HTML CODE tags, however, quotes are not converted to curly quotes, > > which > > is ideal. > > > > Just didn't thought about that one... > > In other words, while using the plugin, it's easy enough to add code in > > the > > Visual Editor, but it's still required to switch to the code view to > > encode > > any quotations. > > > > Any ideas around this? > > > Sure - I could easily reconvert them (” goes " and ’ goes ') - > but that would make it impossible to use the curly quotes within code - or I > would have to add some escape rules. Will update it this evening (its > 9:25am in germany now) > > Any suggestions or whishes? Does anyone use (or need) curly quotes inside > code? > > 2008/5/5 Rick Beckman <[EMAIL PROTECTED]>: > > Awesome plugin! > > > > The only problem I see with it is that WordPress still converts any > > quotes > > within [code] blocks into curly quotes, which is entirely undesirable. > > Using > > the HTML CODE tags, however, quotes are not converted to curly quotes, > > which > > is ideal. > > > > In other words, while using the plugin, it's easy enough to add code in > > the > > Visual Editor, but it's still required to switch to the code view to > > encode > > any quotations. > > > > Any ideas around this? > > > > -- > > Rick Beckman > > > > On Sun, May 4, 2008 at 6:05 AM, Alexander Beutl <[EMAIL PROTECTED]> wrote: > > > > > Since I do not know about any way which allready handles it I would > > > suggest > > > to add a shortcode [code] [/code] and transform it to be wrap its > > content > > > by > > > <code> and </code>. > > > > > > I wrote a plugin for that since it seems to be something which may be > > > needed > > > by some people and maybe by myselfe someday: > > > > > > Page URI is http://blog.netgra.de/wordpress-pre-und-code-shortcodes(there > > > is an english section at the bottom) > > > Download at > > > http://blog.netgra.de/wp-content/uploads/2008/05/code_shortcode.zip > > > > > > Please let me know if this works for you. > > > > > > > > > 2008/5/4 Rick Beckman <[EMAIL PROTECTED]>: > > > > > > > Is there an easy way to insert CODE blocks using the visual editor? > > I > > > love > > > > that writing code into the editor itself auto-escapes everything, > > but I > > > > have > > > > to keep switching back and forth between it and the text editor to > > add > > > the > > > > actual CODE tags, and I inevitably write a lot of code into it, > > which > > > gets > > > > eaten upon returning to the Visual Editor. Very frustrating. > > > > > > > > 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? > > > > > > > > -- > > > > Rick Beckman, the Confounded CODEr > > > > http://rickbeckman.org/ > > > > http://fellowship-hall.com/ > > > > _______________________________________________ > > > > 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 > > > > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
