1

In questions, I was used to write the < pre > without spaces before a bloc and < /pre > without spaces after it. Maybe it is the old way. Now, I have tried it in a comment and it does not work. I mean such a bloc as is in the third comment at my question how to check a filesystem in Ubuntu 16.04?. There, the bloc contains 'sudo fsck -f /dev/sdb{something}'.

5

Comments have a much more limited set of formatting commands than questions and answers. There is, however, an option for demarcating code in a comment:

`code goes here`

Note that the ` character is a backtick and not an apostrophe. It can usually be typed by pressing the button immediately to the left of the 1 key on a US keyboard.

  • I hope the bloc mentioned in the question is sudo fsck -f /dev/sdb{something} – Tomáš Pečený Oct 26 '17 at 2:12
  • Now I see that the way may be used also in questions , instead of my <pre>. – Tomáš Pečený Oct 26 '17 at 2:32

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