What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

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 10 reputation)
  • post comments to this question or its answers

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. Set some language tags to this question:

    • See the explanation and the list of languages.

    • Adding clashing tags, such as both and , enforces a fallback to default, which is different from "no highlighting". (These tags are currently set on this question.)

  2. Or: 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.");
        }
    
  3. 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
2  
What have you tried?‮What have you tried? –  nicael Jul 4 at 16:18
1  
@nicael You're at it again... –  DatEpicCoderGuyWhoPrograms Jul 14 at 0:01

301 Answers 301

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://www.goo​gle.com/. 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
hello

hello

Yep (almost) the same.

This question is of low sandbox-quality.

share|improve this answer

[programmers.se] [so] [su] [sf]

share|improve this answer

There should be syntax highlighting here.

SELECT something FROM somewhere WHERE this = that
share|improve this answer

There should be syntax highlighting here.

SELECT something FROM somewhere WHERE this = that
share|improve this answer

How to escape backslashes.

Use whitespace:

\\

This is a backslash in a sentence (one backslash): \

This is an escaped backslash in a sentence (two backslashes OOPS): \

This is an escaped backslash in a sentence: \\ (three backslashes).

Same thing with backticks. This is backtick backslash backslash backtick: \\

This is a backtick backslash backtick \.

Here is a real backslashed backtick: `

share|improve this answer

{{Unreferenced}}

I am so smart! I am so smart! S-M-R-T!

share|improve this answer
if (isset($item['load_functions'][1]) && !empty($item['map'][2]) && $item['load_functions'][3] == 'node_load') {
  $node = $router_item['map'][4];
}
else {
  // The menu item is not for a node.
}

menu_get_object()

menu_get_item()

share|improve this answer

test. to see, if the spaces: removed! are? visible/ without the' show mark- down differences'

2nd test to see if I can edit a deleted ans

share|improve this answer

This is an answer to test somethin' 'bout deletions.

share|improve this answer

uhm..why _italic_does_not_work_when_I_use_the_underscore_ ?

How about

  1. foo[*bar* + 1]
  2. foo[bar + 1]
  3. *foo[bar + 1]
share|improve this answer
1  
There is a reason for this, fwiw. meta.stackexchange.com/questions/116986/… –  jcolebrand Jan 10 '12 at 16:01

Testing the tag feature... I don't think I have it right...

Sweet, that was too simple ... (

spoiler text in a blockquote?

share|improve this answer

Partially bold **Part**<!-- fix -->ially bold

partially italic *part*<!-- fix -->ially italic

Partially bold/italic ***Part***<!-- fix -->ially bold/italic

OLD:

*Part*ially bold

*part*ially italic

*Part*ially bold/italic

**Part**ially bold

*part*ially italic

****Part****ially bold/italic
share|improve this answer

Test test test test

More test

foo test

b ar f efe fe ge ge g

ge

akeoka feafkae kfoa ejfoeaj

share|improve this answer
3  
aw, don't beat yourself up about it. –  Jeff Atwood Aug 30 '11 at 9:35

Is <something> no in longer hidden (where something is not an allowed HTML tag)?

Conclusion: there is no change, but <> seems to be a special case. Encoding < as &lt; is still required (if not formatted as by code).

share|improve this answer

Testing image upload from clipboard

enter image description here

share|improve this answer

blah blah blah blah howdy doodie doo

share|improve this answer
if (isset($item['load_functions'][1]) && !empty($item['map'][2]) && $item['load_functions'][3] == 'node_load') {
  $node = $router_item['map'][4];
}
else {
  // The menu item is not for a node.
}

menu_get_object()

menu_get_item()

share|improve this answer

Testing 2.2 - o83fpubgs487gs4e8o7ghs4o78gfbysf76esfb9of3si76ffs39hgs4678gf3s9h3s8gof3.

share|improve this answer

Wheeeeeeeeeee!

  1. This is number one
     2. This is a sub ordered list
     3. You can hack code together here, too
      4. Blah blah blah
      5. Blah blah, blah blah blah.

I'm amazed if the quality checker lets this go through.

share|improve this answer

Please see the changelog - this is to demonstrate an issue with the toolbar buttons and existing square brackets.

Testing arrays in arrays:

b[0][1] b[1][2] b[1][3] b[0][4]

(b[0][5] b[1][6]) (b[0][7] b[0][8])

enter image description here

a_b_c

a_b_c

a_b_c

a_b_c

share|improve this answer

Testing a possible edit bug.

Here is some more text. Made an edit.

share|improve this answer

Code formatting:

some kind of shell commandwith a `sub-shell command` | blah blah

share|improve this answer

Testing the syntax highlighter

So {this:is css; /*comment*/}

Testing the syntax highlighter

So {this:is none; /*comment*/}

Testing the syntax highlighter

So {this:is none; /*comment*/}

Testing the syntax highlighter

So {this:is text; /*comment*/}

Testing the syntax highlighter

So {this:is c; /*comment*/}

Testing the syntax highlighter

So {this:is html; /*comment*/}
share|improve this answer

attempting to fail quality filter on the formatting sandbox. http://goo.gl/82FLe

enter link description here

share|improve this answer

You must log in to answer this question.

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