For most markdown flavors, a forward slash before the character (\) should do the trick. [Re-Edit] Finally saw the help and HN isn't typical markdown. 2 spaces for pre tags only.
It's not markdown. https://news.ycombinator.com/formatdoc There are really only two things you can format on HN: italics (with asterisks) and literal lines (with two leading spaces).