[wp-hackers] Plugin to post source code needs testing

Viper007Bond viper at viper007bond.com
Mon Sep 10 02:44:28 GMT 2007


Yeah, I meant to add that one, but forgot during regex testing. I added it
shortly after posting to the list. Update your SVN copy. ;)

As for the copy thing, that's not my code. That's the Javascript package and
I'm not sure if it's avoidable or not. It sends a copy-to-clipboard command
(which IE prompts) and then does an alert() assuming it worked. Perhaps it
needs to check the clipboard to see if it matches. Then again, that'll
probably trigger an IE prompt too, heh.

As for GeSHi, that's server side. This plugin relies entirely on Javascript
to do the highlighting and box. It makes it much easier to be honest, plus
it works better for text readers.

On 9/9/07, Matt <speedboxer at gmail.com> wrote:
>
> I tried it out, seems to work perfectly. Although, maybe you could also
> use:
>
> [source lang='php']...[/source]
>
> Also, so it's even easier.
>
> There's sorta a bug with the copy to clipboard feature in IE7 though (I
> don't know if it's possible to fix, though). When you click the copy to
> clipboard link, IE7 asks you if you would like to allow the page to copy
> the
> text to the clipboard, but if you click don't allow, you still get the
> alert
> box saying that the text has been copied to the clipboard.
>
> Also, what's with the question mark that opens an "About box"? Something
> from the syntax highlighter, I'm guessing?
>
> I know that the syntax highlighter I was using before (WP-Syntax[1]) used
> GeSHi[2], have you looked at that? I'm just saying because it supports
> more
> languages...
>
> Overall, it's awesome! It's going to make posting code easier and it'll
> look
> better.
>
> [1] http://wordpress.org/extend/plugins/wp-syntax/
> [2] http://qbnz.com/highlighter/
>
>
> --
> Matt (speedboxer at gmail.com)
> http://mattsblog.ca/ | http://livemp.net/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/


More information about the wp-hackers mailing list