578

Notes:

  • Answers will occasionally be moved to the Sandbox archive when there are too many of them. When using them to report bugs, keep an eye on the post.

As per Jeff's suggestion in this comment:

You can use this question as a formatting sandbox. You can:

  • edit this question itself (Community Wiki questions such as this one require only 100 reputation to edit instead of 2,000)
  • post answers to this question (This question might be protected, requiring earning 10 reputation on this site to answer)
  • post comments to this question or its answers
  • test suspected bugs with the editor or the rendering
  • post ponies (only when mods are asleep)

Beware that since the changes to syntax highlighting in December 2010, and the inline hints added in March 2011, no syntax highlighting is applied unless the question's tags or an inline hint enable it. So, to test highlighting here in the sandbox:

  1. As of January 8, 2019, you can use GitHub-flavor fenced code blocks in your posts, specifying the language after the opening fence:

    ```html
    While not hinted otherwise: <html></html> source <b>goes</b> "here".
    ```
    
    ```js
    var a = 3;
    while (not (a > 0)) {
        alert("JavaScript code <b>goes</b> here.");
    }
    ```
    
  2. Or:

    • Create code blocks in any way (using the fence notation above, the four-space indent form, or using HTML <pre><code> tags).

    • Save your post.

    • Use your browser's developer tools to edit the resulting HTML. To open developer tools, press F12, or ⌥⌘ I on Mac.

    • Find the <pre> element and add the attribute class="prettyprint", or change it into one of the valid syntax hints linked above, like class="lang-vb prettyprint".

    • Run the following in the location bar: javascript:prettyPrint(); or prettyPrint() in the console.

Answers that are considered annoying or obnoxious, or that cause breakage for users, will be deleted. This is codified as a policy as of March 29, 2018.

  • Bold code block.Italic code block. – smileycreations15 Mar 4 '19 at 12:36
  • Is new line working correct? Adding two spaces at the end of this line And now the new line... And another another... No new lines :( – smajli Mar 5 '19 at 11:14
  • New line </br> continue in new line... – smajli Mar 5 '19 at 11:16
  • Test: meta.stackexchange.com/questions/324682/… – Alex Mar 17 '19 at 2:35
  • Do HTML &quot; entities &quot; work&nbsp;? Guess not. – a mask-wearing arachnid Apr 1 '19 at 22:18
  • 6
    A comment with some weird markdown, to test and help this user. Look tags work too, and so does tour. – Bhargav Rao Apr 6 '19 at 1:59
  • 6
    Note: Do not remove @BhargavRao's comment, or you will break this answer – wizzwizz4 Apr 6 '19 at 17:16
  • @BhargavRao When sandbox answers are moved to the archive, comments such as this one -- on the question itself -- aren't migrated; they're deleted. – rgettman Apr 9 '19 at 19:37
  • @rgettman, yeah, that is fine. I had used it for just a small demonstration. The linked answer itself is self-sufficient. Thanks anyway. – Bhargav Rao Apr 9 '19 at 20:22
  • @BringBackThePolyglot Do you get notifications if I reply to your comment and then delete your comment before you visit the site? (for those wondering how I can single-handedly delete someone else's comment, comments containing "thanks" are automatically deleted as soon as someone flags them) – Donald Duck Apr 25 '19 at 16:32
  • @DonaldDuck Yes, I got notified. – Bring Back The Polyglot Apr 25 '19 at 16:32
  • honestly the over 500 hundred upvotes for a sandbox post is taking this real time satire thing you guess do with rep points too far – Adam May 7 '19 at 11:14
  • It makes me feel like doing one too like an onion announcing the Debian contributor community have been assigned complete authority and trust over all encryption matters for the central banks of the world but no, im an adult, I can show restrain – Adam May 7 '19 at 11:16
  • no I'm seriously asking now, what does op mean when someone causes a user "breakage"? is that like the time I was not allowed to take the archer profile pic down for like 6 months? that did break me tbh – Adam May 7 '19 at 11:22
  • help center, help center, help center, help center and help center – link to frequently visited pages of the help center. Link text is "help center" (capitalization is respected). All links point to the main site. – AVK May 16 '19 at 17:45

80 Answers 80

1

alert("This snippet is for testing/comparing CSS sizing units:\n\t\tvh, vw, vmin,vmax, compared to %,\n  ...and seeing whether they work in SO snippets...\n\t\t\tThe answer is \"kinda\", LOL\n\t\t(Resize your browser window to try.)"); 
<head>
  <style>
    * { box-sizing: border-box; }
  </style>
</head>
<body>
  <div style="position:fixed; width:100%; height:100%; left:0; right:0; top:0; bottom:0; border:15px solid green;">
  My 100% &times; 100% div<br>

    <div style="position:fixed; width:50%; height:50%; left:25%; top:25%; border:15px solid red; text-align:left;color:red; font-size:5vmax;">
      My 50% &times; 50% div
      <br>(font-size:5vmax)
    </div>

    <div style="position:fixed; left:25vw; top:25vh; width:50vw; height:50vh;  border:15px dashed blue;text-align:right;color:blue; font-size:5vmin;">
      My 50vw &times; 50vh div
      <br>(font-size:5vmin)
    </div>
      
    <div style="position:fixed; bottom:15px; right:15px;"> 
      <a href="https://web-design-weekly.com/viewport-units-vw-vh-vmin-vmax/">More on viewport units</a>
    </div>  
  </div>
</body>

| improve this answer | |
1

blockquote

4 spaces
    8 spaces

test

    8 spaces

text test

<b>dsadas</b>
While not hinted otherwise: <html></html> source <b>goes</b> "here".
While not hinted otherwise: <html></html> source <b>goes</b> "here".
| improve this answer | |
  • I want to try the community shortcuts - [Mathematics] [Mathematics] - [Math] [Math] - Mathematics [Mathematics.SE] - Mathematics [Math.SE] – John Alexiou Apr 30 at 14:02
1

posting sample answer from api

| improve this answer | |
1

or so
 you claim

| improve this answer | |
1

Do they look the same?

 Aa - sum(q * r) 

Aa - sum(q * r)

Aa - sum(q * r)
Aa - sum(q * r)
Aa - sum(q * r)
Aa - sum(q * r)

Aa - sum(q * r)

Should they look the same?

1

Testing some formatting

Below are some formatting tests within an answer...


Sample blockquote info

code block 

Blue Prism

sample code snippet

// init webrequest
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
webRequest.Method = "POST";
webRequest.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
webRequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
webRequest.ContentType = "application/x-www-form-urlencoded";
webRequest.ContentLength = bytes.Length;
1

Testing image links for images that really don't need an 'open in new tab' link on hover.

[![enter image description here][1]][1]

enter image description here

vs
![enter image description here][1]

enter image description here

& for MM…

![TITLE: REPORT TITLE][2]
[2]: https://i.stack.imgur.com/HbbYw.png

review image

1

just testing a url with square brackets and spaces

[http://&lsqb;IP Address here&rsqb;/service/health](http://&lsqb;IP%20Address%20here&rsqb;/service/health)

http://[IP Address here]/service/health

[http://&lsqb;IP Address here&rsqb;/service/health][1]
[1]: http://&lsqb;IP%20Address%20here&rsqb;/service/health

http://[IP Address here]/service/health

1

This is a test to see if I can trigger a potential bug with multi-paged questions and new answers.

Nothing to see here, move along (~^w^)~

1

Testing. Ok.

Does LaTeX formatting work? Let me test.

\binom{20}{2} \cdot (\frac{1}{10})^2 \cdot (\frac{9}{10})^{18} \approx 28.518%

Cool! It does! Ok

| improve this answer | |
1

How CommonMark renders the markdown preview (observed when editing a post) for various Internet top-level domains (TLD)

Bug: meta.so meta.se (reference: https://meta.stackexchange.com/a/349028/241919)


Original top-level domains: example.com example.net example.org example.gov example.edu

Infrastructure top-level domain: example.arpa

Country code top-level domains: example.de example.fr example.us example.so (Somalia) example.se (Sweden)

ICANN-era generic top-level domains: example.academy example.aero example.app example.auto example.blog example.coop

Geographic top-level domains: example.africa example.asia example.paris

Brand top-level domains: example.abc example.bing

Special-Use Domains: example.example example.onion example.test example.local

| improve this answer | |
1

Testing code snippet

<!doctype html>
<html>
<head>
<title>HTML Test</title>
<script type="text/javascript">
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
  for (var i = 42; --i >= 0;) {
    alert('Hello ' + String(world));
  }
}
</script>
<style type="text/css">
p { color: pink }
b { color: blue }
u { color: "umber" }
</style>
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>

| improve this answer | |
1

The following can only be done by ♦ moderators (and employees who have a diamond):

14: Post Locked - A post was locked by a moderator.
15: Post Unlocked - A post was unlocked by a moderator.
18: Question Merged - A question has had another, deleted question merged into itself.

The following can only be done by ♦ moderators (and employees who have a diamond) on questions:

16: Community Owned - A post has become community owned.
17: Post Migrated - A post was migrated. (Meta Stack Exchange only)

The following cannot be done by ♦ moderators:

  • 17: Post Migrated - A post was migrated. (if older than 60 days)
  • 21: Post Disassociated - An admin removes the OwnerUserId from a post.
  • 22: Question Unmerged - A previously merged question has had its answers and votes restored.
1

This is a test for the spoiler functionality, part 2.

  • Is there a bug here? – anon May 5 '19 at 15:40
  • I see no problem with the mobile Wikipedia link. – anon Jun 5 '19 at 1:00
  • 2
    This is a sandbox post, it doesn't need to make sense. Really, there's absolutely nothing to see here :) – Glorfindel Jun 5 '19 at 5:09
  • hmm.... adding one word gave me 4% contribution. Interesting. Would love to see the source code calculating that percentage... – Shadow Wizard Wearing Mask Jul 17 '19 at 8:50
  • I'm sorry if I mess up your testing - I was doing another test right now. – Glorfindel Jul 17 '19 at 8:56
  • All good! Now I'm down to 3% lol. If I may ask, what are you testing? ;) – Shadow Wizard Wearing Mask Jul 17 '19 at 8:58
  • A vandalism reverter ... – Glorfindel Jul 17 '19 at 9:02
  • You know you can add summary to a rollback, right? (Since it looks like that's what you try to do? :)) – Shadow Wizard Wearing Mask Jul 17 '19 at 9:06
  • Yeah, that too :) – Glorfindel Jul 17 '19 at 9:10
1

There once was a spammer from Bangalore

Who had absolutely no knack for writing limericks

| improve this answer | |
0

Placeholder 4️⃣ some tests…

🆄 🥫 edit this @ w➕🤒…

0

when i run this program it giving me only none

Var code = too much

this is a lot of code

help I'm stuck in a codeblock

aaaah

codeeeeeeee

CODE
Lots of code


Lots and lots
Var code = too much

this is a lot of code

help I'm stuck in a codeblock

aaaah

codeeeeeeee

CODE
Lots of code

Var code = too much

this is a lot of code

help I'm stuck in a codeblock

aaaah

codeeeeeeee

I edit in MOOOOOORE COOOOOOOODE

CODE
Lots of code
  • @ankii seeing if I get the warning that it’s mostly code (see here). – anon Sep 15 '19 at 16:31
  • [mre] does this work (typed [mre]) – anon Sep 22 '19 at 5:13
  • 1
    @ankii oh that pinged you :P? – anon Sep 22 '19 at 5:15
0

test post please ignore 30 characters

test edit

| improve this answer | |
  • test comment asdfasdf – user1306322 Oct 30 '19 at 11:59
0

I am experimenting with runnable snippets.

.inner {
  margin-bottom: 1rem;
}

.inner::before {
  content: "I'm before inner!";
  display: block;
}
<div class="outer">
  <div class="inner">Inner 1</div>
  
  <div class="inner">Inner 2</div>
</div>

| improve this answer | |
0

Testing Rollbacks

Just a test answer to get my hands on rollbacks. Edit 1111 Edit 2222

| improve this answer | |
0

С#:

public string X {get; set;}

default:

public string X {get; set;}
| improve this answer | |
0

⁧19 فبراير - تم جمع 0 من أصل 211

| improve this answer | |
0

The diff is informative; it will not apply directly because this site mangles tabs and whitespaces

BET

--- drivers/usb/class/cdc-acm.c~
+++ drivers/usb/class/cdc-acm.c
@@ -1063,7 +1063,7 @@
 }

 static const struct tty_port_operations acm_port_ops = {
-   .dtr_rts = acm_port_dtr_rts,
+   /* .dtr_rts = acm_port_dtr_rts, */
    .shutdown = acm_port_shutdown,
    .activate = acm_port_activate,
    .destruct = acm_port_destruct,

ETA: nvm I'm rekt

feel free for anyone to commandeer this answer if your rep is too low for the sandbox

| improve this answer | |
0

Testing possible issues with the revision history for good measure (Thank you for enabling YouTube embedding!):

iframe:

Script:

alert("Script injection protection broken")

Video raw:

https://www.youtube.com/watch?v=Hwz7YN1AQmQ

Video iframe:

0

This is a code fence test.

New code
| improve this answer | |
0

Yay! We just get to messAround

22 = 4 (unless we're talkin' common core)

0
  • List

Unindented snippet

  • List

    Indented snippet

    Continuing list's indent level... Things written here fail to render correctly in the preview (show up as code block), but works when posted... Try it by clicking edit

    I suspect that it's because of the edit above snippet button

0

A new list?

  1. This.
  2. That.
| improve this answer | |
0

Very good! Fantastic! Very good! Fantastic! Very good! Fantastic!frefferfgerger

This is a test.

Still a test.

  • List item

I keep testing.

Until it breaks.

  • Another list item

    And it doesn't break if you indent by 4 spaces

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .