This post exists purely to house answers formerly attached to the formatting sandbox. You can safely ignore it.
623 Answers
I don't particularly mind if you flag this as spam, though some moderator might dislike that ... a lot.
Link at end of post:
This is a test post for Charcoal HQ.
- why you don't want others flag this as spam?user298438– user2984382018-06-09 18:21:40 +00:00Commented Jun 9, 2018 at 18:21
- @user298438 That's not what I wrote. A moderator will review your spam flag and probably dismiss it as unhelpful because this isn't actually spam. The text is mainly there as a test case for the SmokeDetecter bot in Charcoal, and I don't want users there to spend time on analyzing it needlessly.tripleee– tripleee2018-06-09 19:17:51 +00:00Commented Jun 9, 2018 at 19:17
- I didn't flag it as spam. I just want to ask you for an attention.user298438– user2984382018-06-09 22:39:21 +00:00Commented Jun 9, 2018 at 22:39
- 2I am flagging this as spam because it obviously exists to advertise Charcoal HQJohn Militer– John Militer2018-06-11 14:11:14 +00:00Commented Jun 11, 2018 at 14:11
- @JohnMiliter That's not what this user wrote. A moderator will review your spam flag and probably dismiss it as unhelpful because this isn't actually spam. The text is mainly there as a test case for the SmokeDetecter bot in Charcoal, and this user don't want users there to spend time on analyzing it needlessly.user298438– user2984382018-06-19 18:15:32 +00:00Commented Jun 19, 2018 at 18:15
How can I make a link in a stack snippet open in new tab?
<a href="https://meta.stackexchange.com" target="_blank"> Link1 </a> <a href="https://meta.stackexchange.com" target="_top"> Link1 </a> <a onclick='window.open("https://meta.stackexchange.com","_blank")'> Link1 </a> <a onclick='window.open("https://meta.stackexchange.com","_top")'> Link1 </a> - meta.stackoverflow.com/questions/325572/…. (TL;DR: you can't.)user152859– user1528592018-05-28 14:17:36 +00:00Commented May 28, 2018 at 14:17
- @ShadowWizard Too bad that it doesn't work. I was working on PPCG's leaderboard snippet, and this is annoying.user202729– user2027292018-05-28 14:18:56 +00:00Commented May 28, 2018 at 14:18
- not really annoying, kind of security issue. The whole snippet system is in a sandbox, better not give it too much "power".user152859– user1528592018-05-28 14:20:17 +00:00Commented May 28, 2018 at 14:20
snippet:
<iframe name="ngram_chart" src="https://books.google.com/ngrams/interactive_chart?content=VBA&year_start=1980&year_end=2018&corpus=15&smoothing=3&share=&direct_url=t1%3B%2CVBA%3B%2Cc0" width=1000 height=600 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe> -
<snippet type="text/stacksnippet">Donald Duck is with Ukraine– Donald Duck is with Ukraine2018-07-28 01:46:47 +00:00Commented Jul 28, 2018 at 1:46
┏━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ## ┃ GNOME Terminal ┃ xterm ┃ non-GUI TTY ┃ ┡━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ │ reset all │ reset all │ reset all │ │ 0 │ reset all │ reset all │ reset all │ - aaa
`fffpopopopopopopopoAlex K– Alex K2019-02-22 16:45:12 +00:00Commented Feb 22, 2019 at 16:45 - bzzz ` wtttpza -- mips (the humans are suspicious)user152261– user1522612019-02-23 18:03:45 +00:00Commented Feb 23, 2019 at 18:03
I have heard that you get waffles over here?
- Comments purged. Presumably everyone has gotten their hats. Feel free to spam this dude. :)2018-12-19 01:07:42 +00:00Commented Dec 19, 2018 at 1:07
If common mark is implemented then this will work:
bool working = true; - You rock! Now how many older posts are broken ;)2019-01-04 15:36:37 +00:00Commented Jan 4, 2019 at 15:36
- Well it's not quite there yet. Will look into the differences next week.2019-01-04 15:38:30 +00:00Commented Jan 4, 2019 at 15:38
Testing the new ```-style codeblocks:
this is a code block In a blockquote This is a codeblock in a blockquote
Language highlighting:
With a ```lang-c at the top:
#include <stdio.h> int main(int argc, char** argv) { int i = 6; while(i --> 0) printf(i); return 0; } With a <!-- language: lang-c -->:
#include <stdio> int main(int argc, char** argv) { int i = 6; while(i --> 0) printf(i); return 0; } Testing order of attributes in <a> tags:
Examples:
href first: <a href="https://example.com" title="example with href first">`href` first</a>
title first: <a title="example with href first" href="https://example.com">`title` first</a>
I'm bored, so I'm trying to make marquee art:
<marquee>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</marquee> <marquee>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</marquee> <marquee>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</marquee> <marquee>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</marquee> <marquee>@@@@@@@@@@@@@@@@@@@@</marquee> <marquee>@@@@@@@@@@</marquee> Gotta love the magic editor. Makes a lot of my editing a lot quicker.
But code markdown appears to break it :/ So this is just a reproduction post for the problem, in theory anyways.
public static void main(String[] args) { System.out.println("This should default back to regular code formatting, and backticks more or less removed"); } Unrelated, random update as requested by NH. for notification testing related to question starring. Just don't stare directly at the question, or you may feel like you're seeing ponies everywhere
- weirdly status-no-repro in this environment xdZoe - Save the data dump– Zoe - Save the data dump2019-02-18 19:56:31 +00:00Commented Feb 18, 2019 at 19:56
- Would you please update your answer or answer again, @Asuna? I'm testing whether starring this question will notify me in any way.NH.– NH.2019-02-21 16:43:05 +00:00Commented Feb 21, 2019 at 16:43
- @NH. Updated - pretty sure you just get a special update thingy on your profile under favorites (shows up as a "1" on the post IIRC)Zoe - Save the data dump– Zoe - Save the data dump2019-02-21 16:47:22 +00:00Commented Feb 21, 2019 at 16:47
- Confirmed... now I need to document that somewhere...NH.– NH.2019-02-21 17:00:34 +00:00Commented Feb 21, 2019 at 17:00
foo FOO:
def f1(s): return s def f2(): f1('I LOVE FOO') print(f2()) Aha, a joke, now a working one:
def f1(s): return s def f2(): return f1('I LOVE FOO') print(f2()) How about:
def f1(): f2() def f2(): f1() print(f1()) - 1It appears that
Noneof the functions are willing to print 'I LOVE FOO'.Picachieu– Picachieu2019-02-22 03:57:25 +00:00Commented Feb 22, 2019 at 3:57 - 1@SupaMegaDuckyMomodaWaffle Lol, made one working.U13-Forward– U13-Forward2019-02-22 03:59:36 +00:00Commented Feb 22, 2019 at 3:59
- 1Yay! Now the
printfunction loves foo!Picachieu– Picachieu2019-02-22 04:00:29 +00:00Commented Feb 22, 2019 at 4:00 - 1@SupaMegaDuckyMomodaWaffle Yup, :-), lol, funny code.U13-Forward– U13-Forward2019-02-22 04:01:07 +00:00Commented Feb 22, 2019 at 4:01
- 1Now all you have to do is call
f2fromf1and start an infinite loop... I'm sureprintwould like that.Picachieu– Picachieu2019-02-22 04:02:44 +00:00Commented Feb 22, 2019 at 4:02 - 1Wow, snails really can read people's minds. I never knew...Picachieu– Picachieu2019-02-22 04:03:13 +00:00Commented Feb 22, 2019 at 4:03
- @SupaMegaDuckyMomodaWaffle WOW, i did that even before i saw your comment!U13-Forward– U13-Forward2019-02-22 04:03:26 +00:00Commented Feb 22, 2019 at 4:03
- @SupaMegaDuckyMomodaWaffle hahaha, my snail has a good brain :-)U13-Forward– U13-Forward2019-02-22 04:04:11 +00:00Commented Feb 22, 2019 at 4:04
- Great job telepathically communicating, Snail! Now Python just needs to learn how, and the whole universe of everything will be so much easier...Picachieu– Picachieu2019-02-22 04:05:21 +00:00Commented Feb 22, 2019 at 4:05
- @SupaMegaDuckyMomodaWaffle Yup, of course, wow, you have so many names.U13-Forward– U13-Forward2019-02-22 04:06:03 +00:00Commented Feb 22, 2019 at 4:06
- I know... I put so much time and effort into coming up with my names...Picachieu– Picachieu2019-02-22 04:07:57 +00:00Commented Feb 22, 2019 at 4:07
- @SupaMegaDuckyMomodaWaffle I like pizza static void main since that reminds me of pizza 🍕U13-Forward– U13-Forward2019-02-22 04:10:05 +00:00Commented Feb 22, 2019 at 4:10
- I prefer Supa Mega Ducky Momo da Waffle because it gives me an excuse to talk about waffles, ducks, and Supa Megas at the same time.Picachieu– Picachieu2019-02-22 04:11:37 +00:00Commented Feb 22, 2019 at 4:11
- @SupaMegaDuckyMomodaWaffle Oh that's rigth, missed that one.U13-Forward– U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EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE</marquee><marquee>REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE</marquee> - 1+1 for the incredibly annoying quote block thingie.Picachieu– Picachieu2019-02-18 20:08:13 +00:00Commented Feb 18, 2019 at 20:08
- I was very bored.object-Object– object-Object2019-02-19 01:50:08 +00:00Commented Feb 19, 2019 at 1:50
- 1And to answer your question, you are doing this because you aren't not doing this.Picachieu– Picachieu2019-02-23 01:33:09 +00:00Commented Feb 23, 2019 at 1:33
Lets investigate markdown
bold
italic
~~strike~~
code
idented code Now html
bold
italic
inline css bold attributed text
underline
superscript
- 2Is there any purpose to the
#!after post ID? :)user152859– user1528592013-12-22 17:52:40 +00:00Commented Dec 22, 2013 at 17:52 - 1Stop that, please.2015-03-10 23:05:18 +00:00Commented Mar 10, 2015 at 23:05
- 1@NickCraver - Very sorry. I created a post on it and was coming back to delete these. I chose one at random and didn't mean to spam you. I was hoping the wiki would prevent message pinging. Sorry!!Travis J– Travis J2015-03-10 23:07:44 +00:00Commented Mar 10, 2015 at 23:07
- 3@TravisJ it's all good - just makes my phone go nuts :) Protip: pick one from a user that's been deleted next time, good test target!2015-03-10 23:20:56 +00:00Commented Mar 10, 2015 at 23:20
- Here's a test <script>alert('test');</script>2015-05-18 17:56:31 +00:00Commented May 18, 2015 at 17:56
Test using pre/code...
public void Something() { return; } Regular text here.
public void Something() { return; } - This is bold.user154393– user1543932011-04-14 03:07:26 +00:00Commented Apr 14, 2011 at 3:07
- This is boldnot.user154393– user1543932011-04-14 03:07:46 +00:00Commented Apr 14, 2011 at 3:07
- This is bold maybe.user154393– user1543932011-04-14 03:13:21 +00:00Commented Apr 14, 2011 at 3:13
- Following is
back tickedright?user154393– user1543932011-05-13 15:15:27 +00:00Commented May 13, 2011 at 15:15 - Following is code: <code>public void</code>, right?user154393– user1543932011-05-13 15:17:04 +00:00Commented May 13, 2011 at 15:17
script: for i in $1 $2 $3 P
script with backticks and line breaks: P
for i in $1 $2 $3 P P
short line P
long line long line long line long line
script with indent of 4 spaces: P
for i in $1 $2 $3 P short line P long line long line long line long line P script with <pre> P
for i in $1 $2 $3 P short line P long line long line long line long line P
script with <pre><code> P
for i in $1 $2 $3 P short line P long line long line long line long line P - ...but: new paragraphs need an empty line. See my edit. (Explicit line breaks, which do not start a new paragraph, are rarely needed, but are possible too. As I really dislike the abuse of line breaks, I won't explain the trick here, though the Markdown help makes no secret out of it...)Arjan– Arjan2010-09-19 02:11:13 +00:00Commented Sep 19, 2010 at 2:11
Some apparent whitespace problems, 10 m/s (original post):
The period of a pendulum of length $h$ for small oscillations is $2\pi \sqrt{h/g}$, with $g$ the acceleration due to gravity, about $10 m/s$.
Source:
The period of a pendulum of length
$h$for small oscillations is$2\pi \sqrt{h/g}$, with$g$the acceleration due to gravity, about$10 m/s$.
Update: Meta Stack Overflow does not seem to have the formula stuff that Physics has.
Be aware that you can run into trouble if you try to use < inside: <code>a<b</code> gives a!
- You can't have a backslash
\in the end of inline code in comments. If you try`\\`, then the result will be `\`. You'll have to type `\\ ` and live with the white space being within the inline code.
- `test number one`user153011– user1530112011-02-10 17:37:07 +00:00Commented Feb 10, 2011 at 17:37
- `test number two\`user153011– user1530112011-02-10 17:39:30 +00:00Commented Feb 10, 2011 at 17:39
-
test number three\\user153011– user1530112011-02-10 17:43:33 +00:00Commented Feb 10, 2011 at 17:43 -
test number four\user153011– user1530112011-02-10 17:58:58 +00:00Commented Feb 10, 2011 at 17:58 - Hey @Hendrik I've deleted my comments at meta.stackexchange.com/questions/59445/… :)user152859– user1528592011-04-27 12:39:16 +00:00Commented Apr 27, 2011 at 12:39
Will sanitizer incorrectly strip the p tag at the end? Header 1 Header 1 Header 2
line break test
italic
bold
Have you seen ?
code span<a
more test test <a test test test
funny
How about in lists?
- li1 unclosed
- li2 unclosed
p
- li1 unclosed
- li2 unclosed
bla:
- bla
- bla
Just testing this new feature:
- You did hear about Recent feature changes to Stack Exchange, right? "New" since 2010-11-05 ;-) (Okay, that was only added there on December 7th.)Arjan– Arjan2011-02-07 12:39:36 +00:00Commented Feb 7, 2011 at 12:39
Testing a possible edit bug...
Here's the first edit...
And here's the second -- perhaps as a new post.
Okay so far, will try one more time...
Final test
Testing out this new Userscript I'm building. One more edit to make sure this thing works.
-
- Will this still work after I delete some comments?Yi Jiang– Yi Jiang2010-10-31 03:34:56 +00:00Commented Oct 31, 2010 at 3:34
- Adding in one more commentYi Jiang– Yi Jiang2010-10-31 07:03:07 +00:00Commented Oct 31, 2010 at 7:03
-
-
- 3Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight proleptic Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds. It is used widely, not only in Unix-like operating systems, but also in many other computing systems and file formats. It is neither a linear representation of time nor a true representation of UTC (though it is frequently mistaken for both), as it cannot represent standard UTC leap seconds (e.g. December 31, 1998 23:59:60), although otherwise the times it represents are UTC.Yi Jiang– Yi Jiang2010-10-31 08:30:31 +00:00Commented Oct 31, 2010 at 8:30
Comments test. Checking various comment related stuffs
- linkKen Wayne VanderLinde– Ken Wayne VanderLinde2011-02-18 20:04:33 +00:00Commented Feb 18, 2011 at 20:04
testing revision diffs blah blah
- new line
new line2
this foobar quote
- boo boo boo
- Code
var=`grep -c this`no codeicyrock.com– icyrock.com2012-03-21 00:34:40 +00:00Commented Mar 21, 2012 at 0:34
i wrote sending email function that only work my debug mode(debug local server) when i publishing and hosting C# code that function not work. this my email configuration function
