2011-08-12, 02:17 PM
2011-08-24, 10:34 AM
Is possible to show the full pastebin code?
With this mycode, the height is not 100%, but it use scrollbar.
I tried to remove scrollbar and show 100% of the code using:
<object scrolling="no" width="100%" height="100%" etc.
But didn't work.
With this mycode, the height is not 100%, but it use scrollbar.
I tried to remove scrollbar and show 100% of the code using:
<object scrolling="no" width="100%" height="100%" etc.
But didn't work.
2011-08-26, 06:52 PM
height=100% wont work cause it is related to the parent element.
i think only workaround to do that client sided is to set height to fixed size via javascript.
i think only workaround to do that client sided is to set height to fixed size via javascript.
2011-08-30, 09:23 PM
How to do it?
2011-12-05, 12:40 AM
Nice one
2011-12-16, 10:38 PM
thank you
2011-12-19, 03:49 PM
This code is very nice and works nicely. Thanks.
However, I have a dark background on my forums so how can I change the font color? I am using Fábio Maia's version of this.
However, I have a dark background on my forums so how can I change the font color? I am using Fábio Maia's version of this.
2012-03-31, 11:13 PM
(2011-12-19, 03:49 PM)Koiranpentu Wrote: [ -> ]This code is very nice and works nicely. Thanks.
However, I have a dark background on my forums so how can I change the font color? I am using Fábio Maia's version of this.
I'm also having this problem. Does anyone know how to solve it?
2012-04-19, 01:02 PM
The first one i cant get to work. But the second one does work from Fábio Maia. I tried both and found the simpler solution to simply do this:
Regular Expression:
Replacement:
Has the exact same result as JavaScript Embedding way. And yes i know everybody hates iframes, but this simply worked in this case better for me.
For the people who want it to look "nicer" use this code:
Simple modified code from Fábio Maia
Regular Expression:
\[pastebin\]http://pastebin.com/(.*?)\[\/pastebin\]
Replacement:
<iframe src="http://pastebin.com/embed_iframe.php?i=$1" style="border:none;width:100%"></iframe>
Has the exact same result as JavaScript Embedding way. And yes i know everybody hates iframes, but this simply worked in this case better for me.
For the people who want it to look "nicer" use this code:
<div class="title"><strong>Pastebin:<strong></div>
<div class="body">
<iframe src="http://pastebin.com/embed_iframe.php?i=$1" style="border:none;width:100%"></iframe>
</div>
Simple modified code from Fábio Maia
2012-04-19, 01:34 PM
Holy shhh this thread has nearly 300,000 views! Anyway, cool addition. I'm doing to add this into my forum now!