Questions tagged [formatting]
For questions about the formatting on Stack Overflow; how to use it and when to use it.
109
questions
334
votes
9answers
6k views
How to format reputation when Jon Skeet hits 1 million+ rep next year?
Based on Jon Skeet's past reputation gain, he will hit 1 million some time in July next year. We have until then to decide on how to format his colossal reputation.
The choices for the short format ...
230
votes
100answers
14k views
Stack Snippets and Formatting Sandbox - Try It Out Here!
This post is dedicated to testing out the newly announced Stack Snippets
feature
and/or to pursue any formatting experiments.
Feel free to answer with your own Stack Snippets or whatever you like to
...
134
votes
1answer
3k views
Why does formatting guide use foo.com instead of example.com?
I just noticed that the "How to Format" window that pops up when you're entering a question (and that is to the right of the text area into which I'm typing this now) gives the hint:
to make ...
133
votes
0answers
617 views
Better support for sample data and perhaps table schemas in SQL questions
I've been around SO since almost the beginning, and in that time I've answered a LOT of SQL related questions. One point of pain in this area has always been posting sample data or query results. We'...
97
votes
6answers
4k views
Bulletpoints EVERYWHERE
I recently came across a high reputation-points user (10k~) with lots of answers (and very good ones!) who has some formatting preferences when posting:
He just puts all the information
in unlimited ...
88
votes
6answers
8k views
How should files names be formatted?
Many posts contain file's names and also the code contained on them. Usually I have found the file's names formatted as code (my_file.py), in bold (my_file.py) or without format at all.
What's the ...
75
votes
1answer
1k views
Can we add a button “Format with Prettier” to the toolbar when editing posts?
Prettier supports formatting Markdown text and a bunch of languages. Can we add it as a button or format on save?
All the posts will have a unified look and feel, without the extra spaces, wrong ...
58
votes
6answers
4k views
How should I quote terminal output?
I have this recurring dilemma when writing posts involving terminal output which I need to to quote. You see, on one hand, it's a quote; but on the other hand, it's sort-of like code. So here are some ...
54
votes
2answers
700 views
Detect walls of text
I'm yet to see "wall of text" questions that were good, but I constantly see ones that are hard to read and make it really hard to answer.
A simple algorithm to detect "wall of text&...
47
votes
2answers
682 views
Code block inside quote block formatting is broken on meta
After seeing How to include code inside a quotation? and its associated answer, I saw that a code block inside a quote block formatting is broken on meta. If we use the example from the answer on meta ...
43
votes
5answers
1k views
How do I format an arrow key input?
As part of an edit, I'm adding <kbd> tags to various user keystrokes mentioned in a question. I can't figure out the proper way to handle arrow keys.
Left arrow?
<-?
Left?
All the options ...
41
votes
3answers
1k views
Is this formatting overuse?
A particular user frequents the same tag(s) I do so I see his answers a lot. I find many of them practically unreadable due to all the bold, code, links, etc. formatting that he jams into such a small ...
39
votes
2answers
1k views
Significant reformatting of a question
I reformatted a part of a question to make it more readable. The difference is quite huge, it transforms inline code into blocks.
Is this kind of initiative discouraged, i.e. should we edit only "...
37
votes
4answers
765 views
How do I format my data as a table with doubled line separators in my posts?
Can anyone tell me how to format a table like the below? I have copied the structure from this question
āāāāāā¦āāāāāāā¦āāāāāāāāāāāāā¦āāāāāā¦āāāāāāāāāāāāā
ā ID ā NAME ā BIRTHDAY ā AGE ā DEATHDAY ā
ā ā...
37
votes
1answer
512 views
How should mathematical formulas be formatted in Documentation, without MathJax? [closed]
I want to add some explanation to an example. I would like to add a mathematical formula to that explanation. Sure, the code executes that formula, but it's often obscured by the syntax of the ...
36
votes
7answers
734 views
Should you refrain from answering if you can't format an answer?
I read a comment on an answer that said this:
If you are using a device that doesn't allow you to format answers, you shouldn't be posting answers!
The answer was correct and useful. Also, at the ...
35
votes
4answers
1k views
Should we disapprove of uploading images of tables when asking a question?
Since the introduction of the table markdown should people still be using images of tables instead of the markdown? Or should we be enforcing the use of the new markdown? If we find a question that ...
33
votes
3answers
1k views
Using Keyboard Format for Product Names
I have seen people format product names with the keyboard format. ExcelO365 for example. I assumed this was the standard based the reputation of the people I saw doing this. Did I assume wrong?
31
votes
1answer
690 views
How can I insert a SQL “Live Demo” into my answer?
I've seen a few people insert a "Live Demo" button in their answers instead of having to link to an external SQLFiddle. How do I do that? Is it restricted to a subset of users based on Reputation?
...
31
votes
2answers
802 views
Should we make the {} button add ``` instead of four spaces?
I didn't know that the three backticks code fence feature was implemented until I asked this question.
This is a great new feature! I think the code block button in the editor (the {} button) should ...
25
votes
2answers
347 views
For a single lengthy command, which code markup syntax is preferred?
magick convert *.png -trim -background none -resize 300x300 -gravity center -extent 300x300 out/processed.png
vs
magick convert *.png -trim -background none -resize 300x300 -gravity center -extent ...
25
votes
2answers
706 views
Are backticks appropriate for emphasizing references to things that show up in code?
I've been following this "When should code formatting be used for non-code text?
" post for guidance on removing backticks when reviewing suggested edits as well as when forming my own questions and ...
24
votes
1answer
676 views
How to write code in the title
Quick typographical/convention question,
How are we supposed to use programming keywords in the title? E.g.:
What does `this` mean?
What does "this" mean?
What does this mean?
Other?
(not the third ...
18
votes
1answer
553 views
Can't Seem to get This Code Into a Codeblock
I wrote an answer that uses a ton of conversions:
chrono::system_clock::to_time_t(chrono::system_clock::time_point(chrono::duration_cast<chrono::seconds>(chrono::duration<double>(input))))...
18
votes
3answers
573 views
Should symbols like āāā§ be used to describe macOS keyboard shortcuts?
This answer made me think: https://stackoverflow.com/a/42078914/3939277
It uses Cmd, Shift, and Option to describe the modifier keys to hold in a keyboard shortcut.
For questions meant to be read on ...
16
votes
3answers
4k views
LaTeX on Stack Overflow: any way to include a formula?
Is any painless solution out there to include LaTeX formulas in a Stack Overflow post?
Of course I could render the every formula manually, make a picture (lets say a jpeg) out of it, upload it to ...
16
votes
1answer
588 views
Can we have proper formatting for console output?
Currently, if a poster wants to format an error (e.g. from a console), she has to format it either as a blockquote, or as a code block.
Both options are inadequate for formatting console output, as ...
15
votes
1answer
140 views
List formatting is broken: neither bulleted nor numbered lists render in posts
I tried using - to add bullets, but it's not working.
e.g.
line1
line2
line3
I wrote it as such:
- line1
- line2
- line3
It's also missing from my previous posts. e.g. see here
This affects ...
12
votes
2answers
284 views
How to format class names in plural form? [duplicate]
How should I format class names when I speak of objects in plural? See this excellent answer as an example. The relevant parts are sentences like these two:
Just like Activitys, Fragments may be ...
11
votes
1answer
2k views
How to compose yellow background blockquote?
Sometime I see questions or answers with a ivory/light yellow background blockquote to highlight or cited reference.
What editing syntax can I use to achieve this result?
And what's the official use ...
11
votes
1answer
248 views
What's the limit to how many emojis a question can have? [duplicate]
This question has "a lot" of emojis. It's clear that the user is trying to get attention with them.
Thanks for the interaction! I'm really hoping to get this solved.
What are the rules regarding ...
11
votes
1answer
307 views
Could MathML tags be allowed in Stack Overflow posts?
A small, but in my opinion significant, percentage of programming questions (not math questions that'd belong on https://math.stackexchange.com/) and some of their answers require mathematical ...
9
votes
1answer
280 views
Is it possible to change formatting of console logs for JavaScript snippets? [closed]
Recently I was going to answer a JavaScript question. To prove my answer correctness, I inserted a code snippet that processed results and printed into console logs, something similar like:
var ...
8
votes
2answers
790 views
What is the best manner to represent a data frame when posting a R question? [duplicate]
When posting a question in R, I see basically 3 approaches to represent a data frame:
#1
df <- data.frame("a" = 1:5, "b" = 6:10, "c" = 11:15)
#2
a b c
1 6 11
2 7 12
3 8 13
4 9 14
5 10 15
...
8
votes
3answers
348 views
Formatting for keyboard shortcuts in comments
Why is there no support for keyboard shortcut formatting (like Ctrl+K for code) within comments to a post?
I.e. writing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>A</kbd&...
8
votes
1answer
1k views
How can I post a question with sample output?
I'm trying to show a code block with sample output to clarify my question. I know how to add a code block (indenting with 4 space) but I can't figure out how to show the output.
import pandas as pd
...
8
votes
1answer
130 views
Odd-looking recent revision of [tag:parallelism-amdahl] tag wiki
The recent Revision 3 of the parallelism-amdahl tag wiki looks odd to me. Obviously made in good faith by a person with competence in the domain, but still odd.
Disclaimer: I know nothing about this ...
7
votes
1answer
89 views
Not correctly formatted hyperlink
There seems to be some problem with the handling of links after <h1></h1>. It wasn't there some months ago. The problem is here and on the main site (I've noticed because I opened an old ...
7
votes
1answer
51 views
Different table formatting in editor and outside
I came across this badly formatted answer and wanted to edit it to correct the formatting.
The table formatting is messed as can be seen:
However when I click edit, formatting is OK:
Is there ...
6
votes
0answers
72 views
Code block formatting looks OK in preview, wrong in main display
Note: The problem looks similar to this one and was indeed closed as a duplicate, but in that question the formatting in the preview is also wrong; here the preview is displayed correctly, but after ...
6
votes
0answers
131 views
Comment code format overflow covered by job
I just found a overflowing comment. It is covered by a job box (Whatever it's called). If there was some code there, it could not be shown.
Can we change it to comment covering the job description? (...
5
votes
1answer
144 views
Is there a preferred way to format links?
I was wondering if there is a preferred way to include links in posts.
Sometimes you see something like 'See this link here' and other times you'll see something like 'See this link http://...
5
votes
1answer
306 views
Is Stack Overflow Markdown based on GitHub Markdown?
Does Stack Overflow use the same Markdown flavor as GitHub? Are the differences documented somewhere?
5
votes
0answers
68 views
How can I write a link in smaller font on main site?
I am attempting to write links in smaller font.
I know how to write text in small font.
However, if I try to insert a link, it doesn't turn blue on the main site. It seem to turn blue here: https://...
4
votes
2answers
600 views
Should unnecessary formatting (that serves to draw attention) be considered an antipattern?
I've noticed a pattern recently (though it's probably not new) of answers using formatting to grab attention. For example, this answer uses a H1 and a blockquote to make the answer really stand out. ...
4
votes
1answer
351 views
What do I do to highlight a text?
I want to write a summarised form of a Wikipedia article, such as Stack Overflow Wikipedia, in my answer.
Now if I quote something from the article it will be done like this-
Stack ...
4
votes
1answer
68 views
Formatting for Q/A about spreadsheet cells and cell functions
When answering questions about spreadsheets, I don't know how to format sample spreadsheet sections. These can be ranges of spreadsheet cells, typically under 10x20 cells, some of which may include ...
4
votes
0answers
73 views
How is table with code formatted illegally? [duplicate]
Could someone please for the love of G tell me why this table is not formatted correctly?!!!!
Base (base)
Exponent (exp)
Math.pow(base, exp)
numeral(n).format('0[.]00e+0')
logFormatter(n, base)
10
-...
4
votes
0answers
49 views
Should text formatting contribute to the comment character count? [duplicate]
There is a limited character count per comment on Stack Overflow (totally understandable). However, I'm surprised to find that characters used for text formatting contribute to this. For example, if I ...
4
votes
0answers
53 views
Formatting in excerpt. Strip all of it or make it work
Few days back I was editing tag wikis when I realized that formatting doesn't work in the excerpt section. I came across some tag wikis in which the formatting was showing (like asterisk and all to ...