mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Forum Feedback

Reply
 
Thread Tools
Old 2015-10-15, 21:07   #1
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

32×13×71 Posts
Lightbulb 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.
Xyzzy is offline   Reply With Quote
Old 2015-10-15, 21:07   #2
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

100000011100112 Posts
Default

Xyzzy is offline   Reply With Quote
Old 2015-10-15, 22:09   #3
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2·7·683 Posts
Default

Batalov is offline   Reply With Quote
Old 2015-10-17, 17:42   #4
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

34×73 Posts
Default

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
henryzz is online now   Reply With Quote
Old 2015-10-17, 22:00   #5
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

32×13×71 Posts
Default

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

http://www.w3schools.com/cssref/pr_dim_height.asp
Xyzzy is offline   Reply With Quote
Old 2015-10-18, 08:56   #6
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
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
Dubslow is offline   Reply With Quote
Old 2015-10-18, 14:25   #7
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

32×13×71 Posts
Default

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

Quote:
Originally Posted by Dubslow View Post
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?
Xyzzy is offline   Reply With Quote
Old 2015-10-18, 14:32   #8
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
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
science_man_88 is offline   Reply With Quote
Old 2015-10-18, 14:33   #9
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

628010 Posts
Default

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.
retina is online now   Reply With Quote
Old 2015-10-18, 14:36   #10
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

830710 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
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!

Xyzzy is offline   Reply With Quote
Old 2016-01-12, 16:01   #11
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

32·13·71 Posts
Default

The embed code that was working is broken.



Code:
<iframe src="http://pastebin.com/embed_iframe.php?i={param}" style="border:none;width:100%;"></iframe>
Xyzzy is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS@Home msieve logs for pastebin url pinhodecarlos NFS@Home 395 2021-10-18 01:04
Code Help Andrew Programming 12 2013-02-16 20:53
New Code JohnFullspeed Programming 20 2011-09-04 04:28
A little help with VBS code IronBits No Prime Left Behind 6 2008-11-12 14:23
pastebin - collaborative debugging tool axn Programming 0 2007-12-14 01:48

All times are UTC. The time now is 12:51.


Mon Oct 18 12:51:50 UTC 2021 up 87 days, 7:20, 0 users, load averages: 1.50, 1.82, 1.72

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.