17

How do I type "backslash backslash servername" on a European keyboard, like this \\ServerName, (without just pasting a backslash from the clipboard).

Typing backslash just seems to toggle the code block on and off.

EDIT: This an issue for keyboard layouts where backslash is activated by a combination of AltGr + backslash.

4
  • "European keyboard"? What's one of those? Is my UK keyboard not European? I have no difficulty with backslashes. I assume you mean Swedish keyboard. Commented May 16, 2009 at 9:45
  • 3
    If you're a programmer and can't easily type a backslash, you have bigger problems than markdown...
    – Ether
    Commented Jan 3, 2010 at 6:57
  • 2
    this was from serverfault, but I think it's a reasonable concern -- outside of HTML <tags> most stuff renders as you type it, except \\ Commented Jan 3, 2010 at 7:29
  • 1
    See also: meta.stackexchange.com/questions/13065/… (different problem, perhaps a common solution)
    – Shog9
    Commented Jan 3, 2010 at 8:44

5 Answers 5

8

Just use four backslashes: \\\\Server -> \\Server

1
  • 2
    I had trouble with putting backslash in inline code block: \. Solution I found is to use ``\``. Commented Nov 15, 2020 at 13:50
2

Type the HTML entity "&#92;" for each backslash, outside of a backtick-demarcated area, like so \\ServerName\share.

2

You can type out the decimal value of any character on the number pad.
Backslash is Alt+0092

2
  • Doesn't that only work in MS Word?
    – Ether
    Commented Jan 3, 2010 at 6:56
  • \\ ... @Æther: nope, seems to work just fine in Firefox on WinXP Commented Jan 3, 2010 at 19:05
1

\\ServerName (by which I mean \\\\ServerName) seems to work for me...

2
  • 1
    I'm using a European keyboard, and the backslash is a combination AltGr + backslash, which just activates the code block in the ServerFault edit box.
    – nray
    Commented May 16, 2009 at 7:22
  • 1
    You can't type a backslash without AltGr? hmm... you could, in principle, use an alternate keyboard layout, but using an HTML entity or the numeric keypad (if you're on Windows) is probably easier.
    – David Z
    Commented May 18, 2009 at 1:59
1

\\servername - typed with no problem on a international keyboard set for swedish layout using altgr, using Chrome though...

You must log in to answer this question.