Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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 100 reputation to edit)
  • post answers to this question (Since this question is protected, this requires earning 10 reputation on this site)
  • post comments to this question or its answers
  • test suspected bugs with the editor

Beware that since the changes to syntax highlighting in December 2010, and the inline hints added 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. On the start of a line, specify a language inline using <!-- language: lang --> hints, and indent the code 4 spaces as usual. There is a full list of hints (scroll down a little).

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

    • Save your post.

    • Use something like Firebug (Firefox), Web Inspector (Safari, Chrome) or Developer Tools (Internet Explorer 8) to edit the resulting HTML. To open Chrome Dev Tools, press F12

    • Find the <pre> element and add the attribute class="prettyprint", or change it into something more specific, like class="lang-vb prettyprint".

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

share|improve this question
3  
Please provide an MCVE. – Kevin Jul 24 '15 at 13:41
1  
Try turning it off and on again. – Kevin Jul 24 '15 at 13:41
2  
What have you tried? – Kevin Jul 24 '15 at 13:44
    
Hello and welcome to StackOverflow. Please take some time to read the help page, especially the sections named "What topics can I ask about here?" and "What types of questions should I avoid asking?". And more importantly, please read the Stack Overflow question checklist. You might also want to learn about Minimal, Complete, and Verifiable Examples. – Kevin Jul 24 '15 at 13:50
    
It looks like you want us to write some code for you. While many users are willing to produce code for a coder in distress, they usually only help when the poster has already tried to solve the problem on their own. A good way to demonstrate this effort is to include the code you've written so far, example input (if there is any), the expected output, and the output you actually get (console output, tracebacks, etc.). The more detail you provide, the more answers you are likely to receive. Check the FAQ and How to Ask. – Kevin Jul 24 '15 at 14:11
5  
Questions about underwater basket weaving are off-topic for this site. – Kevin Jul 24 '15 at 14:42
    
Test: help center Meta Stack Exchange Chat – TIPS Jul 27 '15 at 16:21
    
This is tricky to answer without an [mcve] – Kevin Sep 8 '15 at 16:47
    
Have you seen <example.com>;? – DavidPostill Sep 30 '15 at 12:43
    
Have you seen <example.com>;? – DavidPostill Sep 30 '15 at 12:53
    
foo bar <example.com>;. – DavidPostill Sep 30 '15 at 12:54
2  
Ẅ̷̲̖̲̹̬̫̻̪̝̲͈̮ͭͯͯͩ̌̀̍͌̄̀̕ͅT̴̽͂ͤ̈́̓̆̉ͭ̽ͦͮ̎͝͏̯͓̜͈̮̝͖̙͈̖̳͖̺̻͝͠F̧̧̻̠̜͓̟̥͙̭̱̞̦̖̭̠͔̽ͫ͊‌​̂̒̑̊̄ͧ͊͢Ẅ̵̧͇̖̩̟̯͇̭͈͉͈̹̪͔̖̭̟̫̈ͩ̆̌̄̌ͭ͐̌̄ͧ̀̍̆̈̆́̊̋̀Ţ̮͕̱ͤ͐͛̍͡F́ͬ͗ͪ̀̎͗͐ͧ̈̎̈́̀̐̀ͫ̅҉̵̨̰̣‌​̭̜̺̲̙̠̜̟̖̰͞ͅẄ̸͉̘̘̩͈͙̣͚͈̣ͬ̆́̓̈́́̾ͪͪ̀ͨͬͭͯ̀͠Ţ̵̸̴̨̲̲̟̯͇̹̱̪̪͖̭̲̲̺̝̞̹̠͓͂̈̐̇̓͐̔ͤ̓͋ͩ͒ͭͦͩ̃‌​̽Ḟ̧͚̩̤̩̙̥͍̹̱͚͖̪̠̣̺̪͉̿̆ͧͤ̈́ͬͫͧ̐̒̿̐͊̕͜ͅẄ̢͍̤̞̘̙̗͙̳̬̖͉͍̟͕̞̮ͪ͛̔ͪ̓̀̎ͭͦͦ̎͊̏ͫ͆̉̀̕͜͞Tͯ̃ͫͮ͒‌​ͧ́̈́͐̉̅ͤͤ̈̔҉̢̤͈̥͎͎̣̝͇̪͖̫ͅFͥ͋ͧ̾͐̾͑̅̇͗̐ͣ̅͒̇҉҉͉̪͍̥͉͚͔̩̱̫̙͜Ẅ̷̵̧̜̝̦̣͖̥̹͈̳̜͔͇̼͔͖̰̜̣͆ͯͨ̈‌​́̐̉ͤ͛͌̽ͥ̚̚͡͡T̶̵̡̡̳͍̯̼̤͔͎͕̺̖̠̲̘̠͓̞͇͌̂́ͪ͗ͨ͌ͣ͒̉͒̄F̞̗̦̤̎͛̓̀͊ͣ̈ͩ͊̈̓ͦ̎͛ͭ̊̒ͧ͜Ẅ̵̹̻͙̙͍͛ͨ́ͯ‌​́̆̕͝T̵̩̱̙̼̻͖̳͎̭̣͇̠̫͒͗ͯ͐ͯ̓̓̇ͯ͌͛̍͋ͯͅF͌̍͐̔͋͟҉̱̲͈̬̣͖̹̖̮̯͝͞ͅ – nicael Nov 16 '15 at 23:49
1  
@humn instead of a rollback, you can perform an edit with the exact same contents as before your edit (title, in your case) and assuming you do it within the 5 minutes grace period, it will show only a single revision with "[Edit removed during grace period]" - instead of having two revisions. – Shadow Wizard Apr 10 at 10:12
1  
This is a comment. – DJ McMayhem May 20 at 21:41
1  
bug -status-completed – unarist Jun 19 at 23:05

401 Answers 401

“This question has more than 30 answers.” You don’t say.

class Line
{
    virtual int num() = 0;
};
share|improve this answer

Posting an answer so I can post a comment so I can test a theory.

share|improve this answer
    
Big bang theory? – Shadow Wizard Oct 24 '14 at 6:15

await something;

share|improve this answer
    
<code>**await** something</code> – svick Nov 5 '14 at 1:08

lollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollollol

share|improve this answer

Testing Capital letters in link addresses. Motivation: Links beginning with a capital letter are hidden when post is submitted.

Testing normal:

http://stackoverflow.com

http://stackoverflow.com

Testing Http

Http://stackoverflow.com

Testing Https

Https://stackoverflow.com

Testing Ftp

Ftp://example.com

Testing a nonexistent protocol

DoesNotExist://example.com

DoesNotExist://example.com

Testing ALL CAPS:

HTTP://example.com

Testing rEVERSE cAPITALIZATION:

hTTP://www.example.com

Testing capital only in Domain:

http://Www.example.com

http://Www.example.com

Http://stackoverflow.com

share|improve this answer
    

updated this is an all small case answer without punctuation

share|improve this answer
    
Nope, not detected yet... – Portal Oct 18 '14 at 15:55
1  
The low quality posts queue detected it just fine! :-P – Martijn Pieters Oct 18 '14 at 16:14
    
4  
This is a test of the answers being sent from Stack-Mode

I want to ensure that the markdown is properly formatted and accepted.

(defun test-answer-message (me)
  (message "%s created an answer" me))

Code block above

  • Bullet point
  • Another point

    1. And an ordered point
    2. Ordering

Stack-Mode can be found here. This should provide the desired output.

share|improve this answer
    
EEEEEEEEEEE :D :D :D :D :D :D – Sean Allred Nov 17 '14 at 15:32

NEw cApatcha testing...........

share|improve this answer
    
testing the cap............ – o̊ǝʇ̲ ɐW⃗ Mar 8 '15 at 0:03
    
testing it now.......... – o̊ǝʇ̲ ɐW⃗ Mar 8 '15 at 0:03
    
wwwwwwwwwwwwwwwwwwwwaaaaaaaaaaaaaaaaaatttttttttttttt – o̊ǝʇ̲ ɐW⃗ Mar 8 '15 at 0:03

‮testing

‮testing

‮testing

&#8238;testing

‮testing

‮testing

[tag:‮testing]

share|improve this answer

This answer is rendering weird:

screenshot

But doesn't repo here

Code, inside a link, inside a superscript block

With Markdown

Note - Superscripted link with code.

Without Markdown

Note - Superscripted link with code.

share|improve this answer

Blocking & spoiling some text....

Hello!

Test:

Why is there a grey box even when the text in this spoiler is "Hidden"??
Test: THIS_TEXT_IS_SURROUNDED_WITH_BACTICKS,BUT IT DOESN"T WORK :(

TEST

But this does:THIS_TEXT_IS_SURROUNDED_WITH_BACTICKS,BUT IT DOES<s>N'T</s> WORK :)

But then, the strike doesn't work!!

Nor does the smiley in the above>! spoiler

Nor does the spoiler in the above quote

Nor does the ..........................................

test

Hiding in spoiler....or is it? BOO!

                                                                               

blah blah

Why is the above blockquote sooooo

small

?

Note book:



































Button oooooovvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvveeeeeeeeeeeeeeeeeeeeeerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffllllllllllllllllllllllllllllllllllloooooooooooooooooooooooooooooooowwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww!

share|improve this answer

Someone said code was broken, but I don't believe him.

So this is a test.

Test complete. Status: SUCCESS

share|improve this answer
2  
Oh, he specifically said comments. So let's try that. – MBraedley Jun 18 '15 at 17:49

Esc F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12PrtScrScrLkBreak
  `   1   2   3   4   5   6   7   8   9   0   -    ←      Ins  HomePgUp
  ⇥   Q   W   E   R   T   Y   U  I  O  P  [  ]   \    Del    End PgDn
 Caps  A  S  D   F   G   H  J   K  L  ;  '    Enter   
    Shift      Z   X   C   V   B   N   M   ,   .   /     Shift    
 Ctrl Fn  Alt                                                        Alt         Ctrl    

share|improve this answer

wow‮serverfault.com/questions/419407/…‮

Is this to encourage users to delete posts here, so as not to be so pestered by edit notifications?

No.

share|improve this answer
    
Is there some kind of bot that changes these automatically? – Paul Nov 15 '15 at 22:09
2  
@nicael Is this to encourage users to delete posts here, so as not to be so pestered by edit notifications? – Paul Nov 15 '15 at 22:16

Test links foo foo foo foo

Testing lists.

  1. This is a list followed by indented text

    This is the indented text

  2. This is a list followed by []() and indented text

This is the indented text
  1. This is a list followed by <!-- --> and indented text
This is the indented text
  1. This is a list followed by &#x200B; and indented text

This is the indented text
  1. This is a list followed by &#x200C; and indented text

This is the indented text
  1. This is a list followed by &#x200D; and indented text

This is the indented text
  1. This is a list followed by a pasted 200B and indented text

This is the indented text
share|improve this answer
    
This is a comment to a ball of yarn, or yar​​​​​​​​​​​​​n, or even yar n, as you want. – Mr Lister Jul 16 at 10:49

using $$ in a post causes strange number series to appear

 
/* ImageFilter.JS
 *
 * Dependencies:
 *  - Browser Environment
 *  - Fabric.js - fabricjs.com
 *  - jQuery
 *  - Vex - github.hubspot.com/vex
 */
 
(function(global) {
    "use strict";
   
    global.ImageFilter = {
        defaultOptions: {
            imageCallback: function(){}
        }
    };
    /* polyfills */
    var extend = jQuery.extend;
 
    function $(selector, el) {
        if (typeof selector !== "string") {
            return selector;
        };
        if (!el) { el = document; }
        return el.querySelector(selector);
    }
 
    function $$(selector, el) {
        if (!el) { el = document; }
        return Array.prototype.slice.call(el.querySelectorAll(selector));
    }
    /* end of polyfills */
    var ImageFilter = function() {
        if (!global) {
            throw new Error("window not found.");
        }
        if (!fabric) {
            throw new Error("Fabric.JS not found.");
        }
        if (!jQuery) {
            throw new Error("jQuery not found.");
        }
        if (!vex) {
            throw new Error("Vex not found");
        }
        this.defaultOptions = {};
        this.CANVAS_ID = "#_IFCanvas";
        this.filters = {
            'sepia': new fabric.Image.filters.Sepia(),
            'brightness100': new fabric.Image.filters.Brightness({ brightness: 100 }),
            'grayscale': new fabric.Image.filters.Grayscale()
        };
        $$("[data-imagefilter]", document).forEach(function($el) {
            $el.addEventListener("click", function() {
                global.ImageFilter.loadImage(this.dataset["imagefilterImage"]);
            });
        });
    };
    ImageFilter.version = "1.0";
    ImageFilter.prototype.loadImage = function(imageSrc) {
        var image = new Image;
        image.src = imageSrc;
        var canvas = document.createElement("canvas");
        canvas.id = this.CANVAS_ID.replace("#", "");
        canvas.width = image.width + 30;
        canvas.style.left = "50%";
        canvas.height = image.height + 20;
        var container = document.createElement('div');
        var ul = document.createElement('ul');
        ul.classList.add('theme-style-none');
        Object.keys(this.filters).forEach(function(filter){
            var li = document.createElement('li');
            var a = document.createElement('a');
            a.href = "#";
            a.text = filter;
            a.setAttribute('data-imageFilter-filter', filter);
            li.appendChild(a);
            ul.appendChild(li);
        })
       
        container.appendChild(canvas);
        container.appendChild(ul);
       
        var CANVAS_ID = this.CANVAS_ID;
        if (this.defaultOptions.imageCallback){
            var callback = this.defaultOptions.imageCallback;
        }
        vex.dialog.open({
            message: "",
            buttons: [
                extend({}, vex.dialog.buttons.YES, {
                    text: "Done"
                }), extend({}, vex.dialog.buttons.NO, {
                    text: "Back"
                })
            ],
            contentCSS: {
                "width": canvas.width + 20 + "px"
            },
            input: container
        }).bind("vexClose", function() {
            var imageData = $(CANVAS_ID).fabric.toDataURL('png');
            callback(imageData, imageSrc);
        });
 
        self.canvas = new fabric.Canvas(CANVAS_ID.replace("#", ""));
        $(CANVAS_ID).fabric = self.canvas;
 
        self.incomingImage = image;
        var imgInstance = new fabric.Image(image);
        imgInstance.selectable = false;
        self.canvas.selection = false; // disable group selection
        self.canvas.add(imgInstance);
        this.canvas = self.canvas;
       
        $$("[data-imageFilter-filter]").forEach(function($el){
            $el.addEventListener("click", function() {
                global.ImageFilter.applyFilter(this.dataset["imagefilterFilter"]);
            });
        });
    };
    ImageFilter.prototype.applyFilter = function(filter){
        console.log(arguments);
        var currentObject = this.canvas.getObjects()[0];
        currentObject.filters = [];
        currentObject.filters.push(this.filters[filter]);
        currentObject.applyFilters(
            this.canvas.renderAll.bind()
        );
    };
    window.onload = function() {
        global.ImageFilter = new ImageFilter();
    };
 
})(window);

/* DEMO.CSS */
body
{
    background-color: RGBA(80, 80, 67, .7);
}
img {
    border-style: solid;
    border-width: 4px;
    border-color: black;
    width: 75px;
    height: 75px;
}
a {
    padding-left: 4px;
}
/* END DEMO.CSS */
/* imagefilter.css */
.vexContent {
    width: auto;
    height: auto;
}
#_IFCanvas {
    display: inline-block;
}
.canvas-container {
    margin: auto;
}
.theme-style-none {
    list-style-type: none;
}
/*END IMAGEFILTER.CSS*/

vex.defaultOptions.className = "vex-theme-os"; server = { upload: function(){ console.log(arguments); } } ImageFilter.defaultOptions.imageCallback = server.upload();

share|improve this answer

$(function() {
  alert($('body').length);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

share|improve this answer

ََََََََََََََََََََََََََََََ

share|improve this answer
1  
Testing an almost empty body (meta.stackexchange.com/questions/271986/…) – Heidel Ber Gensis Dec 28 '15 at 9:39
    
َََََََََََََََََََََََََََََََ – Heidel Ber Gensis Dec 28 '15 at 9:50
    
It works in comments as well... – Heidel Ber Gensis Dec 28 '15 at 9:50
1  
It does get picked up with the LQP review queue. – Patrick Hofman Dec 28 '15 at 9:59
    
@PatrickHofman I assume it got picked up because I am used the minimum allowed character count (30), I think if I added more it won't be picked up. – Heidel Ber Gensis Dec 28 '15 at 10:00
1  
Indeed. You are correct on that. Just wanted to mention it. – Patrick Hofman Dec 28 '15 at 10:01

​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

share|improve this answer
    
​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​‌​​​​​​​​​​​​​​​​​​​ – Krease Feb 22 at 19:45
    
testing non-visible spaces – Krease Feb 22 at 19:47

Hi c:

Hi c:

share|improve this answer
    
@VladimirF that's an appropriate link :D – cat Mar 4 at 15:00
    
this answer is now slowing down my browser's rendering engine – cat Mar 4 at 15:03

Why not just do this take 010010001001001 split it into two bits 8 letter each (01001000, 01001001). Then issue the powers

    1. 01001001.

The first 8 ignore the first three they determine if it's capital or not, the go right to left doing powers of 2 (2^1, 2^2 2^3 2^4 2^5). So then add all the ones up , there's only one, and it = 8, and te eight letter in the alphabet is h so our first bit is the letter h, try it on the other bit

share|improve this answer

This is a test for editing via the API.

Test Images (from http://stackexchange.com/about/logos):

enter image description here

(freehand added by Freehand Circles Drawing Tool (Freehand Circles Drawing Tool) - install to add freehand drawings to any image on any SE site with ease! :)

share|improve this answer
    
Lol, and why freehand? Nobody sees it in sandbox, needs another target :D – nicael Jun 20 '15 at 18:34
    
@nicael stackapps.com/questions/6353/freehand-circles-drawing-tool. BTW it only works on answers FOR NOW - I'll fix it in a bit! – ᔕᖺᘎᕊ Jun 20 '15 at 18:35
    
(...it works now) – ᔕᖺᘎᕊ Jun 20 '15 at 22:19
    
Great! Come here chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta! That's fun. – nicael Jun 20 '15 at 22:23
    
share|improve this answer
    
I knew it! <!-- and --> can be used to circumvent the "each post must be at least 30 chars long" rule! – dorukayhan Jul 1 at 18:29

This is an answer which shows that using 2 spaces doesn't format as code:

This is a line with two spaces before it.

This is a line with four spaces before it.
share|improve this answer
    
...but you know 4 spaces are documented, right? meta.stackoverflow.com/editing-help – Arjan Sep 14 '10 at 18:55
    
@Arjan - Yes. This answer was a response to a comment on this post. – Peter Ajtai Sep 14 '10 at 19:22
    
Still trying to get the formatting testing line with 4 spaces – Steve Feb 12 '11 at 1:25
    
hint 1 – NZD Mar 20 at 7:35

/questions/3122#!/questions/3122?test=1

/questions/3122#!/questions/3122?test=2

share|improve this answer
2  
Is there any purpose to the #! after post ID? :) – Shadow Wizard Dec 22 '13 at 17:52
1  
Stop that, please. – Nick Craver Mar 10 '15 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 Mar 10 '15 at 23:07
2  
@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! – Nick Craver Mar 10 '15 at 23:20
    
Here's a test <script>alert('test');</script> – Geoff Dalgas May 18 '15 at 17:56

Test using pre/code...

public void Something()
{
  return;
}

Regular text here.


public void Something()
{
  return;
}
share|improve this answer
    
This is bold. – Anna Karenina Apr 14 '11 at 3:07
    
This is boldnot. – Anna Karenina Apr 14 '11 at 3:07
    
This is bold maybe. – Anna Karenina Apr 14 '11 at 3:13
    
Following is back ticked right? – Anna Karenina May 13 '11 at 15:15
    
Following is code: <code>public void</code>, right? – Anna Karenina May 13 '11 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
short line P
long line long line long line long line
P

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
share|improve this answer
    
...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 Sep 19 '10 at 2:11

You must log in to answer this question.

protected by Oded Nov 17 '14 at 15:36

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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