Questions tagged [formatting]
For questions about the formatting on Stack Overflow; how to use it and when to use it.
109
questions
3
votes
0answers
56 views
Why is the link formatting on my question not working as expected?
I just asked this question and it looks like the links aren't formatting properly.
I suspect the problem comes from the . at the end of the first url (even though it's part of it for real) but if not, ...
1
vote
0answers
64 views
What kind of code format should I use for errors? [duplicate]
I was scrolling through Stack Overflow questions when I saw this one: Rscript Path Problem for exec() implementation R code in php
It's a beautifully structured question, except I find the way the ...
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
-...
-10
votes
0answers
141 views
Automatically format code
This question is very similar to this one, but it was asked 5 years ago and hasn't had a response since.
During the periods that I am active on Stack Overflow, I'd say that I edit many, many posts ...
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 ...
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?
-12
votes
3answers
174 views
When is bolding considered unnecessary?
In the following example question, bolding was removed as unnecessary:
https://stackoverflow.com/posts/65685587/revisions
The bolding was added so that by just reading the bold part you get a feeling ...
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 ...
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 ...
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 ...
5
votes
0answers
122 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? (...
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 "...
2
votes
1answer
76 views
How to show plots in Stack Overflow questions [duplicate]
What is the best way to attach a plot, or a link to a plot (or image) to a Stack Overflow question? I have tried attaching as an image but to no avail. I believe there is a platform to do this. Does ...
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://...
2
votes
0answers
138 views
Format bug: edit ā mark a text ā click on **B** for bold or *I* for italic ā start of the format change is slightly too late
If you click on edit, then mark a word, a line or multiple lines of text, then change the format e.g. to bold, the very first formatting change has a bug.
Reproducible example at least at my laptop ...
2
votes
0answers
49 views
common mark migration breaks bullets formatting?
After migration to common mark formatting of the bullets is corrupted. Old formatting used 1 space for inner text but common mark uses 3 spaces. So after migration the bullets where not repaired at ...
0
votes
1answer
131 views
Why does (only) the code formatting sometimes not work in a question/answer?
Usually, when selecting the code (of course, in edit mode) and pressing Ctrl+K, or {}, the selection is correctly formatted as code:
Sub Foo()
'Whatever in here...
End Sub
But sometimes, the ...
-12
votes
1answer
98 views
Can we discuss the minimum 6-character requirement for editing a post?
I've fallen into this trap the past couple of days. The edits I couldn't make were:
add a tag to a post to help draw people to a post asking a specific question (I wanted to add the regex code to a ...
1
vote
0answers
88 views
Bug: Interpreting C# code as incorrectly formatted code [duplicate]
When using the code format sometimes the color isn't correct.
For example, in this question the word CPerson Blue is blue instead of Black:
And the set is Blue, and get is Black:
This is a ...
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 ...
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 ...
1
vote
0answers
92 views
What is the recommended way to format the output of some code? [duplicate]
As per title, consider some code which produces some output to STDOUT, what is the recommended way of formatting it.
For example, in Python, you could write:
print('Hello World!')
which produces ...
3
votes
0answers
38 views
How to format the data (questions/answers) on stackoverflow mobile site? [duplicate]
Its very difficult to format the data while working on stackoverflow mobile site. Somehow I used to manage it via adding spaces for code etc. But when theres a large complex data to be posted it ...
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 ...
2
votes
0answers
88 views
Feedback on the new ask question page - Formatting suggestions
I think you guys did a great job with the re-design of the ask question page. However there is this bit that I find can be improved.
There are currently three (or even 4) ways to format code:
...
1
vote
0answers
49 views
Question format seems hidden [duplicate]
I just came through this question today. At first look, it seems too broad /unclear. So I choose the close vote.
After that, I thought that how SO allowed the user to ask a one-line question. So ...
4
votes
2answers
599 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. ...
-7
votes
0answers
103 views
How do I properly hide preformatted text? [duplicate]
I know how to preformat text
This is preformatted
| . X . . |
| . X X X |
| . . X . |
And I know how to hide text
But I cannot figure out how to nicely combine the two.
The best I can do is this, ...
3
votes
0answers
98 views
Blockwise indentation [duplicate]
When I paste code into the text editor, sometimes I have to indent multiple lines to make it look well. So I start to hit the space bar multiple times for each code line until the code is formatted ...
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 ...
24
votes
2answers
705 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 ...
1
vote
0answers
44 views
Make the 'How to Format' box sticky/persistent
I was just writing a question and could not remember how to quote something. I did remember there usually is a box on the right giving me hints for things like this. The box wasn't visible however, ...
2
votes
1answer
275 views
How to insert a wide table in a post? [duplicate]
How can I insert a 10 column table in cleaner format in a Stack Overflow question?
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 ...
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
...
-14
votes
2answers
204 views
Why don't comments support the full markdown?
If you read the formatting help for comments it reads:
Comments use mini-Markdown formatting
Why isn't the full markdown (the one that can be used on answers/questions) used?
3
votes
1answer
80 views
Do nicely formatted questions receive more or better answers?
I usually try to make sure my questions and answers are nicely written and well formatted (to the best of my ability anyway).
This certainly includes marking code as code, especially for individual ...
2
votes
0answers
60 views
Improve guidelines about asking good questions when it comes to formatting
I am trying to make clear that this question lacks proper formatting preventing it from being readable. I was looking at the help pages to see if it says something about formatting but could not find ...
-10
votes
1answer
113 views
Is there a reason why code formatting does not have any rules?
When I have a time, I really like to help people on Stack Overflow.
Questions I'm reading are mostly created by new users or others that did not ask much questions in a past. Those questions are ...
3
votes
2answers
65 views
Why is code formatting not working on this code? [duplicate]
I am trying to edit an answer to format the following piece of code.
How to fetch text value from a popup window when it appears?
It somehow isn't appearing in the edit.
<div class="talk-button ...
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 ...
-3
votes
1answer
68 views
Certain special characters after < breaks link text
When I was trying to link an answer in an answer I was posting which included <?= and I included <?= in the link display text, it would not render correctly.
Raw Formatting
[Is it bad practice ...
3
votes
1answer
103 views
how to turn off colorization? [duplicate]
Easy question, I'm sure (and apologies if it's a dupe), but is there a way to turn off colorization in code fragments? Perhaps by explicitly tagging the code as being in a specific language? That is,...
3
votes
1answer
1k views
How do I format a table in a post? [duplicate]
Yes I read this: https://meta.stackexchange.com/help/formatting
But nowhere there (or the links therein) does it explain how to format a representation of a table. If I have 2 columns and 10 rows in ...
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 ...
2
votes
1answer
107 views
How can I add internal links to a different section of the same answer? [duplicate]
Similar to what Wikipedia does, is there a way that I can add internal links to my answer?
0
votes
0answers
57 views
Formatting traceback [duplicate]
A fair amount of SO questions need traceback to be answered and I feel like the most part of these questions do not format the traceback well.
Most of tracebacks are formated as citation, I don't ...
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))))...
3
votes
0answers
86 views
Syntax for functions documentation
I often see people (myself included) linking to a JavaScript function documentation with the format Object#function.
Example: String#split
Is there a reason why we use #?
I've grown used to it, ...
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'...