Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 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
Please provide an MCVE. – Kevin Jul 24 '15 at 13:41
Questions about underwater basket weaving are off-topic for this site. – Kevin Jul 24 '15 at 14:42
@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

394 Answers 394

Be aware that you can run into trouble if you try to use < inside: <code>a<b</code> gives a!

  1. 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.
share|improve this answer

Will sanitizer incorrectly strip the p tag at the end? Header 1 Header 1 Header 2

line break test




Have you seen ?

code span<a

more test
test <a

test test test


How about in lists?

  1. li1 unclosed
  2. li2 unclosed


  • li1 unclosed
  • li2 unclosed


  • bla
  • bla

share|improve this answer

link test

  1. The parenthesis comes off:

  2. Try escaping the parenthesis with a backslash:

    Looks good in the preview, but watch out!

“the C *P*re*P*rocessor” comes out differently as well.

share|improve this answer
test 1 at 12:14 local time – Pops Jul 27 '10 at 16:14
@Arjan Yeah, I know. I just get annoyed when the server- and client-side rendering disagree. – Josh Lee Jan 31 '11 at 19:59

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

share|improve this answer

Testing out this new Userscript I'm building. One more edit to make sure this thing works.

share|improve this answer
Unix 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 Oct 31 '10 at 8:30

Comments test. Checking various comment related stuffs

share|improve this answer

testing revision diffs blah blah

  • new line
  • new line2

  • this foobar quote

    • boo boo boo
share|improve this answer

XSS testing:

an alert

share|improve this answer

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

share|improve this answer


How about some backticks ``?

share|improve this answer

Intraword italics formatting

  • SID: S-1-5-21 domain-512

  • SID: S-1-5-21*domain*-512

  • SID: S-1-5-21\s*domain*-512

  • SID: S-1-5-21domain-512. SID: S-1-5-21<em>domain</em>-512


share|improve this answer

$$ \begin(equation} \chi(M_g) = 2-2g \end{equation} $$

share|improve this answer
Select * from Foo where == "baz"
share|improve this answer

Syntax highlighting test

<!-- language: lang-bsh -->

# Catch obstrusive tracking parameters like ...
# ?utm_source=twitterfeed&utm_medium=twitter or
# ?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+wdrss+(WDRSS)
# ... because they generate doubled content.
RewriteCond %{QUERY_STRING} utm_source= [NC,OR]
# Some people put their own URIs into this parameter. May be better banned.
RewriteCond %{QUERY_STRING} ^p=\D
# The trailing question mark removes the query string.
RewriteRule (.*) /$1? [L,R=301]
share|improve this answer

Inline editing test!


share|improve this answer

Not formatting, but converting answer to comment.

share|improve this answer

Whoa, look at this crazy empty blockquote!


Which isn't even remotely as crazy as this one:



share|improve this answer
There's always a crazier way! – Arjan Aug 26 '11 at 19:53

Could you tell that this wasn't just an empty blockquote before you hovered?

share|improve this answer

Testing non breakable spaces in answers.

share|improve this answer

Testing the revision history when a tag is removed from the end of a post:

share|improve this answer

formatting test test test

share|improve this answer

Wondering if an anchor link to an answer works...doesn't look like it.

share|improve this answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper, eros ut faucibus dapibus, nibh nunc lacinia ligula, et sagittis nibh lorem at purus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent scelerisque turpis nec eros luctus fringilla. Curabitur vitae lacus a sem posuere sollicitudin in at sapien.

  • Sed ac augue sapien, varius congue dolor.
  • Aliquam at enim eget purus gravida faucibus vitae et justo.
  • In et mauris ac dolor consectetur blandit.
  • Pellentesque aliquam vehicula felis, nec eleifend turpis tincidunt id.

Nunc laoreet lectus tempor massa tempus bibendum. Suspendisse potenti. Nunc euismod, dolor vitae pharetra dictum, justo nisi dignissim lectus, elementum ornare quam felis eget turpis. Praesent vel felis eget eros scelerisque condimentum. Suspendisse eu elit id turpis dictum imperdiet. In hac habitasse platea dictumst. Duis tempor ligula eu enim suscipit vitae pulvinar dui cursus.

share|improve this answer
<!-- language: lang-java -->

import java.util.ArrayList;
import java.util.Collection;
import java.util.Stack;

public class FlushStack<E> extends Stack<E> {

    public Collection<E> get() {
        ArrayList<E> elements = new ArrayList<E>();
        return elements;

share|improve this answer
alert("testing .how to escape tags such as script")

I herefor occupy this answer in the name of Good! Now get off my answer!

[Cool Hyperlink]1

Cool Hyperlink

share|improve this answer
Unless you're trying to find some exploit, see How do I format my code blocks? – Arjan May 10 '11 at 6:29

Testing <pre><code>some-code here\n</code></pre> against some Markdown-formatted code:

<input type="checkbox" name="applyChanges" />

This time with a line break after the <pre>:

<input type="checkbox" name="applyChanges" />

Now for the Markdown formatting:

<input type="checkbox" name="applyChanges" />
share|improve this answer

Pac-man goes wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka­wokka

Soft hyphens aren't apparent because StackOverflow is fixed-width. You can see them better here.

You can't visit h​ttp://​ Not even by copying and pasting.

share|improve this answer

Adding comments with inline customized links, with parens and spaces in them.

share|improve this answer

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.

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

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