4

Recently I have seen several comments that use code formatting (with `…`) instead of emphasis (with *…*) in order to format some text.

This is not correct since the text is not code and this results in text using monospaced font, the display is not pleasing in my opinion.

Can this be prevented by displaying a warning when some text is formatted as code? It would be hard to distinguish when the usage is correct or not.

See these examples on websites unrelated to code:

enter image description here

How did my candle wax crawl up the sides of the jar?

enter image description here

Should I use gasoline 87, 89 or 93 on 2016 RAV4 SE

2
  • 3
    They're comments... If it's in a question or answer, edit it out... but in comments, it's not going to hurt anything and the OP won't be able to edit it at all after five minutes. Yes, ask them not to do it in future but really, I don't think this is an issue.
    – Catija
    Commented May 23, 2016 at 16:03
  • @Catija OK, I'll ignore these comments from now.
    – A.L
    Commented May 23, 2016 at 16:26

1 Answer 1

4

We can't really prevent that, same way we can't prevent it in suggested edits.

For good and for bad, many users simply consider this as valid formatting, and blocking it altogether would make more harm than good.

We can, of course, post a comment reply saying something like:

@codeabusername Inline code formatting should be used only for code, to highlight other text please surround it with * and *

However, considering the vast amount of users who do it, it will just be a drop in a vast ocean.

I'm afraid that on this one, we don't really have a choice but to accept defeat, swallow the frog, and move on.

10
  • What about displaying a warning to the user if backticks are used in comments on websites where code is rarely relevant? Code in backticks is relevant on SO, SU or Unix but not on Travel or Mechanics.
    – A.L
    Commented May 23, 2016 at 15:20
  • @A.L interesting idea, think suggested before, worth taking a look and starting a separate feature request in case it wasn't. (As this here sounds more like an open discussion?) Commented May 23, 2016 at 15:22
  • @A.L remember that "backticks" != "code". Backticks give you a preformatted block; that doesn't have to contain code, although it is the most common use.
    – ArtOfCode
    Commented May 23, 2016 at 15:26
  • 1
    @ArtOfCode wrong. Unless the official help page is wrong as well, as it clearly says in the sample: "inline code in backticks". It should not be abused for anything else. Commented May 23, 2016 at 15:29
  • @ShadowWizard Do you think it's better to edit this question or open a new one (in case there is no similar question yet)?
    – A.L
    Commented May 23, 2016 at 15:35
  • 1
    @ShadowWizard no, I disagree. You should put code in backticks, that's certain, and that's what that page is saying. That doesn't preclude you from putting other things in backticks, as long as it's a reasonable use. Emphasis is not a reasonable use; things like program output (which is not code) are.
    – ArtOfCode
    Commented May 23, 2016 at 15:43
  • @ArtOfCode Except code or program output, what can be put into backticks?
    – A.L
    Commented May 23, 2016 at 15:52
  • 1
    @A.L Anything that requires a monospace font. It can be useful to put calculations in preformatted blocks, for example.
    – ArtOfCode
    Commented May 23, 2016 at 16:02
  • @ArtOfCode well, it's not really relevant for comments, which shouldn't contain such things... anyway guess we might disagree on what's reasonable and what isn't. Commented May 23, 2016 at 16:28
  • @A.L yes, as I said in the previous comment, better start a new feature request suggesting to show warning when using backticks in comments for non programming sites. Commented May 23, 2016 at 16:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .