# 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
Questions about underwater basket weaving are off-topic for this site. – Kevin Jul 24 '15 at 14:42
Ẅ͚͚̞̼̟̭͕̺̟̰̍̎͊̉̀͋̅ͪ͢T̢͚̘̞̦̱͙͍̳̱͐ͧ̅̚͠F̡͔͖̘̮̳͇̾̂ͭ̀̂ͯ͑ͩ̑̔ͥ̓̐̾ͬͭ͝Ẅ̸̋̒̔͛͋̓̓͛̚҉҉̩̤͚̲̞̥‌​̯̥Ţ̢̓ͬͥ́ͫ͒ͭͬ҉̴̢͓̠̱͔̪̣̻͓͎́F̨̰̹̮̫̮̬͙̖͙̥̜͍̤̼̭̖͈̉͆̂͌͆ͫ̅̈̅͑͘Ẅ̮͕̣̙̙͚̫̱̜̝̺̦̜̲͕̖̪̈̾͋̄́̄ͯ̒‌​̾̊̅͒ͮ̑́́͟Ţ̵̳͈̱̫̗͛ͩ̈ͮ͑͜ͅḞ̤͔͙͎̣̰̦̱̟̝͊̒͐ͮ̓͑̔̿͐̋́Ẅ̶̴̢͔̩͖̖̱̰̩͍͍ͦ͊̓̑̀͋̑̕T͓̤̪̟̘̦͚̣̓̅͛ͦ͐ͮ‌​̔̋̄̈͊̆̄̓͘F̵̡̨̞͕͉̬ͫ̃ͫ͐͊ͦͪͫͧ̔͌̎̌͜Ẅ̨̬̦̪̙̝͕̦̦̺͖̲̱̞͚͕͓͖̌ͭ͋ͭ̅ͨ̀̂ͦ̌͑͐̑̎̅Ţ̩̟̘͇̳̤͔̪͎͉͎̼ͥͩͪ‌​͆̽ͩ̿ͧͧ͘͜͠͞F̴̸̶̹̲̤͇̹̥̝̪̏̆ͥ̽̉̂͂̐́̌͂̾Ẅ̵̛ͤͫ̓͢҉̶̮̭̤̩̤͖̲̦T̵̻̩̲̳̼̟̠̰̳̺̖̳ͭ͆̄̐͌́͌́ͫ́̾̍̄ͪ̍̋‌​̏͌̚͢͜͜͝F̢̢̘̥̹̻̬͈̙͚̱͈̰͇̰̱ͨ̌͂͛ͪ̈̋͐́̓͌̚ – nicael Nov 16 '15 at 23:50

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

-
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

-

testing revision diffs blah blah

• new line
• new line2

• this foobar quote

• boo boo boo
-

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

-

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$$

-
Select * from Foo where Foo.bar == "baz"

-

## 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. - 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. - Testing non breakable spaces in answers. - Testing the revision history when a tag is removed from the end of a post: - formatting test test test - Wondering if an anchor link to an answer works...doesn't look like it. - <!-- 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>(); elements.addAll(this); 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! [Cool Hyperlink]1 - 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. - Adding comments with inline customized links, with parens and spaces in them. - [programmers.se] [so] [su] [sf] - There should be syntax highlighting here. SELECT something FROM somewhere WHERE this = that  - 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:  - I'm testing inbox notifications. If you comment on this, you will receive one (1) vial of virtual unicorn horn dust (no actual unicorns will be harmed). - SHUT UP AND TAKE MY MONEY – Yi Jiang Feb 28 '12 at 7:41 So then this is artificial virtual unicorn horn dust? – animuson Feb 28 '12 at 7:48 {{Unreferenced}} I am so smart! I am so smart! S-M-R-T! - 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.
}
`