mersenneforum.org Pastebin BB Code
 Register FAQ Search Today's Posts Mark Forums Read

 2015-10-15, 21:07 #1 Xyzzy     Aug 2002 7·1,201 Posts Pastebin BB Code We have implemented a new BB Code that allows you to embed a Pastebin snippet. It allows syntax highlighting and a bunch of other features that we barely understand. We hope this enhancement will make listing logs and code snippets on the forum much easier. We are not sure how many pixels to give it for height. Right now it is set for 500 pixels. Suggestions are appreciated. If this does not work for you please let us know! Please try to break it. So we can try to fix it.
 2015-10-15, 21:07 #2 Xyzzy     Aug 2002 7·1,201 Posts
 2015-10-15, 22:09 #3 Batalov     "Serge" Mar 2008 Phi(4,2^7658614+1)/2 100101110110012 Posts
 2015-10-17, 17:42 #4 henryzz Just call me Henry     "David" Sep 2007 Liverpool (GMT/BST) 3·5·397 Posts This could start a new style of posting on the forum. I like it. Not fond of how it looks if your code has less lines than the size of the box. Seems a waste of space. Does it need to be a fixed size? Last fiddled with by henryzz on 2015-10-17 at 17:42
2015-10-17, 22:00   #5
Xyzzy

Aug 2002

7×1,201 Posts

Quote:
 Originally Posted by henryzz Does it need to be a fixed size?
We didn't find a better option.

http://www.w3schools.com/cssref/pr_dim_height.asp

2015-10-18, 08:56   #6
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

160658 Posts

Quote:
 Originally Posted by Xyzzy We didn't find a better option. http://www.w3schools.com/cssref/pr_dim_height.asp
Why not just use "auto"? You can also use a percentage instead of a fixed pixel count.

https://developer.mozilla.org/en-US/docs/Web/CSS/length

2015-10-18, 14:25   #7
Xyzzy

Aug 2002

7·1,201 Posts

Quote:
 Originally Posted by Dubslow Why not just use "auto"?
That option only shows six lines.

Quote:
 Originally Posted by Dubslow You can also use a percentage instead of a fixed pixel count.
That option shows six lines no matter what percentage it is set for.

Maybe we need to tune the height in pixels? Suggestions?

2015-10-18, 14:32   #8
science_man_88

"Forget I exist"
Jul 2009
Dumbassville

838410 Posts

Quote:
 Originally Posted by Xyzzy That option only shows six lines. That option shows even less. Maybe we need to tune the height in pixels? Suggestions?
not really but Here's a comparison to a post I made in the Pari commands thread:

Last fiddled with by science_man_88 on 2015-10-18 at 14:33

 2015-10-18, 14:33 #9 retina Undefined     "The unspeakable one" Jun 2006 My evil lair 632810 Posts iframes are usually used for adverts. And AFAIK you can't get the height of the contents of the iframe because it acts like a new window inside the page. And each window can't communicate with each other, for security reasons.
2015-10-18, 14:36   #10
Xyzzy

Aug 2002

20D716 Posts

Quote:
 Originally Posted by science_man_88 not really but Here's a comparison to a post I made in the Pari commands thread:
It looks like "auto" makes the most sense!

 2016-01-12, 16:01 #11 Xyzzy     Aug 2002 20D716 Posts The embed code that was working is broken. Code: 

 Similar Threads Thread Thread Starter Forum Replies Last Post pinhodecarlos NFS@Home 411 2022-01-20 12:14 Andrew Programming 12 2013-02-16 20:53 JohnFullspeed Programming 20 2011-09-04 04:28 IronBits No Prime Left Behind 6 2008-11-12 14:23 axn Programming 0 2007-12-14 01:48

All times are UTC. The time now is 08:47.

Fri Jan 21 08:47:36 UTC 2022 up 182 days, 3:16, 0 users, load averages: 2.25, 2.22, 1.88