5

I want to be able to post this as a comment:

FYI, code formatting is done with backticks, e.g. `sudo vi /boot/grub/menu.lst`.

But as you can see, it doesn't come out quite right...

3
  • FYI, code formatting is done with backticks, e.g. `` sudo vi /boot/grub/menu.lst ``.
    – ændrük
    Commented Mar 3, 2011 at 19:55
  • 1
    Use "\`" for a ` to be shown. Commented Mar 3, 2011 at 21:07
  • 2
    FYI, code formatting is done with backticks, e.g. `sudo vi /boot/grub/menu.lst` Commented Mar 3, 2011 at 21:10

1 Answer 1

6

Use (inside backquotes) \`sudo vi menu.lst\` for a `sudo vi menu.lst` to be shown.

3
  • I had the same problem too, and found out how to do it by reading the markdown manual.
    – Lekensteyn
    Commented Mar 6, 2011 at 10:39
  • @Lekensteyn What manual are you referring to? I was mislead by this documentation, which explains: "To include a literal backtick character within a code span, you can use multiple backticks as the opening and closing delimiters."
    – ændrük
    Commented Mar 8, 2011 at 15:04
  • 3
    The page you are referring to, but section Backslash escapes.
    – Lekensteyn
    Commented Mar 8, 2011 at 15:13

You must log in to answer this question.

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