# Formatting Sandbox

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)
• 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)) {
}

2. Or:

• 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();

-
Please provide an MCVE. – Kevin Jul 24 '15 at 13:41
Try turning it off and on again. – Kevin Jul 24 '15 at 13:41
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
Questions about underwater basket weaving are off-topic for this site. – Kevin Jul 24 '15 at 14:42
– 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
Ẅ̷̲̖̲̹̬̫̻̪̝̲͈̮ͭͯͯͩ̌̀̍͌̄̀̕ͅT̴̽͂ͤ̈́̓̆̉ͭ̽ͦͮ̎͝͏̯͓̜͈̮̝͖̙͈̖̳͖̺̻͝͠F̧̧̻̠̜͓̟̥͙̭̱̞̦̖̭̠͔̽ͫ͊‌​̂̒̑̊̄ͧ͊͢Ẅ̵̧͇̖̩̟̯͇̭͈͉͈̹̪͔̖̭̟̫̈ͩ̆̌̄̌ͭ͐̌̄ͧ̀̍̆̈̆́̊̋̀Ţ̮͕̱ͤ͐͛̍͡F́ͬ͗ͪ̀̎͗͐ͧ̈̎̈́̀̐̀ͫ̅҉̵̨̰̣‌​̭̜̺̲̙̠̜̟̖̰͞ͅẄ̸͉̘̘̩͈͙̣͚͈̣ͬ̆́̓̈́́̾ͪͪ̀ͨͬͭͯ̀͠Ţ̵̸̴̨̲̲̟̯͇̹̱̪̪͖̭̲̲̺̝̞̹̠͓͂̈̐̇̓͐̔ͤ̓͋ͩ͒ͭͦͩ̃‌​̽Ḟ̧͚̩̤̩̙̥͍̹̱͚͖̪̠̣̺̪͉̿̆ͧͤ̈́ͬͫͧ̐̒̿̐͊̕͜ͅẄ̢͍̤̞̘̙̗͙̳̬̖͉͍̟͕̞̮ͪ͛̔ͪ̓̀̎ͭͦͦ̎͊̏ͫ͆̉̀̕͜͞Tͯ̃ͫͮ͒‌​ͧ́̈́͐̉̅ͤͤ̈̔҉̢̤͈̥͎͎̣̝͇̪͖̫ͅFͥ͋ͧ̾͐̾͑̅̇͗̐ͣ̅͒̇҉҉͉̪͍̥͉͚͔̩̱̫̙͜Ẅ̷̵̧̜̝̦̣͖̥̹͈̳̜͔͇̼͔͖̰̜̣͆ͯͨ̈‌​́̐̉ͤ͛͌̽ͥ̚̚͡͡T̶̵̡̡̳͍̯̼̤͔͎͕̺̖̠̲̘̠͓̞͇͌̂́ͪ͗ͨ͌ͣ͒̉͒̄F̞̗̦̤̎͛̓̀͊ͣ̈ͩ͊̈̓ͦ̎͛ͭ̊̒ͧ͜Ẅ̵̹̻͙̙͍͛ͨ́ͯ‌​́̆̕͝T̵̩̱̙̼̻͖̳͎̭̣͇̠̫͒͗ͯ͐ͯ̓̓̇ͯ͌͛̍͋ͯͅF͌̍͐̔͋͟҉̱̲͈̬̣͖̹̖̮̯͝͞ͅ – nicael Nov 16 '15 at 23:49
@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
This is a comment. – DJ McMayhem May 20 at 21:41
bug -status-completed – unarist Jun 19 at 23:05

Some apparent whitespace problems, 10 m/s (original post):

The period of a pendulum of length $h$ for small oscillations is $2\pi \sqrt{h/g}$, with $g$ the acceleration due to gravity, about $10 m/s$.

Source:

The period of a pendulum of length $h$ for small oscillations is $2\pi \sqrt{h/g}$, with $g$ the acceleration due to gravity, about $10 m/s$.

Update: Meta Stack Overflow does not seem to have the formula stuff that Physics has.

-

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.
-
test number one – nyuszika7h Feb 10 '11 at 17:37
test number two\ – nyuszika7h Feb 10 '11 at 17:39
test number three\\  – nyuszika7h Feb 10 '11 at 17:43
test number four\  – nyuszika7h Feb 10 '11 at 17:58
Hey @Hendrik I've deleted my comments at meta.stackexchange.com/questions/59445/… :) – Shadow Wizard Apr 27 '11 at 12:39

line break test

italic

bold

Have you seen ?

code span<a

more test
test <a


test test test

funny

1. li1 unclosed
2. li2 unclosed

p

• li1 unclosed
• li2 unclosed

bla:

• bla
• bla

-
test test test <a – çağdaş Jan 17 '11 at 23:11

Just testing this new feature:

Replace trilogy raw links with the current question title?

-
You did hear about Recent feature changes to Stack Exchange, right? "New" since 2010-11-05 ;-) (Okay, that was only added there on December 7th.) – Arjan Feb 7 '11 at 12:39

1. The parenthesis comes off: http://en.wikipedia.org/wiki/Closure_(computer_programming)

2. Try escaping the parenthesis with a backslash: http://en.wikipedia.org/wiki/Closure_(computer_programming)

Looks good in the preview, but watch out!

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

-
test 1 at 12:14 local time – Pops Jul 27 '10 at 16:14
pokopokopokopoko – Brian Oct 29 '10 at 20:52
@jleedev, see Links to URLs containing parentheses. – Arjan Jan 31 '11 at 19:42
@Arjan Yeah, I know. I just get annoyed when the server- and client-side rendering disagree. – Josh Lee Jan 31 '11 at 19:59
We detected an invalid domain linked in your post. This is likely caused due to sample code not being in a code block. (this message will be automatically removed when the link is fixed) – Community May 14 '12 at 5:24

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

-

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

-
And one moar comment – Yi Jiang Oct 31 '10 at 3:31
Will this still work after I delete some comments? – Yi Jiang Oct 31 '10 at 3:34
Adding in one more comment – Yi Jiang Oct 31 '10 at 7:03
Hello world!!1!!! – Yi Jiang Oct 31 '10 at 8:13
One more comment. – Yi Jiang Oct 31 '10 at 8:27
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

-
link – Ken Wayne VanderLinde Feb 18 '11 at 20:04

testing revision diffs blah blah

• new line
• new line2

• this foobar quote

• boo boo boo
-
Code var=grep -c this no code – icyrock.com Mar 21 '12 at 0:34

XSS testing:

-

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

-
the code doesn't show!?? – gideon Mar 25 '11 at 3:33

Backticks.

How about some backticks ?

VARIABLE=ls

-

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

-

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

-
Can't Jax off here. – Won't Apr 12 '11 at 13:24
Select * from Foo where Foo.bar == "baz"

-
You know you need a blank line before a code block, as per the regular Markdown specs? – Arjan May 9 '11 at 14:27
@Arjan: The specs aren't clear. I know now, thx. – Won't May 9 '11 at 16:12
Hopefully the FAQ is clear though? If not, then you know what to do ;-) See How do I format my code blocks? – Arjan May 10 '11 at 6:42

## Syntax highlighting test

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

# Catch obstrusive tracking parameters like ...
# ... 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]

-

This is a comment formatting test.

-

Inline editing test!

....................

-

Not formatting, but converting answer to comment.

-
This should be a comment. Did you see this Chris? – Kev Jul 13 '11 at 11:16

Whoa, look at this crazy empty blockquote!

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

­
­
­
­
­

;-)

-
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?
Etc,
etc,
etc.

-
Sure, on a mobile device that's very obvious! – Arjan Aug 26 '11 at 20:03
What does a mobile device show? – Daniel Aug 26 '11 at 20:05
Click the link "mobile" in the footer. Or, spoiler. – Arjan Aug 26 '11 at 20:07

Testing non breakable spaces in answers.

-
Testing non breakable spaces in comments. – Benjol Sep 2 '11 at 5:35
qnother test here, I think I've finished. – Benjol Sep 2 '11 at 6:13

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

-
rtutyjhnfdgbnstygkteuketm – Brad Nov 16 '12 at 19:19

formatting test test test

-

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

-

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.

-
Sed ultrices urna magna, sit amet convallis elit. – Zoredache Oct 12 '11 at 23:41
Aliquam eleifend turpis mollis arcu congue eu tincidunt lectus varius. – Zoredache Oct 12 '11 at 23:41
How do I love thee? Let me count the ways – Igor Soloydenko Dec 22 '11 at 0:06
<!-- 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>();
this.clear();
return elements;
}

}

-
alert("testing .how to escape tags such as script")

I herefor occupy this answer in the name of Good! Now get off my 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" />

-

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.

-

## 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).