This post exists purely to house answers formerly attached to the formatting sandbox. You can safely ignore it.
623 Answers
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is a line with some code
This is another line with some code
This is a link
with code in it
This is more code
This CSS overlapping is really starting to piss me off.
This is strike through
This is also strike through
As is this
---How about chat formatting?---
-
-
-
[this is a link](http://www.stackoverflow.com "and this is a mouseover")
Commented Jan 30, 2013 at 13:31 -
-
-
-
-
-
-
oh hai this is a multi line comment this world is doomed
Commented Feb 24, 2014 at 22:20 -
@mikeTheLiar HTML doesn't work in comments, you have to use markdown. Commented Jul 4, 2014 at 17:26
-
-
code with \
embedded`` backticks`
See Can we get rid of the default text "enter image description here"? for details
As an aside: Chrome and Safari would show it too, but only if it can fit the text. Both do actually increase the width of the image to match the length of the text, but still won't show the text unless that width is also explicitly specified... So: that requires one to increase the default dimensions a bit, like <img src="http://not" width="184" height="48" alt="enter image description here">
does show it. Not sure if that's specific to the Stack Exchange CSS? (Like maybe some other dimensions from the SE CSS are used, when image dimensions are missing.)
![alt text](http://not)
<img src="http://not" height="48" alt="alt text">
<img src="http://not" width="44" height="48" alt="alt text">
![enter image description here](http://not)
<img src="http://not" height="48" alt="enter image description here">
<img src="http://not" width="184" height="48" alt="enter image description here">
alt text http://not.here.com alt text http://not.here.com alt text http://not.here.com
http://not.here.com http://not.here.com http://not.here.com
Odd.
In Chrome on my Mac the above looks like:
In my Safari:
And in my Firefox shows no image placeholders at all.
-
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 BotCommented May 14, 2012 at 5:24
-
1
-
italicboldness!
this is italicb****oldne****ss (I doub****t that ****is a wor*d)**
generated by:
gets.chomp.gsub(/./) {|x| '*'*rand(3)+'<!---->'+x+'<!---->'+'*'*rand(3)}
A different test:
I am going to take these backticks ` `` ``` ```` `````` ``````` ````````
and RULE THE WORLD!
source:
I am going to take these backticks ````` ` `` ``` ```` `````` ``````` ```````` ````` and RULE THE WORLD!
NUMBERED LIST TESTING
Unexpected
1. Item1
1. Item2
1. Item3
1. Item4
Item1
Item2
- Item3
- Item4
Crap
1. Item1
<!-- -->
1. Item2
1. Item3
1. Item4
- Item1
- Item2
- Item3
- Item4
WTF
1. Item1
<!-- -->
1. Item2
1. Item3
1. Item4
- Item1
1. Item2 1. Item3 1. Item4
Useless
1. Item1
<!-- -->
1. Item2
1. Item3
1. Item4
Item1
Item2
- Item3
- Item4
Misleading
1. Item1
<!-- -->
1. Item2
1. Item3
1. Item4
- Item1
- Item2
- Item3
- Item4
BEST CHOICE
1. Item1
<br/><br/>
1. Item2
1. Item3
1. Item4
- Item1
- Item2
- Item3
- Item4
Testing character limit (I rather like this character): ﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺ
-
-
-
-
-
-
-
-
-
-
-
You have posted too many comments on this answer. Please post a comment expressing remorse. Commented Dec 30, 2016 at 4:14
Horrendous {mis|ab}use of direction overrides
This is some normal text to lull you into a false sense of security.
This is some normal text to lull you into a false sense of security.
{RTL}This text is standard-grade messed up with a `U+202E RIGHT-TO-LEFT OVERRIDE`.{LTR}
This text is standard-grade messed up with a U+202E RIGHT-TO-LEFT OVERRIDE
.
This text is {RTL}hospital-grade messed up with {LTR}an intervening override.
This text is hospital-grade messed up with an intervening override.
If I {RTL}pu swohs ti ,sdrawkcab etirw {LTR}forwards.
If I pu swohs ti ,sdrawkcab etirw forwards.
This text is industrial-grade messed up - {RTL}it spans paragraphs!
Lorem ipsum dolor sit.
Brain melted {LTR}yet?
This text is industrial-grade messed up - it spans paragraphs!
Lorem ipsum dolor sit.
Brain melted yet?
{RTL}!sliated eht ni si rorroh eht tub ,lamron skooL{LTR}
!sliated eht ni si rorroh eht tub ,lamron skooL
▛▙▟▜▐▀▄▌▘▛▙▟▜ ▄█▀ u know u want em :)
-
-
-
I tried \u00A9, but i guess i am doing it wrong because it doesn't show– athspkCommented Jan 12, 2011 at 11:56
-
@athspk I, er, just copy pasted the characters straight from charmap :) The point of this answer, by the way, was seeing if I could post it and/or what its quality score would've been.– badpCommented Jan 12, 2011 at 12:03
-
-
-
1▛ ▜ <br/> ▙ ▟--------- How to do line breaks in comments? Commented Mar 11, 2011 at 10:00
-
1
-
11
-
-
@toscho: How does everyone figure out all the cool comment stuff? Commented Jan 1, 2012 at 21:40
-
14We detected an invalid link in your post, please correct it. (this message will be automatically removed when the link is fixed)– Community BotCommented May 14, 2012 at 5:24
-
5
-
2@hims056 yeah, whatever job that was responsible for this is long time dead. Oh well! Think we should flag the comment? ;) Commented Apr 30, 2014 at 11:40
-
2@hims056 wow, must try it myself! LOL! Well, bug report? Since this will never be removed automatically... Commented Apr 30, 2014 at 11:50
Heh, the bash syntax highlighter is broken.
#!/bin/bash
[ $# -ge 1 -a -f "$1" ] && input="$1" || input="-"
cat $input
Posting an answer so I can post a comment so I can test a theory.
(TESTING LONGER ALL-CAPS ANSWER THAT MIGHT NOT TRIP BOT QUALITY FILTER)
FIRST, LOOK AT THE WHOLE PROGRAM
10 N=2000
20 PRINT "ARMSTRONG NUMBERS"
25 PRINT "BETWEEN 1 AND 2000"
30 PRINT
40 FOR 1=1 TO N
50 S=O
60 K=I
70 Q=INT(K/10)
80 R=K-10*Q
90 S=S+R*R*R
100 K=Q
110 IF K<>O THEN 70
120 IF I<>S THEN 130
125 PRINT I
130 NEXT I
140 END
FIRST, WE INITIALIZE THE VARIABLE "N" TO 2000, THEN WE PRINT SOME INTRODUCTION TO THE USER. NEXT, THERE IS FOR-LOOP FROM 1 to N (2000). THE LOOP IS DOING IT'S JOB WELL DONE, UNTIL IT REACHES LINE 110. SOMETIMES IT LOOPS, SOMETIMES IT DOESN'T, BUT ANYWAY IT MAY LOOP FROM 70 TO 110. THIS IS ACTUALLY A WHILE-LOOP THAT WILL STOP AFTER "K" IS EQUAL TO "O" (DON'T ASK ME WHY). NEXT, IF "I" IS EQUAL TO "S", THEN IT'S AN ARMSTRONG NUMBER, SO IT WILL BE PRINTED ON THE MONITOR. OTHERWISE, IT WILL BE SKIPPED AND CHECK THE NEXT NUMBER.
List of canonical questions from the main site (for closing questions as dupes). These are mostly the ones I use (and putting them in my Formatting Sandbox post just makes it easier to go back to)
Java:
- How do I compare strings in Java?
- Scanner issue when using nextLine after nextXXX (and variants: Scanner is skipping nextLine() after using next(), nextInt() or other nextFoo() methods, Scanner nextInt() and hasNextInt() problems)
- Is Java "pass-by-reference" or "pass-by-value"?
- Floating point arithmetic not producing exact results
- Why does the toString method in java not seem to work for an array
- Assigning variables with dynamic names in Java
- Access variables from another method
- What's the difference between ".equals" and "=="?
- Boolean and == vs =
- What is the difference between '==' and '='?
- Division of integers in Java
C:
- Can a local variable's memory be accessed outside its scope?
- Why does this division result in zero? (and other "integer division then shove into float/double" questions)
- C++ String Length? (A C++ question, but you can get to an equivalent C question fairly quickly from there)
One thing that I want to add later: something related to "what every programmer should know about floating point" to both languages.
This answer should be submitted:
https://serverfault.com/questions/2147483647
This ID onwards, you cannot submit this answer.
# test
^ test line 2
# test added 2 spaces
^ test line 2
try adding fixed spaces |
|added space | 1 |
| | |
strike
DECLARE @origUserName varchar(max)
This is a unity3d test... C
alternative to code layout
if
we can work this
out
alternative to code layout
if
we can work this
out
alternative to code layout
if
we can work this
out
-
-
@ShadowWizard I try to see if there is more upload capacity within the current limits...– rene ModCommented Jun 9, 2014 at 20:12
-
-
Well, if imgur wouldn't convert my bmp to png I would say yes...– rene ModCommented Jun 10, 2014 at 7:48
-
-
-
-
@ShadowWizard sorry, I didn't know learning time was restricted. It won't happen again, promised.– rene ModCommented Jun 25, 2014 at 17:55
-
@rene now go build a castle with the <kbd> that was the first thing I tried (and miserably failed) - and if it wasn't clear enough I was just kidding/teasing you. :-D Commented Jun 25, 2014 at 17:58
-
-
-
@ShadowWizard hehehe ... I was typing I don't know how many dashes around a word while wondering why it didn't work. Only to realize later that only works in chat.... I must be spoiled ... ;)– rene ModCommented Mar 29, 2015 at 13:15
-
Yeah, many heros fell in face of the markdown difference between chat, comments, and posts. :D Commented Mar 29, 2015 at 13:16
-
-
Triggering new edit grace period
Now let's see if this sets off a bug
-
-
-
-
-
-
-
-
Graphic Design Anime & Manga Philosophy Stack Overflow Super User Server Fault Stack Exchange Meta Stack Exchange Japanese Language Meta– senshinCommented Apr 20, 2014 at 0:13
-
-
Hello
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
this is a test answer for the Stack-Exchange-Editor-Toolkit, at least for the auto-editor part.
i hope u like ur answer.
Code should remain untouched. Hello. Thanks!
There are several lines with variable amounts of spaces just above this one.
im sure all code survives. thanks in advance.
Python started with correct capitalization... but apache did not.
hope it helps somebody!!!!!!!!!!!!!
This is a test to try out grace period editing.
Due to new logic, the grace period ends if a new comment is added. But what happens if that comment is deleted?
Edit Log
v1 - #1 - Initial Post v1 - #2 - Edit in grace period (normal) v? - #3 - Edit after comment added by another user and deleted
So the conclusion is that a comment will stop ninja edits, but only if they are around.
This is a blockquote. I think.
This is a double blockquote.
This is a triple blockquote.
And this is a quadruple blockquote.
Here's some bold text.
Here's some italic text.
Here's some bold italic text
print("Here's some code.")
Here's
some
newlines.
Here's an image.
Here's a tag.
Here's some in-text code
.
Here's some emojis: 🌚😊🌲🌳🕖💦🌊😷🎳😞👾🏉.
Here's Arabic numbers? ١٢٣٤٥٦٧٨٩٠
You can hit a key to perform an action.
Here's a status-declined meta tag.
I love to <code>
a lot in python on my raspberrypi.
Here's an unordered list.
- Cheese is good.
- Don't try the smelly kinds though.
- Doge is love. Doge is life.
- Once you accept this fact, life is glorious.
This is a strike through
Oooah, I'm tiny :)
-
-
@nicael Sometimes I just forget I'm not talking about programming... Commented Jul 4, 2014 at 15:39
-
If you would talk about programming your list would be unordered anyway...– nicaelCommented Jul 4, 2014 at 15:51
-
@nicael Wow. I think I need my morning coffee before I start writing comments on SE. Commented Jul 4, 2014 at 15:57
-
-
@nicael Edited my answer and have had my morning coffee! Commented Jul 4, 2014 at 16:25
-
-
-
-
Nothing. It is sandbox. You noticed something strange?– nicaelCommented Jul 4, 2014 at 17:24
-
-
@nicael, I know, there's just some weird things goin' on here.... Commented Jul 4, 2014 at 17:29
-
1@nicael leacin is posting some weird things. Oh well. Commented Jul 4, 2014 at 20:42
-
1
if(life.lifestatus == lifefeelings.awesome && life.problems == Null) {System.out.println("YAY!")}
Commented Jul 5, 2014 at 21:39 -
1Love it :-). However it should be
if(life.status==kLifeStatusTypeAwesome && lifefeelings==kLifeFeelingsTypeAwesome && life.problems == Null){System.out.println("YAY!")}
– nicaelCommented Jul 5, 2014 at 21:42
-
I knew it!
<!--
and-->
can be used to circumvent the "each post must be at least 30 chars long" rule! Commented Jul 1, 2016 at 18:29
Here's a numbered list with others inside it.
Here's a code block that's a part of it.
Here's a bulleted inner list
And here's another code block belonging to it.
It keeps happening!
I warned you about indents bro!
-
3
-
1
-
1
-
1[ ](meta.stackexchange.com/questions/299497/…) Commented Aug 9, 2017 at 5:03
Sandbox post to test ExpandShortLinks userscript.
There is a link in the dots below, can you spot it?
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
If you can't find it yet, then install ExpandShortLinks
-
-
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Commented Jun 1, 2018 at 18:54
-
-
Mostly dots in body: Body - 500 out of 1000 characters are dots. Commented Jun 25, 2018 at 3:01
-
use javascript embed: var userscript=document.createElement('script');userscript.src="raw.githubusercontent.com/samliew/SO-mod-userscripts/master/…;– user393619Commented Jul 9, 2018 at 19:20
-
nope can't find it– user393619Commented Jul 9, 2018 at 19:21
-
It's possible to have raw DEL character (del) on answer submit, but not edit submit.
-
(I don't understand why should it be converted to keyboard) Commented Jul 22, 2018 at 15:12
This is made out of curiosity how linked posts in the sidebar work. I will take two random posts from the site 315373 and 315416.
One is linked directly in the answer: Vertical alignment of tags differs between Ask page and inline tag editor The other one is linked just in a comment.
After this both questions have this one (sandbox) among their linked questions in the sidebar.
Then I have added a comment containing both links. Some ten minutes later I have deleted the second comment (the one containing both links).
Some time after that both those questions have sandbox among linked questions.
I am pretty sure I saw different behavior - also it was in cases when one of the comments was posted before introducing linked questions in the sidebar. I will try to make some experiment with such links - to have a bit more data - and then I will post a bug report.
-
Here is the comment with the link: meta.stackexchange.com/questions/315416/…– MartinCommented Sep 17, 2018 at 17:25
Attempts to trigger the "unformatted code in question" bug on save.
function showInnerHtml() {
console.log(document.getElementById('questionField').innerHTML);
}
<input id="questionField" type="text" value="420">
<button type="button" onClick="showInnerHtml()">Button</button>
-
Pretty sure the quality filters are turned off on meta sites, or more likely turned on only on SO. Commented Sep 20, 2018 at 10:05
-
-
2