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

Joost de Valk joost at joostdevalk.nl
Mon Sep 10 10:09:42 GMT 2007


Two other small things:
- there's a space between the < and the ? of each PHP tag, no matter if 
I choose PHP or HTML, is that fixable? It breaks copy pasting as well.
- is it possible to have the color of the left border configurable?

Cheers,
Joost

Joost de Valk wrote:
> 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.
>
> Cheers,
> Joost
>
>
> Viper007Bond wrote:
>> 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:
>>>    
>>>> 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.
>>>>
>>>>       
>>> 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.
>>>>       
>>> Same.
>>>
>>>
>>> -- 
>>> 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
>>>
>>>     
>>
>>
>>
>>   
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


-- 
Joost de Valk

@: joost at joostdevalk.nl
W: http://www.joostdevalk.nl

"Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic."



More information about the wp-hackers mailing list