Note: 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.


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 (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. 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 Developer Tools, press F12

    • 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 will be deleted. This is codified as a policy as of March 29, 2018.

  • @ɪʙᴜɢ regarding your upcoming test, I can save you the time and SE staff the auto flag: yes, one can rollback their own edits. Why wouldn't they? – Shadow Wizard Apr 2 at 9:27
  • 3
    ­­­­­­­­­­­­­­­ – Donald Duck Apr 2 at 13:53
  • `foo bar baz` – Jordan Apr 18 at 21:19
  • I flagged the pony comment as a test – ashleedawg Apr 19 at 12:42
  • @ashleedawg was testing this – ashleedawg Apr 19 at 12:50
  • x y z .... – wwii Apr 25 at 18:03
  • ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ – Avnish Kabaj May 7 at 8:20
  • <code>x</code>**y**<code>z</code> x – user298438 May 13 at 22:59
  • Test comment, please ignore. – Johannes Kuhn May 14 at 21:01
  • [mcve] why is there a freaking word limit here – Passer By May 19 at 9:15
  • [help] escaping the regexp – Passer By May 19 at 9:17
  • 1
    @AvnishKabaj I used soft hyphens. To do what I did, you can open a new tab in Chrome, open the developer tools by pressing F12, go the Console tab, type document.write("&shy;"); and press enter (you have to do that twice for some reason), then go to the Elements tab, you will see something like <html><head></head><body>&shy;</body></html>. Double-click on the &shy; and press CTRL+C to copy it (the &shy; will disappear, it's normal). Then paste it into a comment enough times to go over the minimum length. – Donald Duck May 19 at 17:49
  • 1
    ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ – Donald Duck May 19 at 17:50
  • 1
    @BringBackThePolyglot You asked for me :)? – Passer By Jul 10 at 6:50
  • 2
    A different way to generate 15 soft hyphens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1) Paste & &shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;& into the answer box 2) Copy the & & from the preview (then discard the answer) and paste it into a comment 3) Delete both &s and submit the comment – robinCTS Aug 5 at 5:47

This is a foo bar!

  • Magic Links: [help]: help center , [help/on-topic]: help center , [help/dont-ask]: help center , [help/behavior]: help center, [meta-help]: help center, [meta]: [meta], [main]: [main], [edit]: edit , [tour]: tour, [ask]: How to Ask, [answer]: How to Answer, [so]: Stack Overflow, [su]: Super User, [sf]: Server Fault, [metase]: Meta Stack Exchange, [a51]: Area 51, [se]: Stack Exchange, [chat]: Meta Stack Exchange Chat – ashleedawg Aug 14 at 3:02
  • 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890---100-->|123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890---200-->|123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890---300-->|123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890---500-->|123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890---500-->|123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890---600-->| – ashleedawg Aug 16 at 12:25

You must log in to answer this question.

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