577

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

78 Answers 78

1 2
3
0
<!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 | |
0

Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

enter image description here

Notably there is no white space or gap between "commodo consequat" and "Duis aute".

After CommonMark (if spaces and > are added):

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    • Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. [Yuck! This is the problem!]

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

> ```
# test

Displayed as:

enter image description here

After CommonMark is displays correctly(?) as:

test


Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

enter image description here

After CommonMark:

[link1](https://example.com/q="one") properly becomes link1, which points to the URL https://example.com/q="one".

[link_uno](https://example.com/q="uno"&true=true "Link numero uno") properly becomes link_uno with a title of Link numero uno.

I don't understand the "last" problem

  • [Link with hint](https://example.com/page "URL: https://example.com/")
  • <a href="https://example.com/page" title="URL: https://example.com/">Link with hint 2</a>

Properly(?) renders as:


Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

1. Testing a strange bug:
    - ```
      testing something
      ```

Displayed as:

enter image description here

After CommonMark:

  1. Testing a strange bug:
    • testing something
      

Testing whether a formatting bug was removed by CommonMark (???)

Before CommonMark:

[wolfram alpha](https://www.wolframalpha.com/input/?i=sum+from+k%3D3+to+v+of+(v%5E2+%2F+2)+%2F+((v-k)%5E2+*+k)

Displayed correctly in the editor and incorrectly in the actual post

After CommonMark:

The url [wolfram alpha](https://www.wolframalpha.com/input/?i=sum+from+k%3D3+to+v+of+(v%5E2+%2F+2)+%2F+((v-k)%5E2+*+k) displays incorrectly in both the editor and the actual post.

Adding a parenthesis at the end of the link though, makes it appear correctly in both the editor and the post: wolfram alpha


0

Can I undelete an answer myself if it was deleted via Recommend deletion votes from review?


This is testing for undeletion when a post is deleted with

Review ends with 4/6 recommend deletion votes and none of them was cast by a trusted user.

Anyone, feel free to flag this as NAA or VLQ.

Non-trusted users only (below 20k rep), feel free to recommend to delete this post~

Moderator, consider replying if you get any mod flag?

  • I flagged as NAA – Dharman Jun 19 at 10:33
  • Undeleted myself, waiting for mod's response if they get any flag or not. – Meta Andrew T. Jun 19 at 12:21
  • @MetaAndrewT. Even have a link for you: meta.stackexchange.com/a/228479/369802 You get a disputed low quality review auto flag. I have three now ;) – Tinkeringbell Jun 19 at 12:30
  • Other links that may interest you: meta.stackexchange.com/q/311536/369802. Basically, only mod-deleted answers are 'permanently' deleted. If an answer or question is mod-deleted, the community can't vote to undelete it, and neither can the OP of a post :) – Tinkeringbell Jun 19 at 12:32
  • @Tinkeringbell thanks! Really appreciated for contributing to science :) – Meta Andrew T. Jun 19 at 12:35
  • Well, then you're really going to enjoy my final trick! presses delete :P – Tinkeringbell Jun 19 at 12:36
0

Can I undelete an answer myself if it was deleted via Recommend deletion votes from review?


This is testing for undeletion when a post is deleted with

Review ends with a mix of 1 or 2 delete votes and recommend deletion votes.

Anyone, feel free to flag this as NAA or VLQ.

Anyone is also free to recommend to delete this post~

(Trusted users (20k rep): consider commenting after recommending to delete this post, so that other trusted users can skip it..?)

Moderator, consider replying if you get any mod flag?

0

this post is so not by Stormblessed it’s just incredible how written-by-a-different-person it is (this is going to be for a bug report)

Hi this is a person who is very non-blessed-by-the-storms.

0

emphasized text
emphasized text
_this_is_a_Filename.doc
this_is_a_second_filename.doc

Rough markdown of this post:

*emphasized text* <br>
_emphasized text_ <br>
_this_is_a_Filename.doc <br>
_this_is_a_second_filename_.doc <br>
| improve this answer | |
0

Default
Italic
Bold
Italic and Bold

goofy text

That's supposed to say "goofy text" but it rendered far worse than I expected. Let me try again, changing the properties a bit this time.

goofy text

Still, terrible. Maybe this might work?

goofy text

Eh, a little better, but still quite bad. I guess that's what happens when you mix up sub with sup. More testing incoming.

testings̸͚̩̎ţ̵͔̓̍u̵͎͒̕f̶̧̌͒f̵̢͊youknow
e
moreandevenmoretest
e
testingyouknow
blahblahblahhh
random link

I put <code> markup on the word "and" in the keyboard input markup but as you can see it did not render. I also discovered that when I put the ** right after the image link it renders as so:

**

testings̸͚̩̎ţ̵͔̓̍u̵͎͒̕f̶̧̌͒f̵̢͊youknow
e
moreandevenmoretest
e
testingyouknowblahhblahh
random link

1: https://i.stack.imgur.com/u53M4.jpg **

Notice how both of the **s did not make the bold effect, and one of them was rendered outside of the code even though it was inside.

Test snippet to see if I even know a single bit of JS:

alert("i am batman");
alert("i am not batman");
document.write("i am still not batman");
console.log("i am still not batman no matter what");

Look! You can add italics to emojis! 😜 😜
But adding bold to them hardly has any effect. Here's an emoji with bold and another without bold. If you look closely at the one with bold (first one) you'll notice a tiny difference.

 😜 😜 

spoiler spoiler spoiler

Special Unicode:

⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇
①②③④⑤⑥⑦⑧⑨⑩
⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛
¹²³⁴⁵⁶⁷⁸⁹⁰
½⅓¼⅕⅙⅐⅟⅔⅖⅚⅘
  • @mindstormsboi testing – mindstormsboi Jun 15 at 16:57
  • ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭What a peculiar comment...‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‮‮‮‮‮‮‮‮ – mindstormsboi Jun 18 at 0:50
  • ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭What an odd comment...‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬‭ – mindstormsboi Jun 18 at 0:55
  • ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭Huh, very strange...‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‭‬ ‭ – mindstormsboi Jun 18 at 1:06
  • ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮ ‮ ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬testin ‬‬‭‮ ‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮ ‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮ ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮ ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮ ‮  – mindstormsboi Jun 18 at 1:19
  • Telephone Trumpet Testing    ‪‭‮‮ ‎   Alphabet Yummy    ‪‭‮‮ ‎ – mindstormsboi Jun 18 at 13:46
0

This is my code:

collections: subcategory
{
    _id:"ZbwCsJEMi2DesyJA7",
    category_name: "ICT",
    subcategory_name: "Laptop"
}

subcategory.js

Template.Subcategory.events({
     "keyup .searchbox": function(event){
           var query = event.target.value;
           Session.set('query', query);
     }
});

Template.Subcategory.helpers({
     subcategory: function(){
         var filter = {sort: {}};
         var query = Session.get('query');
         filter.sort[Session.get('sortby')] = 1;
         return Subcategory.find({ subcategory_name: new RegExp(query, 'i')} , filter ); 
    }
});

  • Comments are used to ask for clarification or to point out problems in the post. Outdated comments may get deleted. Learn more about comments…. – Bring Back The Polyglot Jul 15 at 23:19
  • Comments use mini-Markdown formatting: [link](http://example.com) _italic_ **bold** `code` . The post author will always be notified of your comment. To also notify a previous commenter, mention their user name: @peter or @PeterSmith will both work. Learn more about formatting… – Bring Back The Polyglot Jul 15 at 23:20
  • enter at least 15 characters – Bring Back The Polyglot Jul 15 at 23:25
  • testing how to undo votes on comments – Bring Back The Polyglot Jul 15 at 23:25
  • Apparently if you mess with the Javascript you can undo votes on comments within 60 seconds of voting even after refreshing the page. – Donald Duck Jul 15 at 23:28
  • But it doesn't seem to be possible to undo votes on comments if you voted more than 60 seconds ago, not even by messing with the Javascript. – Donald Duck Jul 15 at 23:31
  • Here is the code to undo votes on comments if you voted less than 60 seconds ago: let machin = document.createElement("form"); machin.method = "post"; machin.action = "/posts/comments/<comment id>/vote/0"; let fkey = document.createElement("input"); fkey.name = "fkey"; fkey.value = "fa360d325887bceb4de2c5522d095a7f65960ee9954efab80223ad4e67b23610"; machin.appendChild(fkey); document.body.appendChild(machin); machin.submit();. Paste it into the developer console on the same site as the comment is on, and replace <comment id> with the ID of the comment you want to undo your vote on. – Donald Duck Jul 15 at 23:33
0

Dots of shame.

| improve this answer | |
0

Testing testing runnable script

document.getElementById("p1").innerHTML = "js"
p {
  color: green;
}
<a href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" target = "_blank">Click the link!</a>
<p> :) </p>
<p id = "p1"></p>

| improve this answer | |
0

Minimal example for HTML comments breaks formatting from that point, but bloated in order to avoid being converted to a comment when I want it to remain as an answer.

blah

blah

blah

**blah**
0

You can try package You can try package

-1

‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮. ‮ ‮

| improve this answer | |
-1

asdhskdhflsdhfjak

| improve this answer | |
  • Um... I don't understand what's going on in this answer – mindstormsboi Jun 9 at 13:36
  • @mindstormsboi Formatting sandbox answers are typically nonsensical. I wouldn't worry about them too much, unless they're Rude/Abusive. – Spevacus Jun 9 at 13:58
  • yeah, just testing things – FireCubez Jun 9 at 14:50
-1

Escaped characters in comments.

| improve this answer | |
  • _/\_ renders like this: _/_ – ChrisW Jun 21 at 7:52
  • _/\\_ renders like this: _/\_ – ChrisW Jun 21 at 7:53
-1

.bold text after a dot works in answers

.it can also be done using HTML tags

-1

<$ ‮ !oboRhceTehT m'I ,iH

Try editing the above sentence post to say something else (but dont remove the <$), you'll have nightmares >:)

| improve this answer | |
  • Aha! Unicode hacks! ‮‮ – mindstormsboi Jun 30 at 14:00
-5

A I have tried adding a diamond ore block to a still image of my table just as a proof of concept, but cannot figure out how to render the passes properly.

A The method I tried is as follows:

Step 1

I created and textured my object and put it on view layer 1 along with the lights in the scene.

Step 2

I modeled the scene using planes for realistic lighting, textured them similar to my real-life walls and table, and put it on view layer 2.

my table and surrounding walls

Step 3

In view layer one, I set the walls to be use indirect only and in view layer 2, the object is also set to use indirect only.

Step 4

I set up the nodes following this video.

Now when I do the final render, the reflection of my lights appears on the table plane and the table plane basically fully messes up the multi-pass render.

Here's what I mean

viewlayer 2 GlossInd pass

As you can see, the table plane's reflections also shows up in the render whereas all I want is the actual reflection. With the current image, I can't comp that in because the colors are not right.

So is there any way to render the gloss, shadows etc. without rendering the plane of the table?

1 2
3

You must log in to answer this question.

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