As pointed out by Mark, there is a related question here:
Since I went over 2k rep, I liked starting to work on suggested edits and improving formatting in other posts, trying to be precise and careful. However, I constantly see that many suggested edits by a few users are trying to improve the post, but they actually don't.
Let me be clear: I do not want to make names or point a finger to someone. I truly believe their intentions are good and it is their desire to improve the posts. Nevertheless, IMHO we should agree to stick to some formatting guidelines.
I am talking especially about avoiding ugly formatting choices that sometimes get approved too quickly in my opinion. I have thought about a few common cases that should be handled in the following way, but I'd like to read your suggestions as well.
I believe these formatting issues are bad for two reasons:
- they make me feel like this when I see them
- they waste reviewers' time: a perfect edit takes almost the same amount of work as a "meh" one so there is no reason to suggest edits that always need to be fixed :)
Code "pieces"
With this I mean inline code like commands (sudo apt update
) and small pieces of output (Error 404
). The backticks are meant for code. Please do not use them for something else.
One of the worst thing I've seen recently is randomly putting backticks around everything. For example:
Tech specs
I have a NVIDIA graphics card
Becomes:
I have a
NVIDIA graphics card
Menu entries
I really don't like this one...
Click on File → Edit
Becomes:
Click on
File
→Edit
Code blocks
I'll discuss this later.
My suggestions
- Use backticks for code
- Avoid
random text
inside backticks - Use italics for menu entries
- Rule of thumb: Are you putting that into a terminal/configuration file or is it coming from there?
- Yes → it's probably code
- No → avoid backticks
Code blocks
That is code on its own line (or multi-line code). There is a specific way to format it (4 spaces in front of each line) and backticks are not the right one.
Please, do not do this:
`sudo apt update
sudo apt upgrade`
Which results in this ugly block:
sudo apt update
sudo apt upgrade
Do this instead:
sudo apt update
sudo apt upgrade
Which results in this properly formatted block:
sudo apt update
sudo apt upgrade
Bold
It is not very nice to read a text where bold text has been overused for no apparent reason. It goes on and on and on and makes you wanna cry. ;)
It is also extremely disturbing to read inline code that has been made bold.
This leads to the following suggested guidelines:
- Use italics for light emphasis and bold for stronger emphasis
- Bold is not always necessary, sometimes paragraphs are enough to isolate important parts of the content
- Avoid making error messages bold
- Use a blockquote
>
for messages coming from a GUI or a web page - Use a code block for messages found in the terminal
- Use a blockquote
- Do you think that piece of code needs to be bold?
- Yes → Listen, ask yourself that question again...
- No → See, you are doing fine!
Paragraphs
Paragraphs are separated by two carriage returns, i.e. \n\n
in more technical terminology. If you see a long text and you want to separate it into paragraphs, do not add two spaces and a return.
- That creates a line break, not a paragraph
- It doesn't save you key strokes (you spend an extra one!)
Your turn
- What is your opinion on this?
- What are your suggestions for improving formatting in posts?
- What are the most common issues you encounter while approving suggested edits that deal with formatting?
Menu entries
, I have no issue with using code for this, it makes it stand out, I see no reason why italics is better, you just seem to like italics.File > Edit
somewhere? Maybe the HUD... :D But seriously, those are things you click on. Italics are semantically made for emphasis. That's what they have been used for since people invented them here a few centuries ago. ;)<pre>...</pre>
is not the same a s a Markdown code block indented with 4 spaces. It's<pre><code>...</code></pre>
instead - and you have to pay attention to your line breaks or it will look weird! TL;DR: The average poster/editor should normally not use any HTML.xymon-client
but italic text is still acceptable IMHO.