mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Forum Feedback

Reply
 
Thread Tools
Old 2016-01-12, 16:11   #1
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default Inline code and YouTube tags

We are experimenting with an inline code tag.

The regular code block tags work okay for chunks of code. This tag will be for smaller inline chunks.

Please test it and let us know how to make it better.

[c]code[/c]
Xyzzy is offline   Reply With Quote
Old 2016-01-12, 16:24   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

This is testing the code tags. Testing again, something with some characters like ["<>";!```] And with some inline, it still looks okay. I wonder if the $\$-based tex tags$ are still on and how they interact with the new $code tags$ $and in reverse$? Yep, all looks good to me.
Mini-Geek is offline   Reply With Quote
Old 2016-01-12, 16:40   #3
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25·257 Posts
Default

The link parser should not work inside these new tags.

Test: http://www.mersenne.org/

Smilies should not work either.

Test: :mike:

Xyzzy is offline   Reply With Quote
Old 2016-01-12, 17:06   #4
axn
 
axn's Avatar
 
Jun 2003

31×163 Posts
Default

How does it handle newlines: Hello
World


Works like a champ!

Is there anything the new tag can't do that the old one could?
axn is offline   Reply With Quote
Old 2016-01-12, 17:16   #5
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by axn View Post
Is there anything the new tag can't do that the old one could?
look like the pastebin tag ? edit:sorry misread for some reason. though ou have to admit it looks like the pastebin tag lol

Last fiddled with by science_man_88 on 2016-01-12 at 17:17
science_man_88 is offline   Reply With Quote
Old 2016-01-12, 17:23   #6
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

22·733 Posts
Default

Mark Rose is offline   Reply With Quote
Old 2016-01-12, 18:44   #7
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by axn View Post
How does it handle newlines: Hello
World


Works like a champ!

Is there anything the new tag can't do that the old one could?

Large blocks of code or other unformatted text are likely
more difficult to read
since they are ignoring my beginning- and end-of-line spacing
and it doesn't seem there's a way to keep very long things on one line,
and it doesn't eventually scroll in any direction like the block [code] tag does, so if I go on for a long time like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis enim eu tortor pharetra molestie. Phasellus commodo ex erat, vel consequat dui tempus ac. Nulla facilisi. Sed laoreet velit id mauris sagittis sollicitudin. Vestibulum ultricies nunc id libero vestibulum, fringilla auctor felis facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tempus sagittis dui. Integer tincidunt nec metus id luctus. Curabitur lobortis velit tortor. Nullam venenatis, justo quis eleifend pellentesque, urna magna ullamcorper felis, sed rhoncus tortor ante at metus. Ut id gravida velit, vitae tristique lacus.

Ut id commodo nisl. Nam efficitur rutrum dolor, at accumsan ligula rhoncus non. Quisque vel bibendum metus. Sed nec diam vehicula, sagittis elit quis, ultrices magna. Donec faucibus ante ut metus tempus, cursus lacinia risus suscipit. Phasellus sed nisi justo. Suspendisse sollicitudin ligula sed laoreet laoreet. Phasellus efficitur posuere elit, in pellentesque sem gravida at. Duis eget erat vitae mauris vehicula tincidunt. Nullam tincidunt nibh id nisl convallis, vitae porta neque porttitor. Nunc pulvinar risus at pretium scelerisque. Nunc vel metus dui.

Duis vel pellentesque lacus. Aliquam condimentum ullamcorper volutpat. Aliquam neque ligula, pretium ut consectetur sit amet, finibus porttitor libero. Suspendisse sagittis ultrices eros vitae porta. Nullam arcu libero, varius vitae mi ut, lobortis auctor sem. Vestibulum venenatis quis tellus feugiat varius. Donec ipsum mauris, ultrices eu ex in, euismod bibendum quam. Curabitur quis nunc venenatis erat finibus accumsan quis a massa.

Donec consectetur tincidunt lorem, at elementum ipsum tempus ut. Duis urna risus, fringilla id augue ut, fermentum suscipit justo. Suspendisse potenti. Sed a arcu hendrerit, porta eros at, mollis nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras tellus nibh, egestas id dolor in, ultrices tempor tortor. Aenean bibendum, nunc eget porta faucibus, nulla nisi aliquet lorem, sit amet maximus sem velit sed nisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque malesuada egestas sapien id pretium. Morbi tempor, justo porta facilisis tristique, libero enim rhoncus ligula, non ultricies dui neque consequat nulla.

You can also see (in Firefox, at least) a little more border below and above my text because I have the [ c ] and [ / c ] on their own lines.


The old [code] tag is still better for something you want block-formatted or is very long, but [c] looks great for inline or some other short code.

Last fiddled with by Mini-Geek on 2016-01-12 at 18:46
Mini-Geek is offline   Reply With Quote
Old 2016-01-12, 18:50   #8
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

822410 Posts
Default

Do we need to tweak the colors or anything like that?

Xyzzy is offline   Reply With Quote
Old 2016-01-12, 22:38   #9
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

1011011101002 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Do we need to tweak the colors or anything like that?

I would make the green a touch darker, perhaps #153 ish?
Mark Rose is offline   Reply With Quote
Old 2016-01-12, 23:32   #10
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25·257 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
I would make the green a touch darker, perhaps #153 ish?
The current green is #2e8b57. Can you tell us your desired color in that format?

We removed the line around the text, adjusted the padding and changed the background color to one of the template colors. Any of these can be reverted if necessary. Opinions?

Xyzzy is offline   Reply With Quote
Old 2016-01-13, 00:32   #11
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10AB16 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
The current green is #2e8b57. Can you tell us your desired color in that format?

We removed the line around the text, adjusted the padding and changed the background color to one of the template colors. Any of these can be reverted if necessary. Opinions?

#115533 == #153 (#rgb is shorthand for #rrggbb), and it's this color. You can put "#153" directly in the CSS (like the #fff just before it), it's understood by browsers.

I agree that something darker, like #153, would be better. It would also be better to move that CSS from an inline style to a class defined wherever you define your CSS (it looks like most of it is inline to the page on this site, which isn't ideal from a caching/bandwidth perspective, as opposed to in one or more external css files).

Last fiddled with by Mini-Geek on 2016-01-13 at 00:38
Mini-Geek is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
mfaktc: potentially unsafe inline asm Fredrik GPU Computing 9 2016-01-15 22:29
How do you bypass YouTube ads? Stargate38 Lounge 16 2013-02-20 22:46
Why does GCC inline asm need a clobber list? ewmayer Programming 60 2011-12-31 21:52
YouTube davieddy Soap Box 0 2011-01-10 03:27
Spoiler and Center tags do not play well together wblipp Forum Feedback 1 2008-02-03 19:39

All times are UTC. The time now is 13:39.


Sat Jul 17 13:39:13 UTC 2021 up 50 days, 11:26, 1 user, load averages: 1.65, 1.61, 1.59

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.