How to print backslash character as code sample in comments? \
1 Answer
Just use a double \\
. To get the comment above I typed:
How about this `\\`?
Which comes out as:
How about this `\`?
However to get a backslash in comment format you need to type this:
How about this ``\``?
which comes out as:
How about this
\
?
`\\`
\
\\`\\\\\\\\\`
, resulting in`\\\`
(ow forget it! and I got it right first time!!)