[wp-hackers] Plugin to post source code needs testing
Joost de Valk
joost at joostdevalk.nl
Mon Sep 10 09:56:16 GMT 2007
Loving it :)
I had a small bit of trouble with the CSS not overriding "hard" enough,
I've added a diff with the fix for it to this message.
> Oh, so it does. I got it confused with str_ireplace(). Thanks. :)
> On 9/9/07, Matt <speedboxer at gmail.com> wrote:
>> On 9/9/07, Viper007Bond <viper at viper007bond.com> wrote:
>>> I'm not sure if it's avoidable or not. It sends a copy-to-clipboard
>>> (which IE prompts) and then does an alert() assuming it worked. Perhaps
>>> needs to check the clipboard to see if it matches. Then again, that'll
>>> probably trigger an IE prompt too, heh.
>> IE will only display the prompt once per page view. So, if you say allow,
>> then it will be copied to your clipboard and then you could check if it
>> matches without another prompt. If you say don't allow, then it won't be
>> copied to your clipboard and nothing will be returned with the check and
>> another prompt will not be displayed.
>> stristr() does exist in PHP 4, so you can get rid of the check and the
>> duplicate ones using strstr().
>>> I prefer the styling of Alex G.'s, plus that one is server side too.
>> Matt (speedboxer at gmail.com)
>> http://mattsblog.ca/ | http://livemp.net/
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
Joost de Valk
@: joost at joostdevalk.nl
"Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic."
-------------- next part --------------
--- files/SyntaxHighlighter.css (revision 18432)
+++ files/SyntaxHighlighter.css (working copy)
@@ -14,9 +14,9 @@
.dp-highlighter ol li,
.dp-highlighter ol li span
- margin: 0;
- padding: 0;
- border: none;
+ margin: 0 !important;
+ padding: 0 !important;
+ border: none !important;
More information about the wp-hackers